diff options
Diffstat (limited to 'dot/bashrc')
-rw-r--r-- | dot/bashrc | 22 |
1 files changed, 21 insertions, 1 deletions
@@ -283,6 +283,26 @@ esac | |||
283 | pingwait() | 283 | pingwait() |
284 | { | 284 | { |
285 | while ! ping -c1 "$@"; do | 285 | while ! ping -c1 "$@"; do |
286 | sleep 1; | 286 | sleep 1 |
287 | done | 287 | done |
288 | } | 288 | } |
289 | |||
290 | take () | ||
291 | { | ||
292 | local n="$1" r= | ||
293 | while [ "$n" -gt 0 ]; do | ||
294 | read line && r="$r $line" | ||
295 | let --n | ||
296 | done | ||
297 | if [ "$r" ]; then | ||
298 | r=${r# } | ||
299 | echo "$r" | ||
300 | else | ||
301 | false | ||
302 | fi | ||
303 | } | ||
304 | |||
305 | torrent () | ||
306 | { | ||
307 | rsync -P "$@" borges:/srv/4T-temp/transmission/torrents/ | ||
308 | } | ||