diff options
Diffstat (limited to 'bin/flt/m')
-rwxr-xr-x | bin/flt/m | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/bin/flt/m b/bin/flt/m new file mode 100755 index 0000000..9611cd1 --- /dev/null +++ b/bin/flt/m @@ -0,0 +1,16 @@ +#!/bin/sh + +# m -- switch first and last line (move) + +read first +mid= +last= +while read line; do + mid="$mid$last" + last=" +$line" +done +echo "$last" | tr -d ' +' +echo "$mid" +echo "$first" |