r/scripting • • Apr 03 '22
this is a simple question but im stumped
this is a part of a bash script that im writing as practice
while read line; do
echo "'$line'" >> $FILE'_v2'
done < $FILE
the output i expected was
'text'
'text'
'text'
'text'
but instead i got
'text
'
'text
'
'text
'
'text
'
anybody know whats happening?
3
Upvotes
1
u/Lee_Dailey Apr 03 '22
howdy Bruuuhh-_-,
you REALLY otta read & follow the rules shown in the sidebar. [grin]
you failed to mention what scripting lingo you are working with ... and that makes helping you seriously problematic. i advise you to add that info to the top or your post.
take care,
lee
0
u/[deleted] Apr 03 '22
[deleted] — view deleted comment