Sponsored Content
Top Forums Shell Programming and Scripting How to remove line break character in a file Post 302514472 by cnraja on Friday 15th of April 2011 07:52:09 PM
Old 04-15-2011
Hi,
Please find the sample data
Bulgaria,CC,MallPlovdiv,Plovdiv,CCBPLO,2,CCBPLO2,"8 Perushtitza
",,4002,,3/11/2009,3/11/2009,Christie,Christie
Bulgaria,CC,MallPlovdiv,Plovdiv,CCBPLO,1,CCBPLO1,"8 Perushtitza
",,4002,,3/11/2009,3/11/2009,Christie,Christie

actual data should be
Bulgaria,CC,MallPlovdiv,Plovdiv,CCBPLO,2,CCBPLO2,"8Perushtitza",,4002,,3/11/2009,3/11/2009,Christie,Christie
Bulgaria,CC,MallPlovdiv,Plovdiv,CCBPLO,1,CCBPLO1,"8Perushtitza",,4002,,3/11/2009,3/11/2009,Christie,Christie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Remove Line Break

Dear all, Please advise what approach can remove all line break from a text file? e.g. Source file: A B C Target file: A, B, C Thanks, Rock (5 Replies)
Discussion started by: Rock
5 Replies

2. HP-UX

How to remove new line character and append new line character in a file?

Hi Experts, I have data coming in 4 columns and there are new line characters \n in between the data. I need to remove the new line characters in the middle of the row and keep the \n character at the end of the line. File is comma (,) seperated. Eg: ID,Client ,SNo,Rank 37,Airtel \n... (8 Replies)
Discussion started by: sasikari
8 Replies

3. Shell Programming and Scripting

How to remove line break in a csv file

Hi Experts, My requirement is to read the csv file and need to remove if any line break in it. sample data: Row1: "Oslo, Symra kino",Oslo,130-7,Symra 1,130-7-91 Row2:"Tønsberg, Brygga Kino SF",Tønsberg,202-1, Tønsberg SF 4,202-1-4 Expected data: Row1: "Oslo, Symra... (6 Replies)
Discussion started by: cnraja
6 Replies

4. Shell Programming and Scripting

Help to remove line break

My requirement is to read the csv file and need to remove if any line break in it. sample data: Row1: "Oslo, Symra kino",Oslo,130-7,Symra 1,130-7-91Row2:"Tønsberg, Brygga Kino SF",Tønsberg,202-1.Tønsberg SF 4,202-1-4 Expected data: Row1: "Oslo, Symra kino",Oslo,130-7,Symra... (4 Replies)
Discussion started by: cnraja
4 Replies

5. UNIX for Dummies Questions & Answers

Remove Line Break VI

I'm trying to make a script that says echo This is the date: I did this echo This is the date: date and it worked. But I need them both on the same line. And putting date on the echo line doesn't work. Is there a way to do so? (1 Reply)
Discussion started by: bbowers
1 Replies

6. Shell Programming and Scripting

How to remove new line character at end of file.

I need to remove new line character from end of file. Suppose here are content. a|b|c|d|r a|b|c|d|r a|b|c|d|r <new line> that means file contains 4 lines but data is there in 3 lines. so I want that only 3 lines should be there in file. Please help (20 Replies)
Discussion started by: varun940
20 Replies

7. Shell Programming and Scripting

Remove the last character (,) for every line in a file

Good afternoon: im working wih 2 files to find differences and use the cmp command cmp file1 file2 file1 file2 are are diifferent char 302 line1 i found what the difference is with the sed command and that is the file1 at the end of every line has a (,) (comma) character. i.e sed -n... (4 Replies)
Discussion started by: alexcol
4 Replies

8. Shell Programming and Scripting

How to Remove comma as last character in end of last line of file?

how to Remove comma as last charector in end of last line of file: example: input file --------------- aaaaaa, bbbbbb, cccc, 12345, ____________ output file : ----------- aaaaaa, bbbbbb, (6 Replies)
Discussion started by: RahulJoshi
6 Replies

9. UNIX for Dummies Questions & Answers

How to remove $ or new line character in a file?

Hi All, Could any one suggest how to remove $ symbol in a text file when i am opening in vi editor. Scenario; For example iam having a file name aaa.txt the data inside the file is like sample name when i am opening in vi editor The same file resembles like below when i am... (1 Reply)
Discussion started by: Chandru_Raj
1 Replies

10. Shell Programming and Scripting

Remove line break at specific position

Hi, I need to remove line breaks from a file, but only the ones at specific position. Input file: this is ok this line is divided at posit ion 30. The same as this one, also position 30 the rest of lines are ok with different lengths The longest ones are always s plitted at same... (15 Replies)
Discussion started by: qranumo
15 Replies
ISCSISTART(8)						   Linux Administrator's Manual 					     ISCSISTART(8)

NAME
iscsistart - iSCSI boot tool SYNOPSIS
iscsistart [OPTION] DESCRIPTION
iscsistart will start a session using the settings passed in, or using the iBFT or Open Firmware [OF] boot information. This program should not be run to manage sessions. Its primary use is to start sessions used for iSCSI root boot. OPTIONS
[-i|--initiatorname=]name Set InitiatorName to name (Required if not using iBFT or OF) [-t|--targetname=]name Set TargetName to name (Required if not using iBFT or OF) [-g|--tgpt=]N Set target portal group tag to N (Required if not using iBFT or OF) [-a|--address=]A.B.C.D Set IP addres to A.B.C.D (Required if not using iBFT or OF) [-p|--port=]N Set port to N (Optional. Default 3260) [-u|--username=]N Set username to N (Optional) [-w|--password=]N Set password to N (Optional) [-U|-username_in=]N Set incoming username to N (Optional) [-W|--password_in=]N Set incoming password to N (Optional) [-d|--debug=]debug_level Print debugging information [-b|--fwparam_connect] Create a session to the target using the iBFT or OF info [-N|--fwparam_network] Bring up the network as specified by iBFT or OF [-f|--fwparam_print] Print the iBFT or OF info to STDOUT [-P|--param=]NAME=VALUE Set the parameter with the name NAME to VALUE. NAME is one of the settings in the node record or iscsid.conf. Multiple params can be passed in. [-h|--help] Display this help and exit [-v|--version] Display version and exit SEE ALSO
iscsiadm(8) AUTHORS
Open-iSCSI project <http://www.open-iscsi.org/> Mike Christie <mchristi@redhat.com> Jan 2010 ISCSISTART(8)
All times are GMT -4. The time now is 06:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy