hcclnoodles
IS-IT--Management
Hi there
Probably an easy question to answer, but how can i add/remove particular lines of a text file from a shell script, for example i have a text file called text.txt which has 3 lines of text and i would like to insert those 3 lines into lines 7,8 and 9 of mainfile.txt (which is somewhere in the middle of the file, not at the end)
on the other side, how can i issue a command from the shell that will remove lines 7,8 and 9 from main.txt
any help on this would be greatly appreciated
Probably an easy question to answer, but how can i add/remove particular lines of a text file from a shell script, for example i have a text file called text.txt which has 3 lines of text and i would like to insert those 3 lines into lines 7,8 and 9 of mainfile.txt (which is somewhere in the middle of the file, not at the end)
on the other side, how can i issue a command from the shell that will remove lines 7,8 and 9 from main.txt
any help on this would be greatly appreciated