Text search and manipulation
grep text file1 |
display the lines that contains text in file1 |
grep -ni text file1 |
ignore the case and display line numbers of the matched lines |
awk -F',' '{print $1"@"$3}' |
print col1@col3 |
awk -F'\t' '/str/ {print $0}' |
print line with str |
Comments