Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
|
linux_stuff [2019/02/28 11:43] admin angelegt |
linux_stuff [2019/02/28 12:20] (aktuell) admin |
||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| ====== SED Skripte ====== | ====== SED Skripte ====== | ||
| - | sed -i "s/mnt\/sda/home\/x/g" file | + | ''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 | ||