Computer Science, asked by jahanvi9312, 10 months ago

In shell scripying which symbol is used at end of a line to indicate cony

Answers

Answered by nnagamani2488
1

Explanation:

In shell scripying. Full stop is used

Answered by suraj62111
0

The UNIX and Linux Forums

×

Shell Programming & Scripting

End of Line in Shell Scripting

Original Post by 33junaid

33junaid

I have a file containing records seperated by delimiter '|'.A record is contained on 2 or 3 lines. Now I need a shell script which could write all records with in two '|' character in one line.....for example.....

|R1........................R1 

R1..........................R1

........R1|R2.............R2

R2......|R3..................

R3...........................R3

R3....................|R4.....

I want output as :

R1.............R1 (end of line)

R2...................R2 (end of line)

R3...R3 (end of line)

R4...............(end of line)

.....all on single lines no matter original record is in 2 lines or more or less......

Pls help in this regard.Thanks.

I am using this function to convert pipeline | to end of line (\n), but it is just writing n in the output:

it will definitely help u...

Similar questions
English, 1 year ago