How do I find a line number by searching for a string in a text file
44077
What is simpliest way to get Line number from char position in String?
136673
How to print file content only if the first line matches a certain pattern?
106902
Find the location of a character in string
69593
Find files with matched whole lines from a file
5664
How can I extract/change lines in a text file whose data are separated into fields?
57242
How to search and replace text in a file?
8298
How to find/grep what is between string1 and string2?
125837
Select lines from text file which have ids listed in another file
69991
How do I use grep to search for the string "-1"
71912
How to return both file name and line number with find ... -exec grep?
42619
How to delete a specific line in a file?
65479
Search for multiple patterns from a file using find command
105605
Find each line matching a pattern but print only the line above it
67811
How do I move a line in a text file up or down by one line?
4081
How can I extract records from a file if they include a specific set of strings?
124497
remove lines that contain a specific text in a file
54282
Find files containing keyword and show only the file path and the line number