I want to remove the first two line from a textfile. Trying with
- Code: Select all
sed '1,2d' "$1"
as a shell script doesn't work. Why not?
Thanks,
Anders
Moderator: Mr_Noodle
sed '1,2d' "$1"
sed '1,2d' "$1" > "$1"
sed '1,2d' "$1" > "$1"
cat "$1" >> "/Users/anders/Dropbox/Private/ideas.md"