Search Results

Search: Posts Made By: vsantoshusa
4,551
Posted By vsantoshusa
Franklin It worked . Here it should be ...
Franklin

It worked .
Here it should be sed '/^M$/N;s/^M\n//' "$file" > /tmp/tempfile.tmp


Thanks for your help.
4,551
Posted By vsantoshusa
Franklin Thanks for your help. Your...
Franklin

Thanks for your help.

Your script is working manually one by one at the command prompt.
But I am trying to do automatic the script is below which is not working.
For ^M...
4,551
Posted By vsantoshusa
lakis I am looking for a automatic script...
lakis

I am looking for a automatic script in finding the ^M and then doing concat the line .
Suppose in the file we have 10 lines with ^M .

I checked the tr command it is not working....
4,551
Posted By vsantoshusa
Hari In one file it has some lines like...
Hari

In one file it has some lines like this

CDMA 1x=5102305, 2008-09-05 07:59:04, NAI=$QCMIPNAI^M
0000000000@vzw3g.com, MIN=0000007356, Config=62558-11 Verizon Std P3

Here first we have...
4,551
Posted By vsantoshusa
Hari I know the answer for removing the ^M ...
Hari

I know the answer for removing the ^M ie..

awk '{ sub("\r$", ""); print }' filenew > newfilename which works for me .

First we have to search ^M and then concat the line and...
4,551
Posted By vsantoshusa
How to concat line first and then removing the ^M character
hi

Someone can give me some clue or script in writing the below requirement

I am having 5 or 10 files of unix files which contain ^M charactes.

First we have to find ^M character and...
Showing results 1 to 6 of 6

 
All times are GMT -4. The time now is 09:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy