Tag Info

New answers tagged

0

You can do... while read line do line=${line%%[!0-9]*} [ -n "$line" ] || continue : work w/ digits at line's head done Alternatively - and probably faster - you can do: tr -cs 0-9\\n \ | while IFS=\ read num na do ${num:+":"} continue : work w/ first seq of digits on line done Or is if you want to ignore completely any line ...


0

Try using something like this with certificate authentication. It also provides dynamic proxy access to remote resources. It is my go-to way of doing remote IT Support with Linux and ssh. The ports I used are arbitrary... autossh -M 18080 -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -D 8080 root@server -p 22 It will keep you connected to the ...


3

The <(...) statement in bash is process substitution. The process in <(...) is run with its input or output connected to a FIFO or some file in /dev/fd. See it with: echo <(echo foo) It prints something like /dev/fd/63. That is the file descritor. The <(...) part is then replaced with that file descriptor. So in your statement the call would ...



Top 50 recent answers are included