From 7e811b4fe0ce39c900783144c418d3a8ff71c4a5 Mon Sep 17 00:00:00 2001 From: Andreas Hrubak Date: Fri, 25 Oct 2024 17:41:27 +0200 Subject: [PATCH] rename pipeby to pipecmd --- user-tools/Makefile.lists.mk | 2 +- user-tools/{pipeby => pipecmd} | 10 +++++----- user-tools/rename.td | 5 ----- 3 files changed, 6 insertions(+), 11 deletions(-) rename user-tools/{pipeby => pipecmd} (75%) diff --git a/user-tools/Makefile.lists.mk b/user-tools/Makefile.lists.mk index 755beae..ccdc71c 100644 --- a/user-tools/Makefile.lists.mk +++ b/user-tools/Makefile.lists.mk @@ -119,7 +119,7 @@ TOOLS ?= \ perlprintf \ perl-repl \ pfx2pem \ - pipeby \ + pipecmd \ pipekill \ PMbwmon \ PMdirindex \ diff --git a/user-tools/pipeby b/user-tools/pipecmd similarity index 75% rename from user-tools/pipeby rename to user-tools/pipecmd index 09a22f9..1fb31c9 100755 --- a/user-tools/pipeby +++ b/user-tools/pipecmd @@ -5,11 +5,11 @@ true <<'EOF' =head1 NAME -pipeby - Run a command and pipe its output to an other one +pipecmd - Run a command and pipe its output to an other one =head1 SYNOPSIS -pipeby I [I] -- I [I] +pipecmd I [I] -- I [I] =head1 DESCRIPTION @@ -18,14 +18,14 @@ Equivalent to this shell command: CMD_1 | CMD_2 The first command's (I) arguments can not contain a double-dash (C<-->), -because it's the command separator for pipeby(1). +because it's the command separator for pipecmd(1). However, since only a total of 2 commands are supported, arguments for I may contain double-dash(es). -You can chain pipeby(1) commands together to get a pipeline equivalent to +You can chain pipecmd(1) commands together to get a pipeline equivalent to C, like: - pipeby CMD_1 -- pipeby CMD_2 -- CMD_3 + pipecmd CMD_1 -- pipecmd CMD_2 -- CMD_3 =head1 RATIONALE diff --git a/user-tools/rename.td b/user-tools/rename.td index 9def94e..c80e3d5 100755 --- a/user-tools/rename.td +++ b/user-tools/rename.td @@ -215,9 +215,4 @@ mv(1), perl(1), rename(2), file-rename(1p) (prename(1)), rename.ul (rename(1)), If you give an invalid Perl expression you'll get a syntax error. -=head1 BUGS - -The original C did not check for the existence of target filenames, -so had to be used with care. I hope I've fixed that (Robin Barker). - =cut -- 2.11.4.GIT