At 10:39 PM 7/31/2002 -0700, you wrote:
>People,
>1) "cat dosFile | tr -d '\015' > unixFile" removes
>'\015' from dosfile and put it in the unix file, can
>anybody suggest me a similar way to do that on the
>folder. No temp files please, I am gonna have some
>really big folders.
a) for x in dir/*; do dos2unix $x ; done
(Instead of dos2unix you can use your own commandline as yo had done
before)
b) perl -n -p -i -e 's/\r//' dir/*
(Untested code. Check on a dummy file before trying)
>2) And why does not variable exported in the same
>command be available on the other side of pipe ? Like
>in :
No. This is because the shell creates a different parallel process for
every command in the pipes of the command-line. Since they have all been
spawned from the shell at the same time, a variable in environment of one
of the process is not available in a parallel process.
- Sandip
================================================
To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject
header. Check archives at http://www.mail-archive.com/ilugd%40wpaa.org