1

Issue in splitting a file

view story
linux-howto

http://www.unix.com – Hi, I have a file (named as values) which contains around 10 columns with an unique number in the first column. I wanted to segregate the file into 10 files based on the range of the Unique number. It varies from 0 to 10 Million. So, I need to split the file into 10 files with ranges from 0 to 1 million .... 9 million to 10 million. I also have a file (named as headeronly) that contains the header which I should use to merge the splitted file with a common header . "awk and cat commands are used inside a for loop". The issue is the script is getting executed and when the splitte (HowTos)