mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Add another example for using paste(1) since tjr seemed to want more examples
on IRC. This one is to create a colon seperated list of directories from find(1), suitable for use in the shell's PATH.
This commit is contained in:
parent
76d70052fb
commit
851623f449
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98090
@ -123,6 +123,13 @@ Number the lines in a file, similar to
|
||||
.Xr nl 1 :
|
||||
.Pp
|
||||
.Dl "sed = myfile | paste -s -d '\et\en' - -"
|
||||
.Pp
|
||||
Create a colon-seperated list of directories named bin, suitable
|
||||
for use in the
|
||||
.Ev PATH
|
||||
environment variable:
|
||||
.Pp
|
||||
.Dl "find / -name bin -type d | paste -s -d : -"
|
||||
.Sh DIAGNOSTICS
|
||||
.Ex -std
|
||||
.Sh SEE ALSO
|
||||
|
Loading…
Reference in New Issue
Block a user