Re: Replacement string to keep only extension?

2016-10-09 Thread Ole Tange
On Wed, Oct 5, 2016 at 4:21 PM, Geoffrey Cleaves wrote: > Hi all. Is there a replacement string similar to {//} which keeps only the > extension? I know it's possible to define a custom replacement pattern but > I'm running into difficulties since I have so many nested shells and my > matching par

Re: gnu parallel bug

2016-10-09 Thread Ole Tange
On Thu, Sep 29, 2016 at 5:10 PM, Johannes Graën wrote: > $ parallel --load 100% echo load is less than {} job per cpu ::: 1 > parallel: This should not happen. You have found a bug. > Please contact and include: > * The version number: 20160722 > * The bugid: loadavg_invalid_content: > /mnt/stor

Re: "parallel: This should not happen. You have found a bug."

2016-10-09 Thread Ole Tange
On Wed, Sep 14, 2016 at 4:53 AM, Greg McCann wrote: [...bug report...] > Bad: >> parallel -k -j0 --nonall --slf ~/bin/gw_servers.txt 'uname' : > Linux > parallel: This should not happen. You have found a bug. > Please contact and include: > * The version number: 20160522 Please use most recent v

Re: gnu parallel bug

2016-10-09 Thread Johannes Graën
Hi Ole, On Sun, 9 Oct 2016 16:19:53 +0200 Ole Tange wrote: > Can you also give us the content of > /mnt/storage/clfiles/users/graen/.parallel/tmp/loadavg-: I'm sorry but I could not reproduce that error. It did affect all our virtual machines (LXC on Proxmox). Changes that have been applied me

Re: {n#} and {n##} Positional replacement​ with job number and total jobs

2016-10-09 Thread Ole Tange
On Sat, Oct 8, 2016 at 1:41 PM, Wei Li wrote: > how to implement Positional replacement with job number and total jobs? > > {n#} and {n##} > > like {#} and {##} but only for position "n" I imagine you want this output: $ parallel echo {1#} of {1##} and {2#} of {2##} ::: A B ::: C D E 1 of 2 an