Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Big Data, Mining, And Analytics Components Of Strategic Decision Making

Authors: Stephan Kudyba

1st Edition

1466568704, 9781466568709

More Books

Students also viewed these Databases questions

Question

Explain the importance of HRM to all employees.

Answered: 1 week ago

Question

Discuss the relationship between a manager and an HR professional.

Answered: 1 week ago

Question

Outline demographic considerations.

Answered: 1 week ago