Linux Terminal Glossary
›
Text Processing
sed -n '/pattern/p' file.txt
Category:
Text Processing
sed -n '/pattern/p' file.txt
Copy command
Print only lines matching a pattern
Prints only lines that match the pattern, like grep but using sed's syntax.
Looking for more?
Search all 7,657 commands
— works offline, in English or Spanish, and fixes typos.