![]() |
|
|
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 |
| parsing output from SQL querry | ludvig | Shell Programming and Scripting | 7 | 10-23-2007 06:42 AM |
| parsing output from a diff command... | kam | Shell Programming and Scripting | 5 | 05-30-2007 12:26 AM |
| problem parsing output file | ragha81 | Shell Programming and Scripting | 13 | 03-21-2007 02:06 PM |
| parsing output from ls command | ajaya | Shell Programming and Scripting | 3 | 05-10-2006 11:22 AM |
| HTTP Query Request & Parsing returned XML output | jerardfjay | Shell Programming and Scripting | 15 | 05-18-2005 10:25 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
problem parsing process-output
HI all! I have a problem parsing the output of another process. The output is like this (C): Code:
printf("\rCheck exist: %d/%d",idx,pBF->NBits());
The aim of the script I'm coding is to save in a separate file the last output line of first process. This is the script now (Shell script): Code:
nohup long_process | while read line ; do echo $line > stdout.file done The problem comes with the lines with carriage returns (\r), that they're not saved in the file. I tried with $sed 's/\r/\n/g' , with $tr -r '\r' , etc,. with no result Anybody can help me? thanks |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|