view bin/tac @ 7967:28dfd2857c83

<oerjan> undo 7813
author HackBot
date Sun, 08 May 2016 04:24:41 +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