Professional Documents
Culture Documents
2. Write a shell script to accept to accept two arguments and display the following output
a. Total number of command line argument
b. script name
c. first argument
d. second argument
e. All of them
4. Write a shell script to accept a filename as argument and display the file.
6. Write a shell script that takes a uid as an argument and prints out that person's name,
home directory, shell and group number.
7. Write a shell script that asks the user to type a word in, then tells the user how long that
word is. (read, wc)
8. Write a Shell Script to Get the Current Date, Time, Username and Current Working
Directory and write to a file.