view bin/tac @ 7416:cf8538dacd3e

<b_jonas> learn norm is the most confusingly named function in C++
author HackBot
date Sun, 17 Apr 2016 20:17:33 +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