Misc Shell Scripts Tools in Bin 

>     #!/bin/sh
>
>     set -- "hinv" "df -k" "gfxinfo" "uname -a"       # etc.
>
>     for cmd in "$@"; do
>        echo "$cmd"
>        echo "\n\n$cmd\n--------------------" >> temp$$
>        $cmd >> temp$$
>     done

T_lc 

 > cat t_lc
#!/bin/csh
#
#echo $*
foreach i ( $* )
        set newfile = `echo $i | tr '[A-Z]' '[a-z]'`
        echo $newfile
        mv $i $newfile
end
[Note]

specifing '#!/bin/csh' in vitally important! otherwise, won't work.

T_u 

 > cat t_u
#!/bin/csh
#
#echo $*
foreach i ( $* )
        set newfile = `echo $i | tr '[A-Z]' '[a-z]'`
        echo $newfile
        dos2unix $i $newfile
        rm $i
end

T_d 

#!/bin/csh
#
#echo $*
foreach i ( $* )
        set newfile = `echo $i | tr '[A-Z]' '[a-z]'`
        #echo $newfile
        unix2dos $i $newfile
        rm $i
end

T_uc 

#!/bin/csh
#
#echo $*
foreach i ( $* )
        set newfile = `echo $i | tr '[a-z]' '[A-Z]'`
        #echo $newfile
        mv $i $newfile
end

documented on: 11:43:05

Misc tools example & history 

awk -F\t '{print $2}' <lget-log.txt  | sort | uniq >url.lst
grep '/$' url.lst | xargs -n 1 lwp-download -qbl lget-log.txt
cut -c6- common | perl -pe 's/^(.*)\n/"$1", /'

— add "", to word and del the \n

documented on: Thu 03-18-99 19:40:14