14,920 reputation
44384
bio website shawnjgoff.com
location Tampa, FL
age 33
visits member for 3 years, 7 months
seen 2 days 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
comment $VAR vs ${VAR} and to quote or not to quote
Thanks, @Gilles; updated to match.
Dec
16
revised $VAR vs ${VAR} and to quote or not to quote
updated to reflect @Gilles input
Dec
16
revised $VAR vs ${VAR} and to quote or not to quote
missed a step in example
Dec
16
comment $VAR vs ${VAR} and to quote or not to quote
@alex: Thanks. I thought I had tested that on the command line, but I did it wrong. I changed the example.
Dec
16
revised $VAR vs ${VAR} and to quote or not to quote
fix another spelling fle1=>file1
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