Dec 16, 2004 #1 rtrujill MIS Joined Nov 16, 2004 Messages 6 Location US How can I convert a space to tab. Unix HP-UX 11.11
Dec 16, 2004 #2 futurelet Programmer Joined Mar 3, 2004 Messages 539 Location US Convert a run of spaces to a tab. [tt] awk '{gsub(/ +/,"\t";print}' in >out [/tt] Upvote 0 Downvote
Dec 16, 2004 Thread starter #3 rtrujill MIS Joined Nov 16, 2004 Messages 6 Location US Will this do it globally throught the file? Upvote 0 Downvote
Dec 16, 2004 #4 futurelet Programmer Joined Mar 3, 2004 Messages 539 Location US Yes. For an introduction to Awk, see faq271-5564. Upvote 0 Downvote
Dec 16, 2004 #5 PHV MIS Joined Nov 8, 2002 Messages 53,708 Location FR man pr Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
man pr Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244