On Thu, Aug 01, 2002 at 02:36:31AM -0700, Amol Rao thundered from the skies thus: > Thanks Sandip, > > > find dir/ -exec dos2unix {} \; > I tried this but the code would not respond. Maybe > dos2unix not getting arguments. Is it ?
Try : find /usr/local -type f -exec wc -c {} \; Should give you the file sizes of all files under /usr/local, after recursion. Works on my system. IF this works, try replacing "wc -c" with dos2unix, assuming you do have dos2unix in your system. You can use the command "perl -n -i -p -e 's/\r//' " instead of dos2unix. You do have perl on your system, don't you? ;) Also this would be faster on your system > One questions though : How does input is passed from > one side of the pipe to the other if the commands are > executing in two different shells ? Bash changes the standard input/output of each of the child processes according to the pipe order. Check out APUE for more info/examples of the same. - Sandip -- Sandip Bhattacharya sandipb @ bigfoot.com http://www.sandipb.net --------------------------- Got some news from/for the Free(tm) world in India? Get to be a journo at http://opennews.indianissues.org ================================================ To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject header. Check archives at http://www.mail-archive.com/ilugd%40wpaa.org