Quote:
|
Originally Posted by RobHill
Any suggestion?
|
read up on sed/awk/grep/gzip/tar and the find command. then try to write it. if you hit problems, come here again. just some examples to get you started,
Code:
# grep 'id' file #search for the id in file
# awk '/id/{print}' file
to unzip a file
Code:
# gzip -d file.gz
# tar zxvf file.tar.gz #if its also tarred.
to find txt files more than 7 days
Code:
find /path -type f -name "*txt" -mtime +7 -print