Assumes you want "horse" AFTER line 6.perl -pe '$.==6 and $_.="horse\n"' inp.file > out.file
"You're only given one little spark of madness. You mustn't lose it." - Robin Williams
In reply to Re: How to insert a new line?
by NetWallah
in thread How to insert a new line?
by Mocky123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |