![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
bash: How to: read -d '\r' . . (delimit on a meta character)Hi again , How about this one:
I am writing a script to talk to my pop server. All the lines returned from the server are crlf (0x0d 0x0a) The read command trims the 0x0a and the line is left with 0x0d ending. I figured out how to use the tr utility do delete it: Code:
So I have not been able to figure out how to get read to see the \r. examples: Code:
Is this where I need to learn to use RE in bash? |
|||
Recent GIDBlog
Toyota - 2009 May Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bash test for a dot terminatior in pop3 server LIST output | Howard_L | Computer Software Forum - Linux | 3 | 29-Sep-2009 10:40 |
| Search and replace char in same text file | lanz | C Programming Language | 6 | 17-May-2009 13:21 |
| Re: Things to Avoid in C/C++ -- gets() , Part 1 | WaltP | C Programming Language | 5 | 21-Jun-2007 13:13 |
| read Function [C++] | FFCD | C++ Forum | 2 | 28-Nov-2006 17:53 |
| Menu of character strings | aijazbaig1 | C Programming Language | 21 | 27-Jul-2006 04:07 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The