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++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -