stanlo
Search This Blog
Wednesday, August 17, 2016
Split the $PATH variable into seperate lines.
To split the $PATH variable into separate lines can be useful, specially if you have a very long $PATH. Also good for showing double entries.
echo $PATH | awk '{split($0,a,":")}; END { for (p in a) printf "%s\n",a[p];}'
Monday, February 08, 2016
Man in the middle remote copy files.
To copy files between 2 remote servers using man in the middle server using tar.
ssh server1 "cd /data;tar cf - ." | ssh server2 "cd /data;tar xvf -"
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)