Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
How can I remove the first line of a text file using bash/sed script?
kyticka
Programming language:
Shell/Bash
2021-05-02 16:17:18
0
Q:
How can I remove the first line of a text file using bash/sed script?
CElestin
Code:
Shell/Bash
2021-03-03 16:05:35
tail -n +2 "$FILE" > "$FILE.tmp" && mv "$FILE.tmp" "$FILE"
1
Farzaneh
Code:
Shell/Bash
2021-02-24 10:06:13
tail -n +2 "$FILE"
0
Tags
line
file
using
text
remove
how
first
script
text file
Related
bash remove first character from line
bash find text in specific file
bash remove characters from end of every line
bash delete file
bash how to delete a specific line from a file
bash delete first n characters of each line
bash delete the last line of a file
get string after character shell script
bash how to print lines after a matching line
bash return lines from one file that arent in another
linux remove lines from file
bash get field from line
bash how to remove the first n lines of a file
bash how to remove all whitespace from a file
delete lines text file linux
New to Communities?
Join the community