On Mon, 28 Jul 2003, McKown, John wrote:

> Well, just because I know that everybody is dying of curiousity about what
> I've done. I created the shell script:
>
> #!/bin/sh
> cut -c1-72 $1 | sed -e 's/\ *$//' >$2
>
> I invoke it in a subdirectory with:
>
> for i in *;do ../nonum.sh $i $i.ext;done
>

A lot of people use the dot-sh suffix. I presume some of them think it's
needed.

It's not, and it doesn't even mean a lot to me, a reader. Why would I
trust you to get it right? If I want to know what kind of executable, I
use the file command. If it's a script, I then may use the less command.


A script like that is very useful for fixing HTML too;-) For that,
though, I tend to use some other editor than sed.


Aother utility you should be aware of is awk.



--


Cheers
John.

Join the "Linux Support by Small Businesses" list at
http://mail.computerdatasafe.com.au/mailman/listinfo/lssb
Copyright John Summerfield. Reproduction prohibited.

Reply via email to