view bin/tac @ 7068:8999c7fb91ea

<oerjan> touch test2
author HackBot
date Wed, 02 Mar 2016 23:48:40 +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