wellster34
Programmer
Hi,
I have a data file, an example is shown below, called input.dat:
"1"
"2"
"3"
It contains double quotes around the numbers, so I want to replace the double quotes with a blank.
rpl '"' "" < input.dat > new.dat
Now, when I run this, it returns what I want with the exeception that it adds a blank line at the end of file. So, instead of having 3 rows in the new.dat file, I now have 4! 3 rows like:
1
2
3
with an additional line that is a blank.![[sad] [sad] [sad]](/data/assets/smilies/sad.gif)
Is there a reason why a new blank line gets added? Is there a way to remove it? Or any other ideas on how to perform what I'm trying to do.
Thanks for your time.
I have a data file, an example is shown below, called input.dat:
"1"
"2"
"3"
It contains double quotes around the numbers, so I want to replace the double quotes with a blank.
rpl '"' "" < input.dat > new.dat
Now, when I run this, it returns what I want with the exeception that it adds a blank line at the end of file. So, instead of having 3 rows in the new.dat file, I now have 4! 3 rows like:
1
2
3
with an additional line that is a blank.
![[sad] [sad] [sad]](/data/assets/smilies/sad.gif)
Is there a reason why a new blank line gets added? Is there a way to remove it? Or any other ideas on how to perform what I'm trying to do.
Thanks for your time.