同义词转换不再有效ORA-00980: synonym translation is no longer valid
2012-04-19 21:54
447 查看
有这样一段文字
426. He is taller than I by ahead. 他比我高一头。 427. He led them down the mountain. 他带他们下山? 428. He was trained to be a lawyer 一-一! 429.tttttttttttttttttttttttttttttttttttt
希望把它规范化成这样的格式:
426. ………………
427. ………………
………………
通过使用sed命令,可以达到这样的效果:
方法一
sed 's/\([。!?]\)/\1\n/g' a.txt | sed 's/^ *//g'
![](http://img1.51cto.com/attachment/201309/121017188.jpg)
这里通过使用后向引用 \1 获取括号里()匹配的字符 --在sed里,要使用后向引用,需要用\注释括号。
[]里是要匹配的行末字符
方法二
sed 's/\([0-9]*\.\)/\n\1/g' a.txt | sed '/^$/d'
![](https://oscdn.geek-share.com/Uploads/Images/Content/202009/01/0e9df1cc379703be218817df4b31e75e.jpg)
按格式要求,每一行都是若干位“数字” + “.” 开头,故只需在这些字符串前面加上“\n”换行符即可,然后通过 sed '/^$/d' 删除第一次匹配的“426.”前的空行即可。
本文出自 “随便玩玩” 博客,请务必保留此出处http://justfun.blog.51cto.com/1414492/1289223
426. He is taller than I by ahead. 他比我高一头。 427. He led them down the mountain. 他带他们下山? 428. He was trained to be a lawyer 一-一! 429.tttttttttttttttttttttttttttttttttttt
希望把它规范化成这样的格式:
426. ………………
427. ………………
………………
通过使用sed命令,可以达到这样的效果:
方法一
sed 's/\([。!?]\)/\1\n/g' a.txt | sed 's/^ *//g'
![](http://img1.51cto.com/attachment/201309/121017188.jpg)
这里通过使用后向引用 \1 获取括号里()匹配的字符 --在sed里,要使用后向引用,需要用\注释括号。
[]里是要匹配的行末字符
方法二
sed 's/\([0-9]*\.\)/\n\1/g' a.txt | sed '/^$/d'
![](https://oscdn.geek-share.com/Uploads/Images/Content/202009/01/0e9df1cc379703be218817df4b31e75e.jpg)
按格式要求,每一行都是若干位“数字” + “.” 开头,故只需在这些字符串前面加上“\n”换行符即可,然后通过 sed '/^$/d' 删除第一次匹配的“426.”前的空行即可。
本文出自 “随便玩玩” 博客,请务必保留此出处http://justfun.blog.51cto.com/1414492/1289223
相关文章推荐
- ORA-00980 同义词转换不再有效(ORA-00980: synonym translation is no longer valid) (转)
- ORA-00980 同义词转换不再有效(ORA-00980: synonym translation is no longer valid)
- ORA-00980:synonym translation is no longer valid
- ORA-00980: synonym translation is no longer valid
- ORA-00980: synonym translation is no longer valid
- ORA-00980: synonym translation is no longer valid", version 9
- oracle 10g expdp ORA-00980: synonym translation is no longer valid
- 一次对dual表的恢复操作(ORA-00980:同义词转换不再有效错误解决方法)
- PL/SQL:ORA-00980同义词转换不再有效
- Error: PL/SQL: ORA-00980: 同义词转换不再有效
- ORA-00980: 同义词转换不再有效
- ORA-19588: archived log recid 181834 stamp 780173554 is no longer valid
- The identity used to sign the executable is no longer valid.解决方案
- 修复Xcode错误:The identity used to sign the executable is no longer valid
- Xcode真机调试遇到The identity used to sign the executable is no longer valid
- Xcode真机调试失败:The identity used to sign the executable is no longer valid
- The identity used to sign the executable is no longer valid
- The identity used to sign the executable is no longer valid
- 真机调试出现:The identity used to sign the executable is no longer valid
- 真机测试别人的demo才出现"The identity used to sign the executable is no longer valid"