Mercurial > repo
view bin/tac @ 7169:5f6f2bf31c5f
<int-e> learn The linker (from german "links") is a part of a Turing machine that\'s responsible for moving all output data to the left of the tape before terminating.
author | HackBot |
---|---|
date | Tue, 08 Mar 2016 11:59:07 +0000 |
parents | ff8fd5c8898c |
children |
line wrap: on
line source
#!/bin/bash for file do mapfile -t lines < "$file"; for (( i = ${#lines[@]} -1; i >= 0; i-- )) do printf "%s\n" "${lines[i]}"; done done