3
I need to create a script that inserts the echo command at the beginning of each line of the file and at the end >> blocodenotes, for example
#!/bin/bash
ls -l
uname -a
netstat -tunap
I want a script that turns into this:
echo "#!/bin/bash >> log"
echo "ls -l" >> log"
echo "uname -a" >> log"
echo "netstat -tunap >> log"
With the command
cat
it is possible to write a block of instructions to a file using the simple resourcedocument here
.– SHAMAN