Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I made this batch file: #!/bin/sh #Move to the directory cd $HOME/data/yesh/due/File #Make the files needed cat > file1/file1.txt cat > file2/file2.txt cat > file3/file3.txt
I made this batch file:
#!/bin/sh #Move to the directory cd $HOME/data/yesh/due/File #Make the files needed cat > file1/file1.txt
cat > file2/file2.txt
cat > file3/file3.txt
cat > file4/file4.txt
cat > file5/file5.txt
cat > file6/file6.txt
cat > file7/file7.txt
But I need to actually add sentences inside each of the files that the cat command makes. How do I add text to these files in a script? and how do I bypass the (Ctrl + D) to close and save for each file? This prevents all files after the first one from being made.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started