Search Results

Search: Posts Made By: Shobana_s
3,649
Posted By Shobana_s
Inserting control characters at the end of each line
How to add control characters at the end of each line in a file?

Can anyone help me with this?

Thanks,
Shobana
2,841
Posted By Shobana_s
Please find below the entire code ...
Please find below the entire code


count=0
b=0
val=0
d=1
e=0
m=5
c=GR-PPDS_0335_02654_20091013_074653.EAI
while [ $count -lt 3 ]
do
b=`echo $c | cut -d"_" -f3`
b=`expr $b + 1`...
2,841
Posted By Shobana_s
Thanks for your help! Here are the details...
Thanks for your help!

Here are the details that you requested

Sample lines from input file:
002009101307350520093320091013335 ^M
0102654N3FKAA20091013S0013200000001 ^M...
2,841
Posted By Shobana_s
I don't want to truncate trailing spaces and ^M at the end of line
I have a script wherein I access each line of the file using a FOR loop and then perform some operations in each line. The problem is each line that gets extracted in FOR loop truncates trailing...
Showing results 1 to 4 of 4

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