Pipe Questions
Pipe Questions
1. Write Script to see current date, time, username, and current directory
2. How to write shell script that will add two nos, which are supplied as
command line argument, and if this two nos are not given show error and its
usage
3. Write a shell program
1. Create two folders.
2. create 20 files in a one folders folder. File name should start with
file_<1,2,3...20> (use loop and counter for numbers)
3. cut numbers from file name
say: file1 --> 1
file18 --> 18 and so on
4. save these numbers in new file. eg. number_file
5. create 20 files in another folder. This time file name should start with
newfile_<1,2,3,....> (use number_file to add numbers after underscore)