remove blank lines from text file

sed '/^$/d' /path/to/input/file.txt > output.txt
grep -v '^$' /path/to/input/file.txt > output.txt
#!/bin/bash
files="/path/to/input/files/*.txt"
for i in $files
do
  sed '/^$/d' $i > $i.out
  mv  $i.out $i
done
#!/bin/bash
files="/path/to/input/files/*.txt"
for i in $files
do
  sed '/^ *$/d' $i > $i.out
  mv $i.out $i
done

SSH over SOCKS Proxy

ssh server.tld -o ProxyCommand='nc -x proxy.tld:1234 %h %p'

makes use of ‘netcat-openbsd’

ssh server.tld -lBenutzer -p2210 -o ProxyCommand='nc -x proxy.tld:1234 %h %p'
sftp -P2210 -o "ProxyCommand nc -x proxy.tld:1234 %h %p" Benutzer@server.tld:/path/to/file.ext .
rsync -e "ssh -lBenutzer -p2210 -o ProxyCommand='nc -x proxy.tld:1234 %h %p'" server.tld:/path/to/file .