programming problems in UNIX/LINUX..??
Hey CEans please help me in following problems.These are a part of my Linux/Unix project but I am unable to do solve them due to lack of skills in Linux. Besides, I successfully made some of these on C++, but Linux is going out of way for me. 😕 😕
1. Create a file called wlcc.txt with some lines and display how many lines, words and characters
are present in that file.
2. Append ten more simple lines to the wlcc.txt file created above and split the appended file into 3
parts. What will be the names of these split files? Display the contents of each of these files.
How many lines will be there on the last file?
3. Given two files each of which contains names of students. Create a program to display only those names that are found on both the files.
4. Create a program to find out the inode number of any desired.
5.Write a pipeline of commands, which displays on the monitor as well as saves the information
about the number of users using the system at present on a file called usere.ux.
6.Write a shell script that reports the logging in of a specified user within one minute after he/she
logs in. The script automatically terminates if the specified user does not login during a
specified period of time.
7.Write a shell script that accepts any number of arguments and prints them in the reverse order.
Please CEans...
1. Create a file called wlcc.txt with some lines and display how many lines, words and characters
are present in that file.
2. Append ten more simple lines to the wlcc.txt file created above and split the appended file into 3
parts. What will be the names of these split files? Display the contents of each of these files.
How many lines will be there on the last file?
3. Given two files each of which contains names of students. Create a program to display only those names that are found on both the files.
4. Create a program to find out the inode number of any desired.
5.Write a pipeline of commands, which displays on the monitor as well as saves the information
about the number of users using the system at present on a file called usere.ux.
6.Write a shell script that reports the logging in of a specified user within one minute after he/she
logs in. The script automatically terminates if the specified user does not login during a
specified period of time.
7.Write a shell script that accepts any number of arguments and prints them in the reverse order.
Please CEans...
0