Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | Letzte Überarbeitung Beide Seiten der Revision | ||
linux_stuff [2019/02/28 11:47] admin |
linux_stuff [2019/02/28 12:02] admin |
||
---|---|---|---|
Zeile 5: | Zeile 5: | ||
This replaces path /mnt/sda with /home/x | 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 | ||