summaryrefslogtreecommitdiff
path: root/vest
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
commit0a11da06831d5a062b6703f1aa1431cc33689e23 (patch)
treee5e868a5c61648b6df6649617dfc08703f9c136b /vest
parentefd4b6bb374a66eb4db07d9b2b6cef1dc4b6f5b0 (diff)
reverse cat w/o buffering - for testing
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@301 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'vest')
-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";
+}