REGEX-Escape for: rm /run/net-$IFDOWN.conf /run/netplan/$IFDOWN.yaml

Your Input:
Result, the escaped string:
rm \/run\/net\-\$IFDOWN\.conf \/run\/netplan\/\$IFDOWN\.yaml

What must the escaping look like for:
rm /run/net-$IFDOWN.conf /run/netplan/$IFDOWN.yaml

The excaped text for use in a regex is:
rm \/run\/net\-\$IFDOWN\.conf \/run\/netplan\/\$IFDOWN\.yaml


Ads