![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| converting hex to dec | aismann | Shell Programming and Scripting | 4 | 02-26-2008 05:51 AM |
| sed converting / to \/ | sakthi.abdullah | UNIX for Advanced & Expert Users | 8 | 12-14-2006 03:56 AM |
| Converting | seeyou | SCO | 3 | 01-19-2006 02:22 PM |
| converting .txt | laila63 | UNIX for Dummies Questions & Answers | 4 | 06-30-2004 04:56 PM |
| converting kb to mb | csaunders | UNIX for Dummies Questions & Answers | 1 | 02-26-2004 04:14 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Converting \0 to a \n
Hi - I have seen some similar posts but I am a bit stumped here
below is the first line of a 'od -c filename' command. I want to change the \0 to \n 0000000 l s \0 c d - \0 c d . . \0 l s I have tried a sed construct in a script......... sed 's|\\0|\\n|g' filename - with no success. If I type this at the command line the cursor shoots off to the left margin of the screen as soon as I type the second '|' Any help most appreciated - I am sure this should not be this difficult!! |
|
||||
|
Check your man page for tr.
Mine says - SunOS 5.10 Last change: 13 Aug 2003 7 User Commands tr(1) Unlike some previous versions, /usr/xpg4/bin/tr correctly processes NUL characters in its input stream. NUL characters can be stripped by using tr -d '\000'. so try tr -d < (infilename) > (outfilename) |
|
||||
|
Red Herring
Hi
please disregard the comment about the cursor heading off to the left margin - my terminal emulator is playing up. cheers |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|