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 - How to retrieve a variable from the Apache configuration inside the module? -

c# - Constructor arguments cannot be passed for interface mocks -

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