[net.sources] Simple ls typo fixer for lazy people

lat@druil.UUCP (TepperL) (02/13/86)

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