Search Results

Search: Posts Made By: learning
5,086
Posted By learning
Yep - that seems to have worked. Apparently my...
Yep - that seems to have worked. Apparently my input has some spaces at the end so i had to execute it twice:


sed -e 's/ *$//g' file.out > no-space.out
sed -e 's/,*$//g' no-space.out


Thank...
5,086
Posted By learning
How to remove last character in a string read from file
Hello,

The last character is a comma ,

I have tried the following:


sed -e 's/\,$//' filename-to-read


however - there are still commas at the end of each line...:confused:
Showing results 1 to 2 of 2

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