10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to remove the carriage return comes inbetween the record.
Need to have CR only at the end.
I used the below command.
tr -d '\n' < filewithcarriagereturns > filewithoutcarriagereturns
But its removing all the CR and giving one line output.
abcdegh... (11 Replies)
Discussion started by: srvn_saru
2. Shell Programming and Scripting
I've a flat file in the following format:
And I want to substitute \n with the carriage return. Any help is appreciated!
- Seth (8 Replies)
Discussion started by: sethmj
3. Shell Programming and Scripting
How do i usecarriage return in ksh.
I want to do an echo "bla bla" and another echo "bla bla" will appear and replace the first echo on screen.
until ; do
echo "bla bla \r"
Thanks. (3 Replies)
Discussion started by: LiorAmitai
4. Shell Programming and Scripting
I've been working on this for some time. Seems simple, but I'm stumped.
I need the following data format:
... (5 Replies)
Discussion started by: leepet01
5. Shell Programming and Scripting
Hi all gurus,
I need help in removing carriage return existed within a record delimited by pipe <|>.
A_02|Test2|Testing2|Remarks2... (10 Replies)
Discussion started by: agathaeleanor
6. Shell Programming and Scripting
Now i have a different problem, lost "carriage return" when assigning a variable. The assignation is done in a peculair way but its ok.
The variable "v_tmp" have spaces and carriage return. Its created with v_tmp=`echo $i | awk '.........'`
And the assignation where i lost all the... (6 Replies)
Discussion started by: trutoman
7. UNIX for Dummies Questions & Answers
hi can anyone please tell me the difference between carriage return, linefeed and newline ? (2 Replies)
Discussion started by: streetfi8er
8. Shell Programming and Scripting
I have observed with print & echo, they produce carriage return <CR> or newline, after they display string next to them.
Is there anyway to avoide these <CR> after the intended string is displayed? (3 Replies)
Discussion started by: videsh77
9. Shell Programming and Scripting
I have a file with multiple records in it and want to create a single record by removing all the carriage returns, is there a sed command or another command that will easily allow this to happen.
previously I... (3 Replies)
Discussion started by: r1500
10. Shell Programming and Scripting
I try to test the carriage return in a variable.
$ LENGTH=`expr $VARIABLE : ".*"` will return the length of the variable. But this doesn't work if $VARIABLE has zero length.
Any help will be well appreciated.
Thanks in advance.
Giovanni (4 Replies)
Discussion started by: gio123bg