09-05-2008
1,
0
Join Date: Sep 2008
Last Activity: 5 September 2008, 9:44 AM EDT
Posts: 1
Thanks Given: 0
Thanked 0 Times in 0 Posts
Please help me in this Assignmets
Exercise 1:Write a shell script (named checkfiles.sh) that lists all text files "*.TXT" in a directory and writes the first line of each text-file to a file called Text_Heads.
Exercise 2:Write a shell script (called words-no.sh) that counts the number of distinct words in a text file given as Argument.
Remark: White space characters are spaces, tabs, form feeds, and new lines. Use the tr, sort, grep. wc.
Exercise 3:Write a shell script (called cleancore.sh) thatremoves unwanted files from a directory and its subdirectories.
Argument 1 is the directory where to start the search. It defaults to your home directory (If there is no directory by this name).
Argument 2 after the directory is standard file-name that match the files that are to be removed, it defaults is 'core'.