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


Write a script to display the directory in the descending order of the size of each file


Write a script to display the date, time and a welcome message (like Good Morning etc.). The time should be displayed with “a.m.” or “p.m.” and not in 24 hours notation


Write a script to display the name of all executable files in the given directory


Write a script to display the name of those files (in the given directory) which are having multiple links


Write a script to delete zero sized files from a given directory (and all its sub-directories)


Write a script to compare identically named files in two different directories and if they are same, copy one of them in a third directory


Write a script to find the global complete path for any file


Tuesday, 20 November 2012

Write a script to check whether a given number is palindrome or not


Write a script to calculate gross salary for any number of employees
Gross Salary =Basic + HRA + DA.
HRA=10% and DA= 15%.


Write a script to make following file and directory management operations menu based:
  • Display current directory
  • List directory
  • Make directory
  • Change directory
  • Copy a file
  • Rename a file
  • Delete a file
  • Edit a file




Write a Script for Simple Database Management System Operation.
Database File Contains Following Fields.
EMP_NO
EMP_NAME
EMP_ADDRESS
EMP_AGE
EMP_GENDER
EMP_DESIGNATION
EMP_BASIC_SALARY

Provide Menu Driven Facility For

VIEW RECORD BASED ON QUERY
ADD RECORD
DELETE RECORD
MODIFY RECORD.
COUNT TOTAL NUMBER OF RECORDS
EXIT

Sample Data file

1|mrs. selina|ahmedabad|30|female|manager|20000
2|mr. jones|rajkot|32|male|production manager|50000

Write a script which reads a text file and output the following Count of character, words and lines. File in reverse. Frequency of particular word in the file. Lower case letter in place of upper case letter


Write a shell script to check whether the named user is currently logged in or not


Write A Script To Perform Following String Operations Using Menu: 1)COMPARE TWO STRINGS. 2)JOIN TWO STRINGS. 3)FIND THE LENGTH OF A GIVEN STRING. 4)OCCURRENCE OF CHARACTER AND WORDS 5)REVERSE THE STRING.


Ad

google analystics