Category:UnixPipes: Difference between revisions

From Rosetta Code
Content added Content deleted
(Add note about deleted solutions.)
m (hopl=no)
Line 1: Line 1:
{{language}}
{{language
|hopl=no
}}
''UnixPipes is really the same language as [[:Category:UNIX Shell|UNIX Shell]].''
''UnixPipes is really the same language as [[:Category:UNIX Shell|UNIX Shell]].''



Revision as of 18:08, 29 September 2011

Language
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.

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

unfold

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 <lang bash> |cat unfold num=$1 while read xxx; do

   for i in $xxx; do
       echo $i
   done |xargs -n $num echo

done

|echo 1 2 3 4 5 6 7 8 |unfold 3 1 2 3 4 5 6 7 8

</lang>

Deleted solutions

The existence of two categories (UnixPipes and UNIX Shell) for the same language is not convenient. We deleted these UnixPipes solutions by merging them into equivalent UNIX Shell solutions:

  1. Hello world/Standard error
  2. Sockets
  3. String case