This sed command will append / to the end of every line in filename.txt which doesn’t already have one.
|
1 2 3 |
sed -i '/\/$/!s/$/\//g' filename.txt |
This sed command will append / to the end of every line in filename.txt which doesn’t already have one.
|
1 2 3 |
sed -i '/\/$/!s/$/\//g' filename.txt |
Talk with a senior engineer for practical recommendations—no obligation.
Reliable Penguin provides managed web hosting, systems administration, website and server migrations, and expert consulting.
Submit the form—or for immediate service call 866-649-7984.