5,805 reputation
31138
bio website
location
age
visits member for 2 years, 4 months
seen 38 mins ago

The placid Indian water buffalo. Booze and Linux, a match made in heaven


18h
answered sed remove last space only on end of line,combined with awk
19h
comment Remove everything that is not a 4 character number
positive and negative lookahead assertions are overkill when word boundaries \b would suffice
1d
awarded  Suffrage
1d
comment Cache directory and file list to prevent hard drive access when browsing contents
@haukelaging, I meant that half in jest. Anyways, godspeed for the next 10000
1d
comment Cache directory and file list to prevent hard drive access when browsing contents
ah, tipped you over 20000. Do i get a medal for that :-)
2d
reviewed Approve suggested edit on Remove everything that is not a 4 character number
2d
comment Remove everything that is not a 4 character number
@StéphaneChazelas, hmm.. good point. I've attempted to address that with word boundaries now
2d
revised Remove everything that is not a 4 character number
added 6 characters in body
2d
reviewed Approve suggested edit on How to change double hyphen to single hyphen of file names?
2d
answered Remove everything that is not a 4 character number
Nov
24
comment Why is coreutils sort slower than Python?
Can you use --buffer-size to specify that sort use all available physical memory and see if that helps?
Nov
24
comment Command line tool to “cat” pairwise expansion of all rows in a file
@terdon, if you are referring to the memory-mapping solution, the OS will transparently keep only as much of the file in memory as it can afford to based on available physical RAM. The available physical RAM does not have to exceed file size(although having extra physical RAM would obviously be an advantageous situation). In the worst case this could degrade to the speed of looping through file on disk or worse. The key advantage with this approach is the transparent usage of available physical RAM as this is something that could fluctuate over time
Nov
24
revised Command line tool to “cat” pairwise expansion of all rows in a file
added 899 characters in body
Nov
24
answered Command line tool to “cat” pairwise expansion of all rows in a file
Nov
23
reviewed Approve suggested edit on How to show distinct directories on find?
Nov
22
reviewed Approve suggested edit on How to show distinct directories on find?
Nov
22
comment Calling multiple bash scripts and running them in parallel, not in sequence
No I am not confused, all I am stating is that the OP's problem is better solved with parallel -j0 bash ::: script{1..3}.sh - this is better than the :::: approach since it avoids the need for process substitution. Also parsing ls output is ridden with pitfalls
Nov
22
answered Calling multiple bash scripts and running them in parallel, not in sequence
Nov
22
comment Calling multiple bash scripts and running them in parallel, not in sequence
It's bash ::: script{1..3}.sh being passed to parallel, not ::: script{1..3}.sh. So this should first expand to parallel bash ::: script1.sh script2.sh script3.sh by the shell and then parallel invocations of bash script1.sh, bash script2.sh, bash script3.sh. I tried it
Nov
22
comment Calling multiple bash scripts and running them in parallel, not in sequence
Er.. in that case why not parallel -j0 bash ::: script{1..3}.sh?