aboutsummaryrefslogtreecommitdiff
path: root/each
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-12 13:27:21 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-12 13:27:21 +0200
commit7c72e9b9b2d200a4ff7914c88cd6652211cd6133 (patch)
tree3d9b4e876a281d68c444281996fb25d9d0601334 /each
parent03d827e2fbc409ef97829f25b8eeca5204f81a3c (diff)
downloadxutil-7c72e9b9b2d200a4ff7914c88cd6652211cd6133.tar.gz
Remove each
I wasn't entirely happy with it.
Diffstat (limited to 'each')
-rwxr-xr-xeach18
1 files changed, 0 insertions, 18 deletions
diff --git a/each b/each
deleted file mode 100755
index b1e5727..0000000
--- a/each
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/perl
-
-$i = 0;
-for (@ARGV) {
- if (/^;$/) { $command .= '; '; next; }
- if (/^&&$/) { $command .= '&& '; next; }
- if (/^\|\|$/) { $command .= '|| '; next; }
- if (/^\|$/) { $command .= '| '; next; }
- s/"/"'"'"/g;
- s/\$/\\\$/g;
- s/\\\$\+/\$/g;
- $command .= "\"$_\" "
-}
-
-while (<STDIN>) {
- chomp($ENV{x} = $_);
- system($command);
-}