在脚本中使用sed

5年以前  |  阅读数:472 次  |  编程语言:Shell 
#!/bin/bash
# shell wrapper for sed editor script to reverse lines

sed -n '{
1!G
h
$p
}' $1

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8