1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +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:
Juli Mallett 2002-06-10 09:03:49 +00:00
parent 76d70052fb
commit 851623f449
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=98090

View File

@ -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