It is currently Mon, 30 Mar 2020 21:57:25 GMT



 
Author Message
 deleteing '\015' from multiple files
I worked out that tr -d '\015' <infile> outfile works. How would I do it
for all files in a directory?

Nick



 Sun, 09 Sep 2001 03:00:00 GMT   
 deleteing '\015' from multiple files
Seriously: Go to a bookstore. Buy a beginner's UNIX book. Learn about
shell scripts.


 Sun, 09 Sep 2001 03:00:00 GMT   
 deleteing '\015' from multiple files

for i in `ls` ; do
    tr -d '\015' <$i >${i}.tr    # or something
done

--
J. S. Jensen
mailto:jsjen...@Paramin.COM
http://www.Paramin.COM



 Sun, 09 Sep 2001 03:00:00 GMT   
 deleteing '\015' from multiple files
On Wed, 24 Mar 1999 08:33:00 -0700, J. S. Jensen <jsjen...@Paramin.COM> wrote:

Useless Use Of Backticks:
 for i in *; do
     tr -d '\015' <"$i" >"${i}.tr"    # or something
 done

Also, the backtick version does not work right if a filename
contains a character in $IFS, wheras the second one handles
this fine.

                --Ken Pizzini



 Sun, 09 Sep 2001 03:00:00 GMT   
 deleteing '\015' from multiple files
I have a feeling that you will be getting many replies to this one.
Looking at the man for "find" gives some examples of combining with other
commands.
Let me know what you finally end up with.


 Sun, 09 Sep 2001 03:00:00 GMT   
 deleteing '\015' from multiple files
On Wed, 24 Mar 1999 15:13:56 GMT, Kurt J. Lanza <k...@inforonics.com> wrote:
Hi

check out
www.mcp.com
i think
you will be able to run a program like wget and take out the unix sys admin book down
in html format it is good :)

--
Check Out: http://www.users.zetnet.co.uk/james/
E-Mail: mist...@zetnet.co.uk



 Sun, 09 Sep 2001 03:00:00 GMT   
 
   [ 6 post ] 

Similar Threads

1. Finding multiple files with 'find'

2. Help with multiple 'index.html' files

3. Finding multiple files with 'find'

4. multiple ip's - multiple inetd's?

5. deleteing unwanted zero's after the dec point

6. How can I strip cartridge returns (015) ?

7. AGX-015

8. Orchid Celcius AGX-015

9. Print queue error 0514-015

10. ECA-015 and entdd (/etc/drivers) 3.2.0


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software