« first day (736 days earlier)      last day (1009 days later) » 

4:15 AM
2
Q: Irregular argument count by xargs

tom463Why are the numbers so irregular? echo {1..200000} | xargs perl -E 'say "ok:", scalar @ARGV' ok:23691 ok:21840 ok:21840 ok:21840 ok:20261 ok:18720 ok:18720 ok:18720 ok:18720 ok:15648 It's more civilised with standard argument length. perl -E' say "1 " x 900000' | xargs perl -E 'say "ok:", scalar...

 
 
2 hours later…
5:58 AM
[ SmokeDetector | MS ] Link at beginning of answer (34): Linux Mint Live & Ubuntu ISO's failing to boot (failed to execute /init) by kenneth558 on unix.SE (@JeffSchaller)
 
 
11 hours later…
5:22 PM
7
Q: Bash : how to pass arguments to a heredoc script

creatldd1 creatldd1Imagine you have a silly script test.sh to which arguments are passed that would look like this: bash test.sh arg1 arg2 arg3 with test.sh being a silly script that displays its command line: #!/bin/bash echo "$0 $*" I would like to do the same using bash heredoc << to feed the script to bash. S...

 
 
2 hours later…
7:03 PM
2
Q: Extract text starting at specific category header to next category header from a text file

EducorreiaI have a TOML file in the following format (categories may have any name, the sequential numbering is just an example and not guaranteed): [CATEGORY_1] A=1 B=2 [CATEGORY_2] C=3 D=4 E=5 ... [CATEGORY_N] Z=26 What I want to achieve is to retrieve the text inside a given category. So, if I spec...

 
 
2 hours later…
8:45 PM
1
Q: Matching a valid version number inside case statement

User123I want to match a version number inside a case statement. The version number could look like this 1.12.0.32 1.12.0.32.1 2.10.0.30.1.2 and is stored inside a shell variable: version. As I searched on the internet, it's little tricky to match a regex inside a case-statement. But, does anyone has a...

 
 
2 hours later…
10:52 PM
2
Q: Adding a column with random values to end of CSV

Mr SI have a CSV with a list of users, and would like to add a column with a one-time-use randomly generated password, unique to each user. My script works... but then it just keeps going indefinitely adding rows. If I move the code to set the variable out of the loop, it works just fine, but then ...

 

« first day (736 days earlier)      last day (1009 days later) »