Summary of the one-liner*
In one sentence, what does it do? What is its purpose?
The one-liner*
Use a space around |
,
single space after ;
,
and UPPERCASE variable names.
Use $()
for subshells instead of obsolete ``
.
Do not use unnecessary flags or pointless trailing ;
.
Basically, make it as readable as possible,
as concise as possible,
without unnecessary elements.
Explanation*
This is extremely important!
Good explanations make this site stand out,
this field is the most appreciated feature mentioned by many visitors.
Explain nicely and clearly how the one-liner works,
as if you're teaching it to your good friend.
Include enough details so that non-experts can understand it too.
Note: all html will be escaped, and the text will be formatted with
markdown.
Limitations (optional)
Mention if you know or suspect that the one-liner
might not work in some flavors of UNIX,
or if it works only in Bash 4.0.
Note: any html will be escaped, and the text will be formatted with
markdown.
Published
If checked, the one-liner will be visible in public listings, and will be tweeted on Twitter with
@bashoneliners