parallel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with input line replacement string -


From: Thomas Sattler
Subject: Re: Help with input line replacement string -
Date: Mon, 02 Apr 2012 10:11:56 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20120312 Thunderbird/11.0

> $ s3cmd ls --recursive s3://datasets.elasticmapreduce/ngrams/books/ |
>> awk '{print $4; sub(/s3:\/\/datasets.elasticmapreduce/, ".", $4}' |
>> parallel -j0 --sshloginfile hosts -N2 /usr/bin/s3cmd \
>> --no-progress get {1} {2}

Ouch! Seems I stopped at the wrong closing bracket. :-(

Here's the full awk-line:

print $4; sub(/s3:\/\/datasets.elasticmapreduce/, ".", $4); print $4

Thomas



reply via email to

[Prev in Thread] Current Thread [Next in Thread]