✏️ 编辑:convert.awk
路径:
/virtual/bigbrother/public_html/log/phppgadmin/lang/convert.awk
大小:442 B · 修改:2005-11-21 23:11:57 · 权限:0705 · 可写
← 返回目录
👁 查看
⬇ 下载
#!/usr/bin/awk -f # # Script contains all needed conversions of recoded text # # Remove everything before first "<?php" BEGIN { while (index($0,"<?php")==0) { getline; continue } print "<?php"; } # Remove everything after first "?>" # (as there should be only one occurance, thats no problem) /\?\>/ { print "?>"; exit } { # Convert CRLF -> LF (== "remove CR" ) ;-) gsub(" ",""); gsub("'","'"); print $0 }
💾 保存
取消
保存为 UTF-8,换行统一为 LF