p1.sh
#!/bin/bash
Result=`cat /etc/passwd`
echo "$Result"
:wq! //save and exit vi editor Shift+Esc :wq!
-on terminal type
: chmod 755 p1.sh //initially change the file permission(apply once when
you create new file)
: ./p1.sh //run the file
#!/bin/bash
Result=`cat /etc/passwd`
echo "$Result"
:wq! //save and exit vi editor Shift+Esc :wq!
-on terminal type
: chmod 755 p1.sh //initially change the file permission(apply once when
you create new file)
: ./p1.sh //run the file