Reputation
3,927
Top tag
Next privilege 5,000 Rep.
Approve tag wiki edits
Badges
1 6 19
Newest
 Custodian
Impact
~535k people reached

Aug
9
comment Bash exit from subcommand
Pleased to have helped!
Aug
9
answered Bash exit from subcommand
Aug
7
comment How do I *reliably* and *simply* get the current shell interpreter name?
readlink /proc/$$/exe should to the job fairly consistently.
Aug
7
revised Recursive rm doesn't work for me
Improve specificity of `find` command to only find files and not directories.
Jul
31
comment How to copy files from one machine to another using ssh
In your comment, you explicitly are using the username on the remote system. You can omit the username if your username is the same on the remote system, or if you have settings in .ssh/config for that host to specify the username for you. The rules for the username for scp are identical to those for ssh.
Jul
29
comment Display cron job times in a human-friendly format
The thing is, it's already human readable. 10 6 * * * -> tenth minute of the sixth hour of every day of every month, on any day of the week. */6 4 */2 * * -> every sixth minute of the fourth hour of every second day of every month, on any day of the week.
Jul
28
comment When I use zip, how can I display the overall progress without flooding the command line?
I don't know if you can use stdin when making ZIP files, but if gzip is okay, you can do something like pv /path/to/file | gzip > /path/to/file.gz
Jul
28
reviewed Close Why signal function is not able to call my signal Handler?
Jul
28
reviewed No Action Needed How to find the cpu and memory usage of child processes
Jul
28
revised Regex search for word roots with common prefixes
use `sed` arguments that work with both GNU and BSD versions
Jul
28
revised Regex search for word roots with common prefixes
Better use of sed so as not to `sed | grep`
Jul
28
comment Regex search for word roots with common prefixes
I'll update to reflect this - thanks for the tip! Keep in mind that it only works in GNU sed, and not BSD sed.
Jul
28
revised Regex search for word roots with common prefixes
Expand `sed` command to be a little more obvious
Jul
28
revised Regex search for word roots with common prefixes
Make title more clear
Jul
28
answered Regex search for word roots with common prefixes
Jul
28
comment Regex search for word roots with common prefixes
Aha! egrep '^(pro|con).* /usr/share/dict/words | sed 's/^...//' | sort | uniq -d will give you a list of all the word-bases that have both a pro and con prefix!
Jul
28
comment Regex search for word roots with common prefixes
Something like egrep '^(pro|con).*' /usr/share/dict/words might do the trick as a starting point, perhaps. You could then put the resultant list through a sed, awk, or grep meatgrinder that only keeps paired words.
Jul
28
awarded  Custodian
Jul
28
reviewed Reopen Disable bash's cache of executables in the path
Jul
28
reviewed Close Sending data from rs232