learningawk
Technical User
Could anyone give me a hint on how to use AWK to do the following?
I have a series of files that I want to grep out comment cards that begin with # and then write the output file name with a concatenated extension.
Example:
grep -v "#" input_file_name.dat > input_file_name_converted.dat
Is there also a way to do this in one script to do all the files in a directory that have a similar file_name pattern?
Such as convert all the files that have "input_file" or similar string located in the file name?
Thanks
I have a series of files that I want to grep out comment cards that begin with # and then write the output file name with a concatenated extension.
Example:
grep -v "#" input_file_name.dat > input_file_name_converted.dat
Is there also a way to do this in one script to do all the files in a directory that have a similar file_name pattern?
Such as convert all the files that have "input_file" or similar string located in the file name?
Thanks