how to check if the first line of file contain a specific string?
136673
How to print file content only if the first line matches a certain pattern?
100897
How to use grep/awk/unix to match all lines from one file in another file, even if they are duplicates
104734
How do you get the first file in each subdirectory matching a list of file extensions?
3336
I want to search a pattern from one file in another
23208
How can I check if a file exists in Perl?
1949
How do I check whether a file exists without exceptions?
105573
Filter file by line number
144254
How to find files that match a wildcard string in Java?
123712
How to list .txt files with specific content?
69991
How do I use grep to search for the string "-1"
48058
Deleting Lines Containing a Specified String in Different Files
68318
How can I remove the first line of a text file using bash/sed script?
71912
How to return both file name and line number with find ... -exec grep?
28379
How do I check to see if a text file is empty or does not exist in c++?
124318
Is there a faster way to remove a line (given a line number) from a file?
4081
How can I extract records from a file if they include a specific set of strings?
137070
If column matches another file, print every line with match (awk/grep)