To create a text file using shell script
|
|
|
Question / Problem
|
How to create a text file using shell script?
|
Solution
|
|
To create a shell script
vi file.sh echo "name name name name" > filename :wq
To run the shell script:
sh file.sh
Output:
cat filename name name name name
|
Applies to |
|
Solaris
|
Rank It |
|