I'm working on modernizing Rosetta Code's infrastructure. Starting with communications. Please accept this time-limited open invite to RC's Slack.. --Michael Mol (talk) 20:59, 30 May 2020 (UTC)


From Rosetta Code
(Redirected from UnixPipes)
This programming language may be used to instruct a computer to perform a task.

Listed below are all of the tasks on Rosetta Code which have been solved using UnixPipes.
Your Help Needed
If you know UnixPipes, please write code for some of the tasks not implemented in UnixPipes.

UnixPipes is really the same language as UNIX Shell.

Unix Pipes is a collection of tools which doesn't use any Turing complete sublanguages. The idea of the system is to solve programming problems using only the pipelines alone. The tools are not restricted to the commonly available tools in UNIX. Any new tool is allowed as long as it is sharp enough. (i.e does one and only one thing very well).

If a new tool is introduced, a description of the tool is required.

Using utilities from, moreutils


Defining unfold as the opposite of xargs, i.e take a list of arguments and send them one at a time. The definition would be

|cat unfold
while read xxx; do
for i in $xxx; do
echo $i
done |xargs -n $num echo
|echo 1 2 3 4 5 6 7 8 |unfold 3
1 2 3
4 5 6
7 8

Deleted solutions[edit]

We delete a UnixPipes solution when it is too similar to its UNIX Shell equivalent, or when it is incorrect (but the UNIX Shell solution is correct).

  1. Hello world/Standard error -- Merged to UNIX Shell.
  2. Sieve of Eratosthenes -- Deleted for being incorrect.
  3. Sockets -- Merged to UNIX Shell.
  4. String case -- Merged to UNIX Shell.


This category has the following 3 subcategories, out of 3 total.