automatic Tag

Bash Sheet

13 Aug 2013, Posted by BoB in All Posts, Computer Talk

Here is an example of a loop that will compress and send how ever many files are found to another server. !/bin/bash first_list='/ [path] / [to] / [files] / *.*' for raw in $first_list do gzip -9 $raw done second_list='/ [path] / [to] / [files] / *.gz' for gz in $second_list do scp $gz [user]...