我需要一个 awk/cut one liner 来获取模式和最后一个文件名之间的所有内容,例如:
$ cat .exportfiles.text
/branches/WP_Fix/Code/SharedApp/src/gov/illinois/ies/business/rules/ed/CorticonFinIncomeEntiyLoader.java
/branches/WP_Fix/Code/BEAN/Framework/ejbModule/gov/illinois/ies/business/rules/entities/fin/Income.java
/branches/WP_Fix/settings/Environment/RT/properties/build.properties
/branches/WP_Fix/test/Environment/DEV/properties/build.properties
期望的输出:
Code/SharedApp/src/gov/illinois/ies/business/rules/ed
Code/BEAN/Framework/ejbModule/gov/illinois/ies/business/rules/entities/fin
settings/Environment/RT/properties
test/Environment/DEV/properties