tar.sh
· 313 B · Bash
Orginalformat
tar xzf app_logs.tar.gz --to-command='grep --label=$TAR_FILENAME -Hi "security alert";true'
# можно например на лету контрольные суммы считать
tar xf some.tar --to-command 'sh -c "md5sum | sed \"s|-|\$TAR_FILENAME|\""'
# опубликовано в https://t.me/gitgate
1 | tar xzf app_logs.tar.gz --to-command='grep --label=$TAR_FILENAME -Hi "security alert";true' |
2 | |
3 | # можно например на лету контрольные суммы считать |
4 | tar xf some.tar --to-command 'sh -c "md5sum | sed \"s|-|\$TAR_FILENAME|\""' |
5 | |
6 | # опубликовано в https://t.me/gitgate |