![]() |
|
|
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 char string | ALTRUNVRSOFLN | Shell Programming and Scripting | 5 | 08-07-2008 07:25 PM |
| how to get number char from a string | netbanker | Shell Programming and Scripting | 4 | 07-16-2008 04:16 PM |
| last char from a string | broli | Shell Programming and Scripting | 6 | 12-07-2007 08:02 PM |
| Remove Line that contains specific string | CBarraford | Shell Programming and Scripting | 3 | 08-23-2007 06:37 PM |
| Compare Char to String | Phobos | High Level Programming | 3 | 04-09-2005 12:01 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to remove new line char from a string
Hi
Can anyone tell me how can i remove new line character from a string. My requirement is to read a line from a file and store it to a string. read line string1=$line read line string2=$line echo $string1$string2 The result i am getting in different line. i want the output in the same line. I think a newline char is getting inserted into each string.How can i remove it? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|