Shell Script. Assignment 1. Shell. It is called a "shell" because it hides the details of the underlying OS behind the shell's interface. In the Unix operating system users can select which shell they want to use. Example – Bourne Shell, C Shell etc.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
done < /directory/filename
case $variableName in
While ( currentProcessID NOT equal to 1 )
If (currentProcessID IS equal to ProcessID) in file1
Print parentProcessID field of that entry from file1
var assign the current user
either print the var directly or write varin file1….the 2nd option is preferred.
End of while
who | while read onlineuser
echo $onlineuser | cut –f1 –d‘ ’ >>userlist
while read onlineuser
Like before, save $index $onlineuser in a new file
Increase index by 1
done < userlist
desireduser=$(open newfile | pattern match with $choice | cut the 2nd field as o/p)
do compare username