shell - how to find the last modified file and then extract it -


say have 3 archrive file:

 a.7z b.7z c.7z 

what want find last modified archrive file , extract it

1st: find last modified

2nd: extract it

1st: ls -t | head -1

my question how approach 2nd using "|" @ end of 1st command

you can that:

7z e `ls -t | head -1` 

use `` embed first command.


Comments

Popular posts from this blog

C++: Boost interprocess memory mapped file error -

python - IO.UnsupportedOperation: Not Writable -

python - malformed header from script index.py Bad header -