view bin/tac @ 7505:76d7f3b0e837

<oerjan> rm testpylib
author HackBot
date Tue, 19 Apr 2016 23:07:24 +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