functions.sh/com/invert.sh
Tessa L. H. Lovelace 57a19f7a5d Adjusting structure and nomenclature.
Fixing some autocomplete collisions too.
Adding a bit of explanation, but it's just draft, unready for review.
2019-03-06 20:49:21 -08:00

15 lines
428 B
Bash

#!/bin/bash
# @author:'jakimfett'
# @license;'cc-by-sa'
#
# Take a text file and reverse the order of (lines|entries)
# prototype: dump whole file into a variable, then manually reverse it.
# this is bad, don't do this.
# objective: per-chunk (eg, single line, or delimited section of the file) re-writing of the file, with transactional logging
echo "failmuffins"
exit 1
TEXTFILE=`cat <filepath/filename>`
DELIMITER='{=,5+}'