Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
sed print all lines except last
kaori maeda
Programming language:
Shell/Bash
2021-06-13 12:53:09
0
Q:
sed print all lines 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
line
int
print
last
Related
sed print from match to end of file
sed all except last
bash print last n lines of file
sed replace from match to end of line
linux shell loop through all inputs except last
bash print lines that contain multiple specific words
bash print lines that match any of several words
sed remove until first occurrence
sed replace all until match in line
New to Communities?
Join the community