Anyone familiar with regular expressions that can tell me how to grep for the first word of the first line of a set of files?
I have a bunch of csv files, and I would like to get the filenames of the files that have a certain value as the first word of the first line of the file.
I know I can use ^wordiamseachingfor to get the word at the start of the line, but how can I limit the search to the first line of the file?
I have a bunch of csv files, and I would like to get the filenames of the files that have a certain value as the first word of the first line of the file.
I know I can use ^wordiamseachingfor to get the word at the start of the line, but how can I limit the search to the first line of the file?