Am 30.08.21 um 17:22 schrieb Anthony Fletcher:
> For instance, one variable is to identify the default uplink
> interface
>
> export UPIF=$(ip -4 r | sed -n -e '/^default/ s/^default.*dev //; s/
> .*// p;q' )
>
> Useful when I'm debugging the network but not needed otherwise.
Is there a reason you need this as a variable? Would a function
upif() { ip -4 r | ... }
not suffice?
- René