Wednesday, 21 November 2012

Write a script that deletes all leading and trailing spaces in all lines in a file. Also remove blank lines from a file. Locate lines containing only printf but not fprintf


Write a script that behaves both in interactive and non-interactive mode. When no arguments are supplied, it picks up each C program from current directory and lists the first 10 lines. It then prompts for deletion of the file. If the user supplies arguments with the script, then it works on those files only


Write a shell script to add the statement #include at the beginning of every C source file in current directory containing printf and fprintf


Write a script to display the last modified file


Write a script to display all lines of a file in ascending order


Write a script to display all words of a file in ascending order


Write a script for generating a mark sheet after reading data from a file. File contains student roll no, name , marks of three subjects


Ad

google analystics