Do you have a method to quickly remove the first line of a file in bash shell ? I mean using sed or stuff like that.
Remove first line in bash
bash
bash
Do you have a method to quickly remove the first line of a file in bash shell ? I mean using sed or stuff like that.
Best Answer
One-liners in reverse order of length, portable unless noted.
sed
(needsGNU sed
for-i
):ed
(needs e.g.bash
for$'...'
expansion and here string):awk
:tail
:read
+cat
:bash
built-ins: