1,319 reputation
717
bio website smith-li.com
location Philadelphia, PA
age 36
visits member for 4 years, 1 month
seen yesterday

Pythonista; Dockerista; Pyramista; Plonista; Magentoasta; Javascriptista; CSSista; HTMLista; Webista; Shellista; you get the gista.

I am an employee of eBay Inc. The opinions expressed here are my own and do not necessarily reflect the opinions of eBay Inc. This is my personal StackExchange account.

Classic disclaimer.


Mar
29
comment How can I create new shell commands?
Or, create a shell function.
Mar
9
comment Repeatedly execute bash command while there's no output from another process
Can you show how you're using it?
Mar
8
awarded  Revival
Mar
7
revised Repeatedly execute bash command while there's no output from another process
More precise timing
Mar
7
answered Repeatedly execute bash command while there's no output from another process
Mar
7
comment Writing a character N times using the printf command
dd if=/dev/zero bs=5000 count=1 | tr '\0' H
Mar
5
awarded  Yearling
Jan
14
awarded  Pundit
Sep
22
awarded  Notable Question
Aug
26
comment Delete all files in a directory whose name do not match a line in a file list
@CristianCiupitu echo can be misleading. The echo before the rm shows what would really happen. The first echo was redundant, so I removed it.
Aug
26
revised Delete all files in a directory whose name do not match a line in a file list
Remove the redundant echo
Aug
26
comment Delete all files in a directory whose name do not match a line in a file list
@davidva Under what circumstances? Any time you automate deleting things you run the risk of making a mistake, but within the parameters of the question I think my demo proves this approach is sound.
Aug
26
comment Delete all files in a directory whose name do not match a line in a file list
@CristianCiupitu doesn't it? I added a demo showing that it deals very well with whitespace.
Aug
26
revised Delete all files in a directory whose name do not match a line in a file list
Some naysayers in the comments. Give them a demo
Aug
7
comment Which is more efficient, ls or ls -l?
It doesn't matter which is more efficient, because efficiency only matters in automation and, since ls is not intended for automation, there are always more efficient and safer ways to illuminate the filesystem for programming purposes.
Jul
24
awarded  Popular Question
Jul
2
awarded  Curious
May
20
awarded  Nice Answer
May
20
revised If processes inherit the parent's environment, why do we need export?
Combine first two sentences into one
May
19
comment Difference between cat and '>' to zero out a file
OK, but it's no less deserving of inclusion than cp /dev/null file, right?