Answers for "how do i add another line to a file in linux"

-1

linux write each line from file to new file

for line in $(cat file.txt); do echo "${line}" > "directory/filename_${i}.txt"; i=$(( $i + 1 )); done
Posted by: Guest on April-02-2021

Code answers related to "how do i add another line to a file in linux"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language