From 851623f4497cce9867ca68b9ce119d46931f986c Mon Sep 17 00:00:00 2001 From: Juli Mallett Date: Mon, 10 Jun 2002 09:03:49 +0000 Subject: 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. --- usr.bin/paste/paste.1 | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'usr.bin/paste') 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 -- cgit v1.2.3