Search Results

Search: Posts Made By: likelylad
1,969
Posted By likelylad
Hi, My code is: letter = $(echo...
Hi,

My code is:

letter = $(echo "$v_check" | sed s/A/1)
letter = $(echo "$v_check" | sed s/B/2)
letter = $(echo "$v_check" | sed s/C/3)
letter = $(echo "$v_check" | sed s/D/4)
letter =...
1,969
Posted By likelylad
Using SED
Hi,

Is it possible for me to substitute a letter in a variable for another letter using sed? Or can you only substitute using SED in a file and not a variable?


Thanks
3,664
Posted By likelylad
Thanks.
Thanks.
3,664
Posted By likelylad
Is there a way to doit so that it copies it...
Is there a way to doit so that it copies it rather than moving it?

So I have

echo "blah blah blah"
echo "blah blah"
echo "blah blah blah blah"
echo "blah blah blah"

and I'd like to copy...
3,664
Posted By likelylad
thanks! so if I had several lines of echoed...
thanks!

so if I had several lines of echoed text, I'd put that after after line? Or after the whole block?
3,664
Posted By likelylad
Putting echoed text into a new file
Hi,

I've set up a script so that a user answers questions, and then these answers come back onto the screen accompanied by text that I've echoed. Is there a way of putting this into a new file?
...
Showing results 1 to 6 of 6

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