Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site druil.UUCP Path: utzoo!watmath!clyde!cbosgd!ihnp4!houxm!mtuxo!drutx!druil!lat From: lat@druil.UUCP (TepperL) Newsgroups: net.sources Subject: Simple ls typo fixer for lazy people Message-ID: <1673@druil.UUCP> Date: Thu, 13-Feb-86 12:29:02 EST Article-I.D.: druil.1673 Posted: Thu Feb 13 12:29:02 1986 Date-Received: Sat, 15-Feb-86 01:15:37 EST Organization: AT&T Information Systems Laboratories, Denver Lines: 38 Some common typos that I make alot runs along the lines of: l s-l or ... ls-lt and so on... Since net.sources has been rather quiet for a while, here's a few simple shell scripts to handle these typos: -----------------------Cut here--------------------- # echo You better be running this through /bin/sh ... echo We will be extracting 4 files echo '' echo extracting l ... cat > l << 'End_Of_l' case $1 in s*) eval `echo $* | sed 's=s=ls ='` ;; *) echo "1st arg isn\'t 's'." 1>&2 exit 1 ;; esac End_Of_l echo extracting ls-l ... cat > ls-l << 'End_Of_ls-l' ls -l "$@" End_Of_ls-l echo extracting ls-lt ... cat > ls-lt << 'End_Of_ls-lt' ls -lt "$@" End_Of_ls-lt echo extracting ls-ltd ... cat > ls-ltd << 'End_Of_ls-ltd' ls -ltd "$@" End_Of_ls-ltd exit 0 -- Larry Tepper {ihnp4 | allegra}!drutx!druil!lat +1-303-538-1759