Find and split the list of files with suffiz of seg**

view story

http://www.unix.com – Hi,. I am writing a script to get the new files and split them. Requirement Find the new files under the path "/wload/scmp/app/data/OAS" (There are 5 sub folders). Gunzip the files which are having .gz suffix. Put the list of files in the filename in the format "fiels_to_split_2013012911300.txt where as the numeric part is date and time. Perform the split command on the files to split each file containing 50000 lines. The output of the split filename should have the same file with suffix seg** where ** can be either numbers or alphabets. I got the code from Pikk45 and (HowTos)