Google
 

Shell Scripts - Part 05

Shell Scripts - Part 05


041-hilow.sh
A simple number guessing game


042-nfmt.sh
A version of fmt, using nroff. Adds two useful flags: -w X for line width and -h to enable hyphenation for better fills.



043-newrm.sh
A replacement for the existing rm command that allows a rudimentary unremove capability through utilizing a newly created directory in the user's home directory. It can handle directories of content as well as individual files, and if the user specifies the -f flag, files are NOT archived, but removed.


044-unrm.sh
To search the deleted files archive for the specified file. If there is more than one match, show a list ordered by timestamp, and let the user specify which they want restored.


045-logrm.sh
To log all file deletion requests unless "-s" flag is used


046-formatdir.sh
To output a directory listing in a friendly and useful format.


047-locate.sh
To search the locate database for the specified pattern.


048-mklocatedb.sh
To build the locate database using find .


049-DIR.sh
To pretend we're the DIR command in DOS and display the contents of the specified file, accepting some of the standard DIR flags


050-findman.sh
Given a pattern and a man section, show all the matches for that pattern from within all relevant man pages.

0 Responses: