Reputation
12,312
Top tag
Next privilege 15,000 Rep.
Protect questions
Badges
19 36
Impact
~493k people reached

22h
comment Exec vs source error on ==
@Nobe4: sourcing ignores the shebang line. It makes no sense to source to a different shell: sourcing is used to run the commands in the current shell, so how can you run the commands in the current shell in a different shell?
22h
comment Exec vs source error on ==
What shell do you source the script into?
Jan
31
comment How can I output month name in a given timezone
@J.P.Quenord-Zermingore: No, I'm telling you the output depends on a variable. There are timezones that use more than one language.
Jan
29
comment Add columns to a text file with set spacing in Bash
@user53029: Updated. Could you at least try?
Jan
29
comment how to subtract first value from the last one within a column across a row in shell?
@zara: To redirect output to a file, just add > output.
Jan
29
comment how to subtract first value from the last one within a column across a row in shell?
@zara: If you first make the script executable by chmod u+x program.pl, then yes
Jan
29
comment how to subtract first value from the last one within a column across a row in shell?
@zara: T.I.T.S. = Try It To See.
Jan
29
comment how to subtract first value from the last one within a column across a row in shell?
@zara: Just specify the data file name as the parameter of the program.
Jan
29
comment Add columns to a text file with set spacing in Bash
@user53029: Don't specify any filename for column, it operates on the output of sed: sed 's/$/ IN A 192.168.155.128/' | column -t > db.malware-host-only-2
Jan
29
comment Add columns to a text file with set spacing in Bash
@user53029: Of course. Just specify the file name as the last parameter for sed.
Jan
29
comment Bash script to insert letter based files into directories
askubuntu.com/q/727191/80864
Jan
24
comment How can I get rid of all script blocks in html files?
@mikeserv: as noted in the last paragraph.
Jan
24
comment How can I get rid of all script blocks in html files?
This would delete everything before <script on the same line, and similarly for the other end.
Jan
24
comment How can I get rid of all script blocks in html files?
@Sadi: It removes single line scripts, too.
Jan
22
comment evaluation of arithmetic expansion in bash
If I use echo instead of ls, it works the second way in both the cases.
Jan
18
comment Extract a particular substring from filename
@tholgard: Ah, OK, updated.
Jan
13
comment Testing for any of a family of related values in a Bash variable
What bash version?
Jan
13
comment Testing for any of a family of related values in a Bash variable
stackoverflow.com/q/34762241/1030675
Jan
12
comment convert table to ini file using bash arrays
@HelenH: Associative array is like a table: the subscripts are strings.
Jan
12
comment convert table to ini file using bash arrays
@HelenH: Associative array keys are always unique, so it's the declare -A that handles it.