Difference between revisions of "Map (command)"

From wikieduonline
Jump to navigation Jump to search
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{lowercase}}
 
{{lowercase}}
<code>map</code> lines from <code>[[stdin]]</code> to commands.
+
<code>[[wikipedia:map]]</code> lines from <code>[[stdin]]</code> to commands not package in Debian.
  
 
https://github.com/soveran/map/blob/master/README.md
 
https://github.com/soveran/map/blob/master/README.md
  
 +
 +
 +
ls *.c | [[xargs -I]] % sh -c 'foo %; bar %;'
 +
 +
ls *.c | awk '{ [[system]]("foo "$0"; bar "$0) }'
  
 
== Other terms ==
 
== Other terms ==
 
* [[MapReduce]]
 
* [[MapReduce]]
* [[map (Terraform)]]
+
* <code>[[map (Terraform)|map]]</code> ([[Terraform]]) deprecated since [[Terraform v0.12]] (May 2019). Use <code>[[tomap]]</code>
 +
* <code>[[find]]</code>
 +
* [[Python: built-in functions]]
  
 
== See also ==
 
== See also ==
 
* {{xargs}}
 
* {{xargs}}
 
  
 
[[Category:Computing]]
 
[[Category:Computing]]

Latest revision as of 06:38, 15 March 2022

wikipedia:map lines from stdin to commands not package in Debian.

https://github.com/soveran/map/blob/master/README.md


ls *.c | xargs -I % sh -c 'foo %; bar %;'
ls *.c | awk '{ system("foo "$0"; bar "$0) }'

Other terms[edit]

See also[edit]

Advertising: