I want to save a .txt file to 2 separate .txt files using command placed in a .txt file. I can use sed -e '1,20 w file1' -e '21,$ w file2' input.txtBut how would I plac e this command in a file called div so I could use it like this and get the same resultsed -f div input.txt
Multiple sed commands in a file
shell script;sed