2,221 reputation
414
bio website
location
age
visits member for 2 years, 4 months
seen 19 hours ago

19h
reviewed No Action Needed CentOS 7 cpupower not setting the CPU's to maximum
19h
reviewed No Action Needed Detect init system using the shell
1d
answered How to use sudo to delete the contents of a directory
1d
answered How to logout CSH session?
2d
reviewed No Action Needed Specifying a random monitoring port with autossh
2d
answered What happens if I run fsck on /dev/sda instead of /dev/sda1?
2d
reviewed Reviewed Missing mdadm raid5 array reassembles as raid0 after powerout
Oct
22
awarded  Nice Answer
Oct
22
awarded  Custodian
Oct
22
reviewed No Action Needed Simulate an unkillable process in D state
Oct
22
reviewed Looks OK A command to print only last 3 characters of a string
Oct
22
reviewed Approve suggested edit on Force the download and reinstallation of all Debian packages
Oct
21
comment A command to print only last 3 characters of a string
Fair enough, @mikeserv
Oct
21
revised A command to print only last 3 characters of a string
specify bashism
Oct
21
comment A command to print only last 3 characters of a string
Why not just use ${VARNAME:(-3)} (presuming bash)?
Oct
21
answered A command to print only last 3 characters of a string
Oct
20
comment How to enter foo-* folder without actually using wildcard or shell expansions?
I was using IFS to change the output of find, but yes, on further reflection, the newlines would still be there to mess with the piped input to head. I sit corrected.
Oct
20
comment How to enter foo-* folder without actually using wildcard or shell expansions?
@G-Man (1) Setting IFS is how you handle newlines in filenames, as you ask in (4). (2) Yes, good point, that should have been a quoted "some*glob". (3) And here is where my suggestion fails utterly, though at that point I was more commenting on the answer than on the question itself. Still, yes, my suggestion was not helpful to the original context of not being able to use *.
Oct
18
comment How to enter foo-* folder without actually using wildcard or shell expansions?
Also, it's generally considered a Very Bad Idea to parse the output of ls; see mywiki.wooledge.org/ParsingLs for extended discussion of why this can do terrible things to kittens.
Oct
18
comment How to enter foo-* folder without actually using wildcard or shell expansions?
Why not just cd "$( IFS="\n" find . type d -name some*glob | head -n1 -dpeth 1)"?