14,435 reputation
1131
bio website
location Ottawa, Canada
age
visits member for 3 years, 6 months
seen 1 hour ago

Developer at Pythian.
Big Tcl and Perl fan.
Enjoy Ruby and JavaScript too.


2h
revised How can I “merge” patterns in a single line?
add a trailing newline for commands that need it.
2h
revised How can I “merge” patterns in a single line?
added 275 characters in body
2h
comment How can I “merge” patterns in a single line?
The tr solution will swallow the ending newline, so you might want to add ; echo to that one
3h
comment How can I “merge” patterns in a single line?
I would expect that printf '%s\n' "$x" will NOT remove the "internal" newline.
3h
comment How can I “merge” patterns in a single line?
unquoted, the variable is also subject to filename expansion, so if you have any glob characters (like * or ?) in the result, the values may change.
3h
revised How can I “merge” patterns in a single line?
added 114 characters in body
3h
answered How can I “merge” patterns in a single line?
5h
answered Obtain values of a section of a file
7h
answered Iteratively edit a single file
21h
comment How do I fill my password automatically from .bash_profile when running command as sudo?
Take care to use visudo to edit the sudoers file.
23h
revised Changing crontab with sed
added 127 characters in body
1d
answered Changing crontab with sed
1d
comment How to eliminate annoyances when starting a GUI from a terminal?
Or ev() (evince "$@" &>/dev/null $)
2d
answered Count how many elements in the nth column in a whole file
2d
comment Problems copying files with spaces inside the file name in a bash script
I don't see why that should not work. Try running it like this, and post your results: set -x; copy_docs; set +x
Aug
16
comment Quote escaping struggle with grep and sed
Using a proper HTML parser will give you a more robust solution: stackoverflow.com/a/1732454/7552.
Aug
15
awarded  Custodian
Aug
15
comment Using $ in a password
@val0x00ff, using <<'EOF', you still use just EOF to close.
Aug
14
revised Convert string into date time stamp in gawk or awk
added 67 characters in body
Aug
14
answered Convert string into date time stamp in gawk or awk