Thank you very much. The sed command works great. The -i option is also great, thank you for the suggestions.
Lloyd Brown wrote: >Try this: > >sed -e 's/ \+/\t/g' <filename> > >Now, normally, I'd use a "\s" to represent any form of whitespace, but for >some reason, this wasn't working for me, so I just used a single space. >Honestly, I *really* like regexes, but I use them either in a language >like Perl, or in an editor most often. Sed isn't really my area of >expertise. > >As always, if you want to edit the file in place, saving changes, instead >of just outputting the changed data to stdout, just add the "-i" parameter >to sed. > >Lloyd Brown > >Eduardo Sanz Garcia said: > > >>I have a file like this: >>[arbitrary number of spaces]/37/[arbitrary number of >>spaces]/100/[arbitrary number of spaces]/95/ >> >>I want to convert each arbitrary number of spaces into one tab: >>[tab]/37/[tab]/100/[tab]/95/ >> >>How can I do this with sed? >>Thank you. >>-------------------- >>BYU Unix Users Group >>http://uug.byu.edu/ >> >>The opinions expressed in this message are the responsibility of their >>author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. >>___________________________________________________________________ >>List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list >> >> >> >> >> > > >-------------------- >BYU Unix Users Group >http://uug.byu.edu/ > >The opinions expressed in this message are the responsibility of their >author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. >___________________________________________________________________ >List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list > > > -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
