-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathmap.1
More file actions
39 lines (39 loc) · 648 Bytes
/
map.1
File metadata and controls
39 lines (39 loc) · 648 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
.Dd March 11, 2018
.Dt MAP 1
.
.Sh NAME
.
.Nm map
.Nd Map lines from stdin to commands.
.
.Sh SYNOPSIS
.
.Nm
.Ar variable
.Ar command
.
.Sh DESCRIPTION
.
.Nm
lets you process each line from stdin with a command of your
choice.
.
.Sh EXAMPLES
.
Here's an example:
.Pp
.Dl $ ls
.Dl Sy LICENSE README.md makefile map.1 map.c
.Pp
.Dl $ ls | map f 'echo $f $f'
.Dl Sy LICENSE LICENSE
.Dl Sy README.md README.md
.Dl Sy makefile makefile
.Dl Sy map.1 map.1
.Dl Sy map.c map.c
.Pp
Note that the command must be wrapped in single quotes to prevent
the variable from being expanded by the shell.
.
.Sh AUTHOR
.An Michel Martens Aq mail@soveran.com