0
我试图组织和重新命名一些roms我已经使用命令行来删除像“(USA)”和“(日本)”的区域,包括前面的空间从文件名。现在我需要更新我的.CUE文件,我已经试过以下,但缺少的东西...从多个文件中删除字符串
grep --include={*.cue} -rnl './' -e " (USA)" | xargs [email protected] sed -i 's/ (USA)//g' @
grep --include={*.cue} -rnl './' -e " (Europe)" | xargs [email protected] sed -i 's/ (Europe)//g' @
grep --include={*.cue} -rnl './' -e " (Japan)" | xargs [email protected] sed -i 's/ (Japan)//g' @
我得到它在一个场合工作,但不能看到便又得到它.. 。
什么是错的'sed的-i的/(日本)//克; S /(欧洲)//克; S /(美国)//g'* .cue'? – 7171u
@ 7171u'sed -i's /(\(Japan | Europe | USA \))// g'* .cue' – 123
@ 123在添加必须删除的空间后发布您的改进。 –