Reputation
7,975
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
18 29
Newest
 Necromancer
Impact
~449k people reached

Jan
12
comment How can I run a specific line as a command in a text file?
'eval' is a common misspelling of 'evil'. If eval is the answer, surely you are asking the wrong question. See mywiki.wooledge.org/BashFAQ/048
Jan
8
comment Flattening folder structure
Added rename explanations
Jan
7
comment Rename mp3 file names to a pattern
You can download it from CPAN, see my POST =)
Jan
7
comment Store 2^500 in a variable in bash
I though that tr works only with one char at a time ? oO
Jan
7
comment Output Redirection
OK, good. Any question ?
Jan
7
comment parse one field from an JSON array into bash array
Think to accept the answer if it fit your needs, that's how this site works.
Jan
7
comment parse one field from an JSON array into bash array
Missing parentheses : arr=( $(...) )
Jan
7
comment parse one field from an JSON array into bash array
jq . <<< "$json" it's shell (bash) related, non specific to jq
Jan
7
comment parse one field from an JSON array into bash array
Have you tried something ?
Jan
5
comment How do I test if an item is in a bash array?
I see no difference between = and == in bash [[ ]] for what you said. Have you tested ?
Jan
5
comment How do I test if an item is in a bash array?
SO the OP should be informed that he have to take care if the values can contain special characters, like [ ] : character class (globs)
Jan
4
comment How do I test if an item is in a bash array?
? [[ a == aaa ]] is false but a match aaa no ?
Dec
31
comment Shell script not able to awk created file
Global file-handles should be avoided. Instead use : open my $debug, ">>", "debug.txt" or die $!;
Dec
30
comment Shell script not able to awk created file
Yes, POST edited accordingly, check sub()
Dec
29
comment How to grep netcat output
Does it work like this ? netcat -z localhost 9090 | grep sender
Dec
29
comment file name as argument and sort in descending way in perl?
Corrected sort things, seems to be what's op want
Dec
28
comment Checking URLs for HTTP code 200
Added -I to download just the headers
Dec
28
comment Checking URLs for HTTP code 200
This require bash. If you have sh, tell me
Dec
27
comment Error getting the string between two patterns
xmllint --html --xpath "//p[1]/text()" file_or_URL | tr -d "\n" Search google about XPath to learn
Dec
27
comment How to check the file type in a script
POST edited accordingly