Add a character to the beginning of each line only if it's not already there

Subscribers:
4,130
Published on ● Video Link: https://www.youtube.com/watch?v=rzDQKPOXYlY



Duration: 1:58
0 views
0


Add a character to the beginning of each line only if it's not already there
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(unix.stackexchange.com/users/532174/sepp-a)Sepp A |
(unix.stackexchange.com/users/22565/st%c3%a9phane-chazelas)Stéphane Chazelas |
A special thanks goes out to the (https://unix.stackexchange.com/questions/725444/add-a-character-to-the-beginning-of-each-line-only-if-its-not-already-there)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

sed regular-expression







Tags:
sed
regular-expression