Please help me in this Assignmets


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Please help me in this Assignmets
# 1  
Old 09-05-2008
Java 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'.
# 2  
Old 09-05-2008
PHP No homework allowed

Please see the rules of the forum
https://www.unix.com/unix-dummies-que...om-forums.html

(6) Do not post classroom or homework problems.
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question