compressing and uncompressing a file with the help of xargs

$ls stderr.txt stderr.txt $ls stderr.txt | xargs ls stderr.txt $ls stderr.txt | xargs cat /home/jeffrin/quark/kernel/run_kernel.sh: line 10: ./main.native: No such file or directory $ls stderr.txt | xargs gzip $ls stderr.txt ls: cannot access ‘stderr.txt’: No such file or directory $ls stderr.txt.gz | xargs gunzip $ls stderr.txt stderr.txt $

[x]args build and execute +

$ls robinsons.iso robinsons.iso $ls | grep robinsons.iso | xargs rm $ls robinsons.iso ls: cannot access robinsons.iso: No such file or directory $ xargs – build and execute command lines from standard input This manual page documents the GNU version of xargs. xargs reads items from the standard input, delimited by blanks (which can be protected …

a simple hack related to xargs

$ls robinsons.iso $ls | grep robinsons.iso | xargs rm $ls robinsons.iso ls: cannot access robinsons.iso: No such file or directory $ xargs – build and execute command lines from standard input This manual page documents the GNU version of xargs. xargs reads items from the standard input, delimited by blanks (which can be protected with …