One-liner program
Short command-line instruction / From Wikipedia, the free encyclopedia
Dear Wikiwand AI, let's keep it short by simply answering these key questions:
Can you list the top facts and stats about One-liner program?
Summarize this article for a 10 year old
SHOW ALL QUESTIONS
In computer programming, a one-liner program originally was textual input to the command line of an operating system shell that performed some function in just one line of input. In the present day, a one-liner can be
- an expression written in the language of the shell;
- the invocation of an interpreter together with program source for the interpreter to run;
- the invocation of a compiler together with source to compile and instructions for executing the compiled program.
This article needs additional citations for verification. (May 2019) |
Certain dynamic languages for scripting, such as AWK, sed, and Perl, have traditionally been adept at expressing one-liners. Shell interpreters such as Unix shells or Windows PowerShell allow for the construction of powerful one-liners.
The use of the phrase one-liner has been widened to also include program-source for any language that does something useful in one line.