First of all I would like to thank everyone for your help. I really do appreciate it.
This is my problem. I have over 400 files and the file names could be long as 'this_is_a_test_for_the_longest_frig_n_possible_file_I_could_thing_of20050103132126'. Others have helped with suggestions but they are not working. Below is some things I have found out and a partial solution to my problem. Can you please fill in the blanks...
When I do a cat command with a wild card (this_is_a_test*) on the directory with 400+ files with file names as long as above, the following message occurs, 'arg list too long'.
However I can do a ls > list.lst and store the entire directory list in the list.lst file.
So with that said, how can I read this list.lst (contains a list of all files I want to cat together), looping through each line, storing it in a variable then using the variables content with the CAT command. I found the CAT command works if I type the entire file name, so if I can just get a variable to hold the entire file name and use that variable with the CAT command my problem will be resolved. The FIND command does not work for me because it read sub-directories and I can not read any contents of sub-directories.
Thank you for all your help
Tom
This is my problem. I have over 400 files and the file names could be long as 'this_is_a_test_for_the_longest_frig_n_possible_file_I_could_thing_of20050103132126'. Others have helped with suggestions but they are not working. Below is some things I have found out and a partial solution to my problem. Can you please fill in the blanks...
When I do a cat command with a wild card (this_is_a_test*) on the directory with 400+ files with file names as long as above, the following message occurs, 'arg list too long'.
However I can do a ls > list.lst and store the entire directory list in the list.lst file.
So with that said, how can I read this list.lst (contains a list of all files I want to cat together), looping through each line, storing it in a variable then using the variables content with the CAT command. I found the CAT command works if I type the entire file name, so if I can just get a variable to hold the entire file name and use that variable with the CAT command my problem will be resolved. The FIND command does not work for me because it read sub-directories and I can not read any contents of sub-directories.
Thank you for all your help
Tom