15,766 reputation
44988
bio website shawnjgoff.com
location Tampa, FL
age 33
visits member for 3 years, 11 months
seen 11 hours ago

I've grown up with computers around me my whole life. I started programming when I was a kid, and stuck with it ever since. I came across Linux around 1999 and have enjoyed working with it ever since.

For a job, I get to write software that runs on embedded Linux devices. I do everything from working on low-level drivers to writing shell scripts and even web apps.


Dec
16
revised $VAR vs ${VAR} and to quote or not to quote
Added more information after question modification
Dec
16
answered $VAR vs ${VAR} and to quote or not to quote
Dec
16
answered Block motion for any bracket type?
Dec
15
comment Is it possible to have vim key bindings in terminal?
Checkout the bind builtin
Dec
15
revised Is it possible to have vim key bindings in terminal?
Add information about modes.
Dec
15
revised Is it possible to have vim key bindings in terminal?
Add information about readline
Dec
15
answered Is it possible to have vim key bindings in terminal?
Dec
15
answered find-command for certain subdirectories
Dec
15
comment Make find show slash after directories?
I continue to be amazed at the flexibility of find.
Dec
15
answered Make find show slash after directories?
Dec
15
answered Which run dialog
Dec
14
comment Adding numbers from the result of a grep
The problem there is your expression. with `totalErrors=${errors}+${totalErrors}, you're creating a string. You can do the same trick: echo both numbers as a list and use awk to sum them, or you can do it the bash way.
Dec
14
comment Adding numbers from the result of a grep
@Amir Afghani Also, you might want to change your grep to "[0-9]\+ errors". This will match if you have a line reporting >9 errors.
Dec
14
comment Adding numbers from the result of a grep
@Amir You would use the first one like this variable=$(grep -o "[0-9] errors" verification_report_3.txt | awk '{ SUM += $1} END { print SUM }') This puts the output of the command (which is only the sum value) into the variable called variable
Dec
14
answered Adding numbers from the result of a grep
Dec
14
comment Redirecting stdout to a file you don't have write permission on
Tee will also output to stdout; sometimes you don't want the contents filling the screen. To fix this, do echo test | sudo tee /tmp/foo > /dev/null
Dec
14
awarded  Enthusiast
Dec
11
awarded  Quorum
Dec
10
comment Rsync two file types in one command?
This is a general technique that you can use with any command. The shell will repeat the argument, replacing the brace expression with each item in the list. It's called brace expantion
Dec
10
comment Query DHCP server leases from Perl script
This question is probably better on ServerFault since the question is mostly about how to extract the lease information from Windows. It has much less to do with the fact that you want to do it in Perl on a Linux box. In fact, I'd bet you need at least some code on the Windows box to do the extracting.