Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
On Wed, 2 Oct 2002, Mike Miller wrote:
> It seems to me that this does what we want for an individual text file:
>
> perl -pi -e 's/\015$//' filename
>
> Is there an easy way to make this into a script that will take filenames
> (possibly with wildcards) as input? It would be nice if it would work
> with wildcards exactly as ls works with them.
I find that on the command line, this works just fine:
perl -pi -e 's/\015$//' c* f* [i-l]* {reut,mail}*
So what's the trick to making that into a perl script? It would be cool
if it would check that the file is text, but I don't need that. I can
make it work something like this...
#!/usr/local/bin/tcsh -f
perl -pi -e 's/\015$//' "$*"
...but I know that's making the perl programmers ill!
Mike
--
To unsubscribe, go to http://mlug.missouri.edu/members/edit.php
Archives are available at http://mlug.missouri.edu/list-archives/