summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-16 22:08:32 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-16 22:08:32 +0000
commit294d3c970e361518077e153267e60806352cc208 (patch)
tree961c124ed1c571e1edc2bad70e2d0b97d2573177
parentdf23869afba7b6813cfb4c0d38f895467254d0f1 (diff)
reverse cat w/o buffering - for testing
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@301 ec762483-ff6d-05da-a07a-a48fb63a330f
-rwxr-xr-xvest/tac.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/vest/tac.pl b/vest/tac.pl
new file mode 100755
index 00000000..9fb525c1
--- /dev/null
+++ b/vest/tac.pl
@@ -0,0 +1,8 @@
+#!/usr/bin/perl
+
+while(<>) {
+ chomp;
+ $|=1;
+ print (scalar reverse($_));
+ print "\n";
+}