We have a masterfile which is to be split into smallerfiles with names as
masterfile00,masterfile01,masterfile03...etal
I was able to split the file using the "Split" cmd
but as masterfileaa,masterfileab..
Is it posiible to change the default suffix?
or is there any other cmd which does the needful
or do we need to rename the smallerfiles
i dont think so if its possible to change the format of "split" command as per your requiremnet, so i guess you have to write a shell script to modify the ouput of "split" command.
i have written a sample shell script which will split the files into your desired format (suffix as numerals).
please test the same ....n tell me if it works fine ...
note:
you have to pass the name of file to split and the number of lines for splitting the input files, as the command line argumnets ($1 and $2 in the same order as above)
run the script from same directory/shell where your input file is existing or else give the proper path
you can modify the split command used here for any different options/flags...as per your requirement.