Created
February 12, 2015 08:52
-
-
Save Drunkar/55d9acb5987ba20906a2 to your computer and use it in GitHub Desktop.
Extract and remove all *.lzo files in current directory.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
lzos=*.lzo | |
for LZO in ${lzos} | |
do | |
echo ${LZO} | |
lzop -x ${LZO} | |
rm `echo ${LZO%.*}'.*'` | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment