Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
grep all except last
Alan
Programming language:
Shell/Bash
2021-03-31 23:07:40
5
Q:
grep all except last
user1751825
Code:
Shell/Bash
2021-03-12 02:41:05
sed \$d #For grepping all lines of a file except last line
0
Tags
last
Related
grep count lines
grep last word in line
grep until third match
grep second match
grep first match
grep word after match
grep line after match
grep all lines after first match
bash grep all after match
grep only third match
grep print all after
grep until last match
New to Communities?
Join the community