Reputation
Next tag badge:
98/100 score
37/20 answers
Badges
20 152 308
Newest
 Nice Answer
Impact
~5.1m people reached

Jul
31
comment Force pubkey-auth user to set password at first login
@Flavius, what system? That order works for me on Debian with version 4.2 of shadow utilities
Jul
31
comment Remove the ^L (aka \f/FF/form-feed/page-break) character
@terdon, to a POSIX sed, \f is unspecified, so any behaviour (including rebooting the computer or matching the FF or 🏭 character) by a POSIX sed implementation is allowed. [\f] is meant to match either backslash or f though. POSIX sed script that uses \f outside [] is not conformant. One that uses \f inside [...] would be but break with GNU sed (unless POSIXLY_CORRECT is on) where it would match a FF instead of backslash or f (so it's better to use sed 's/[\\f]// if you want to match on backslash or f.
Jul
31
revised Remove the ^L (aka \f/FF/form-feed/page-break) character
added 381 characters in body
Jul
31
comment Remove the ^L (aka \f/FF/form-feed/page-break) character
@mikeserv, see austingroupbugs.net/view.php?id=944 The requirement for newline there was a bug in the spec, no implementation requires it (note that the report there is wrong in that you can't have ; after }, but it's fine before }). Will be fixed in the next version.
Jul
31
comment Remove the ^L (aka \f/FF/form-feed/page-break) character
@terdon, the only escape sequence POSIXly-supported on the LHS is \n, none on the RHS. GNU sed supports more, though when inside [...] that depends on whether POSIXLY_CORRECT is in the environment or not.
Jul
31
revised Remove the ^L (aka \f/FF/form-feed/page-break) character
added 38 characters in body
Jul
31
comment Remove the ^L (aka \f/FF/form-feed/page-break) character
FF is \014. \013 is VT (vertical tab). L is the 12th letter of the English alphabet (14 in octal).
Jul
31
revised Remove the ^L (aka \f/FF/form-feed/page-break) character
help future searches by giving the alternate names for the character.
Jul
31
revised Remove the ^L (aka \f/FF/form-feed/page-break) character
added 77 characters in body
Jul
31
answered Remove the ^L (aka \f/FF/form-feed/page-break) character
Jul
30
revised Bash - Sequence of numbers in the same line
The file argument is required for paste POSIXly. Made the space character visible.
Jul
30
comment Bash - Sequence of numbers in the same line
Most sh implementations will ignore the IFS found in the environment (exceptions are some ash derivatives, very old versions of some Bourne shells and recent versions of posh). Note that you can simply do IFS='<space><tab><newline>' where those <space>, <tab>, <newline> are the corresponding literal characters.
Jul
30
comment Bash - Sequence of numbers in the same line
@user3188445, it's the split+glob operator doing that (that use the IFS special variable that by default does contain space and newline but can be changed), it's separate from the word tokenization done by the shell.
Jul
30
awarded  Nice Answer
Jul
30
comment How do I find a file name that's exactly 8 levels deep?
About -depth 8. 8 (or any number) being not a valid find predicate, there's no confusion possible with the -depth standalone predicate.
Jul
30
revised How do I find a file name that's exactly 8 levels deep?
deleted 64 characters in body
Jul
29
comment Which is the command for show all property of my PC on terminal
Sounds more like it. At least it's more functional that that archey script.
Jul
29
answered Which is the command for show all property of my PC on terminal
Jul
29
comment How do I find a file name that's exactly 8 levels deep?
POSIXly, you can use -path '*/*/*/*/*/*/*/*' -prune -name '*XYZ*'. Note that some BSDs also have -mindepth/-maxdepth but also -depth 8.
Jul
29
comment Why does ln -s accept a single argument
Note that that behaviour is not specified by POSIX but seems to be fairly common (GNU, busybox, FreeBSD, Solaris, Ultrix at least, and was already like that (though -s wasn't supported of course) in the first version of Unix in the early 70s).