Reputation
21,181
Next tag badge:
392/400 score
130/80 answers
Badges
21 45
Newest
 grep
Impact
~818k people reached

23h
comment Need to obtain Awk output in specific sequence
If you don't need to use awk: paste -s -d, file
2d
comment insert value from reference file
awk: read the ref file and store in an associative array, then read the daily file: if $3 is an array key, append the value to the line and print. Plenty of examples on this site and on stackoverflow.com
2d
reviewed Approve insert value from reference file
2d
comment Create complex installation script for Linux (Centos)
as are make, rake, gulp, grunt ...
Apr
15
revised Passing argument in tcl proc
added 14 characters in body
Apr
15
comment Using the grep filter
@terdon, if there are no files named hello or hallo, then the pattern does not match and the pattern is removed. The command becomes grep -i hello.txt, so grep is stuck waiting for input on stdin to match the pattern "hello.txt".
Apr
14
comment Using the grep filter
When you entered that grep command, did you get no output then a shell prompt, or did the shell appear to hang, as if awaiting user input? What does this command output: shopt nullglob?
Apr
14
comment How to redirect output from file to stdout?
I tried that: AbiWord: Uch! Could not write the file [/dev/stdout]
Apr
14
comment using the variable “file” obtained from `for “file” in` and pass to another script fails
I'm surprised that brace expansion was not triggered by that, but then reading the manual, there's no , or .. in there.
Apr
14
answered How to redirect output from file to stdout?
Apr
14
answered sed exception handling of escaped characters
Apr
14
comment How to Remove Strings between two Parenthesis in Unix
Nope. That kind of structure is beyond what regular expressions can handle. Once you get "nested", your language is no longer regular.
Apr
14
answered How to Remove Strings between two Parenthesis in Unix
Apr
13
comment bash execute command for X arguments at a time
Do not use a for-loop to iterate over the lines of a file: as soon as you encounter a filename with a space in it, $a will not contain the whole filename (unless you alter $IFS) -- further reading: mywiki.wooledge.org/…
Apr
13
comment bash execute command for X arguments at a time
According to the question, the destination file should not have a directory in the filename.
Apr
13
answered bash execute command for X arguments at a time
Apr
12
comment Bash long string, no word splitting?
yes += works with bash for appending strings.
Apr
12
comment Bash long string, no word splitting?
Make sure you quote your "$vars" unless you want word splitting and filename generation on the values.
Apr
12
revised Bash long string, no word splitting?
added 373 characters in body
Apr
12
answered Bash long string, no word splitting?