Benutzer-Werkzeuge

Webseiten-Werkzeuge


linux_stuff

SED Skripte

sed -i „s/mnt\/sda/home\/x/g“ file

This replaces path /mnt/sda with /home/x

sed -i „s/mnt.*/home\/x/g“ file

This replaces all passges start with /mnt and any chars after it with /home/x

sed -i „s/rotate.*/rotate = flip/g“ *

Replaces in all files in folder the passage rotate with any chard until end of line with rotate=flip

linux_stuff.txt · Zuletzt geändert: 2019/02/28 12:20 von admin