aboutsummaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJuli Mallett <jmallett@FreeBSD.org>2002-06-10 09:03:49 +0000
committerJuli Mallett <jmallett@FreeBSD.org>2002-06-10 09:03:49 +0000
commit851623f4497cce9867ca68b9ce119d46931f986c (patch)
treebbad939ff3f6dc36ab14e3755d85bbfcc2c2adb8 /usr.bin
parent76d70052fbe5d4e1d9e9976a3a30c7159c13b459 (diff)
downloadsrc-851623f4497cce9867ca68b9ce119d46931f986c.tar.gz
src-851623f4497cce9867ca68b9ce119d46931f986c.zip
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.
Notes
Notes: svn path=/head/; revision=98090
Diffstat (limited to 'usr.bin')
-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 5fa2d8d3868b..f8face83eb21 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