Search Results

Search: Posts Made By: varun940
34,138
Posted By varun940
#!/bin/ksh while read line do echo...
#!/bin/ksh
while read line
do
echo "$line\c"
done < inputfile > outputfile

This removed all new line characters. I want only last to be removed.

Ques: What exactly do you want to do?...
34,138
Posted By varun940
Just tried this command. This command even...
Just tried this command.
This command even removed one line of my data.

My data is
A<new line>
B<new line>
c<new line>
D<new line>

So If I open the file cursor is at the new line below D....
34,138
Posted By varun940
I tried awk command but output and input files...
I tried awk command but output and input files are same.
for sed I tried to insert one extra carriage return at the end and it removed one line only.
34,138
Posted By varun940
Sorry if I hurt you... but I was trying...
Sorry if I hurt you... but I was trying everything and asked for help.
34,138
Posted By varun940
not working.
not working.
34,138
Posted By varun940
Tried and It didn't remove it. Manually problem...
Tried and It didn't remove it.
Manually problem is removed by placing cursor at last line then press back button.

---------- Post updated at 12:17 PM ---------- Previous update was at 12:15 PM...
34,138
Posted By varun940
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....
Showing results 1 to 7 of 7

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