Reputation
22,858
Next tag badge:
375/400 score
123/80 answers
Badges
26 47
Impact
~968k people reached

11h
answered find a field and move it to before the end of the line
11h
answered Why does `cat` seem to iterate over JSON arrays?
11h
comment Saving a piped value went wrong
Don't forget to quote the variable: echo "$TEST"
11h
comment Find last line of a file for matching string?
Don't use ALL_CAPS_VARNAMES. One day you'll use PATH=something and your script breaks.
11h
comment Find last line of a file for matching string?
And then what happens when you add a line containing that string to the file ?
2d
answered Removing white space using sed but skipping Date-Time stamp
2d
comment How to make a background service to capture commands and their output?
There's the script command to log a terminal session to a file.
Jun
28
answered awk and newlines in the input data
Jun
27
answered Substituting the value with spaces for a variable in bash script - the correct way
Jun
27
comment Comma and newline replaced with comma
not really. there's no reason why your file would get extra newlines unless they are present in the filenames.
Jun
27
comment Comma and newline replaced with comma
wait. there are 23 directories, but your output file has only 3 lines?
Jun
27
comment Comma and newline replaced with comma
Bizarre. Could you have filenames with newlines in them?
Jun
27
comment Comma and newline replaced with comma
how many directories are there? the for loop will give you one line for each directory.
Jun
27
comment Comma and newline replaced with comma
formatting is lost in comments. Looks OK to me. What does wc -l output.txt tell you?
Jun
27
comment Comma and newline replaced with comma
show exactly what you're doing
Jun
27
answered Sort a list and separate item with commas instead of newlines
Jun
27
answered Comma and newline replaced with comma
Jun
27
revised Comma and newline replaced with comma
added 18 characters in body
Jun
27
answered -bash: unalias: ls: not found
Jun
26
revised How to subsitute a string in file with another file?
added 161 characters in body