Please can you help me in writing a script to find files on a specific directory, and of extension "tap" but only of the month of september, gzip and move them to another directory.
Your help will be appreciated.
I can move the files them gzip them, but I found something else that puzle me, look:
Why is if I use find, I see only november files, but if I do ls -lrt *.tap I see september files???
LUDWIG:
You are right the issue is september only:
I am going to test your script , although I did not understand the "gzip -9" section. can you explain? if its possible
Why is if I use find, I see only november files, but if I do ls -lrt *.tap I see september files???
You're using head, so you're only showing part of the output. Both commands will be returning all the files, but not necessarily in the same order (the ordering options on -exec ls won't apply to find, since it's processing files 1 at a time).
Hi All,
I am new to Linux/Scripting and need some assistance in coming up with a script that can move certain amount of files from one directory to other every seconds.
Usercase: We have around 100k files in tmp directory on my server which needs to be moved to another folder to get... (3 Replies)
hi,
I have a lot of files named xxxxx__AA.txt, xxxxx__BB.txt, xxxxx__CC.txt and I would like to move xxxxx__AA.txt in AA directory, xxxxx__BB.txt in BB etc. Could you help me do it in bash script? (5 Replies)
Hi
Please can you help me in writing a script to find files on a specific directory, and of extension "tap" but only of the month of september, gzip and move them to another directory.
Your help will be appreciated. (4 Replies)
Hi folks,
I'm new here and appreciate greatly any help.
I have a bunch of files that need be moved and renamed. Fortunately, they are all in sequence...
Present filename and path: /.catalog1/t76038_842-01
Move to: /.catalog1/76038-01
So, we need to drop the... (8 Replies)
Please debug this shell script for me.. Basically the idea is to run the script, based on the command to move some trace files to a separate directory and I am getting the error. Only the COMMAND that has rm {} works and I basically want to use it for the fourth one. Please try for the 2nd, 3rd and... (4 Replies)