From 758a4d89c68698aedec1c3d078fcf2c808f01c62 Mon Sep 17 00:00:00 2001 From: jmallett 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(+) 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 -- cgit v1.1