summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-06-10 09:03:49 +0000
committerjmallett <jmallett@FreeBSD.org>2002-06-10 09:03:49 +0000
commit758a4d89c68698aedec1c3d078fcf2c808f01c62 (patch)
treebbad939ff3f6dc36ab14e3755d85bbfcc2c2adb8
parent7448c351c824b7668a4f349c41bfc26d01d279d1 (diff)
downloadFreeBSD-src-758a4d89c68698aedec1c3d078fcf2c808f01c62.zip
FreeBSD-src-758a4d89c68698aedec1c3d078fcf2c808f01c62.tar.gz
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.
-rw-r--r--usr.bin/paste/paste.17
1 files changed, 7 insertions, 0 deletions
diff --git a/usr.bin/paste/paste.1 b/usr.bin/paste/paste.1
index 5fa2d8d..f8face8 100644
--- a/usr.bin/paste/paste.1
+++ b/usr.bin/paste/paste.1
@@ -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
OpenPOWER on IntegriCloud