How to redirect output of query result txt file into tar
Dear Team,
Please let me know in signle command, whether I can archive the result of query.
For example, I want below series of sequence commands in one liner command.
-bash-3.2$ ls -ltr > output.txt
-bash-3.2$ tar -zcvf output.txt.tar.gz output.txt
output.txt
-bash-3.2$ rm -fr output.txt
Thanks in advance
|