jw013

United States

Debian user, GNU/Linux enthusiast, FLOSS supporter, hobby developer.

1d
awarded Yearling
1d
awarded Yearling
2d
comment Find -exec + vs find | xargs. Which one to choose?
I don't see how -0 is more of a pain than --delimiter "\n".
Jul
24
awarded Yearling
Jul
24
awarded Yearling
Jul
21
awarded Yearling
Jul
21
awarded Yearling
Jun
23
reviewed Reviewed PuTTY does not connect over SSH; other clients work fine
Jun
23
awarded Enlightened
Jun
23
awarded Nice Answer
Jun
23
comment adding text to filename before extension
@SargeBorsch What do you need explained? My answer, the snippet in the question, and Doug's answer are only differ by a few characters, and Doug's answer explains even less than mine so I don't know what it is you want. If you just compare the difference in the two outputs in the question it should be trivially easy to figure out what they do. I can explain why my answer is preferable to Doug's. 1. I use printf with a format string instead of the less portable echo. 2. I use parameter expansion which is more efficient than calling an external binary (basename) for such a simple task.
Jun
15
awarded Supporter
Jun
15
awarded Autobiographer
Jun
11
awarded Autobiographer
Jun
9
awarded Notable Question
Jun
7
awarded Guru
Jun
5
comment What are the steps of this command using ; || and &&
@R0tten && and || are left-associative binary operators with equal precedence. The ; is not an operator at all but merely a simple separator, like a newline, and as such has the lowest "precedence". That should be enough to clear up any confusions you have.
Jun
4
comment Find files whose name is 4 characters long
Judging by the example given in the question, OP is looking at file names not contents.
Jun
4
comment Find files whose name is 4 characters long
@joeLovick In *nix platforms a newline is a single linefeed character.
Jun
4
comment Find files whose name is 4 characters long
@ColeJohnson It's not the best tool for the job. grep matches lines of text, but not all filenames are guaranteed to be single lines of text.
1 2 3 4 5