This is a discussion on tr command delete tabs in file within the AIX Operating System forums, part of the Unix Operating Systems category; --> Hello, I am trying to use tr to delete tabs in a file. I've tried tr -d \t filename ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| On Mon, 06 Nov 2006 13:25:03 -0500, David Groff wrote: > Hello, > I am trying to use tr to delete tabs in a file. > I've tried tr -d \t filename to no avail. Any suggestions as to how this > can be done. If you just want to delete the tabs, try: tr -d '\011' <filename >newfile but if you would rather convert the tabs to spaces, then try: expand filename >newfile -- Dave Seaman U.S. Court of Appeals to review three issues concerning case of Mumia Abu-Jamal. <http://www.mumia2000.org/> |
| ||||
| Dave Seaman wrote: > On Mon, 06 Nov 2006 13:25:03 -0500, David Groff wrote: >> Hello, > >> I am trying to use tr to delete tabs in a file. >> I've tried tr -d \t filename to no avail. Any suggestions as to how this >> can be done. > > If you just want to delete the tabs, try: > > tr -d '\011' <filename >newfile > > but if you would rather convert the tabs to spaces, then try: > > expand filename >newfile > > Thanks for your help |