I need to create a script that inserts the echo command at the beginning of each line of the file and at the end > > blocodenotas, for example
#!/bin/bash
ls -l
uname -a
netstat -tunap
I want a script that turns this into:
echo "#!/bin/bash >> log"
echo "ls -l" >> log"
echo "uname -a" >> log"
echo "netstat -tunap >> log"