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

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -