shell/sed进阶/在脚本中使用sed.sh

9 lines
93 B
Bash

#!/bin/bash
# shell wrapper for sed editor script to reverse lines
sed -n '{
1!G
h
$p
}' $1