【发布时间】:2014-08-07 21:47:53
【问题描述】:
我有一个包含遵循这种格式的行的大文件:
New-England-Center-For-Children-L0000392290
Southboro-Housing-Authority-L0000392464
Crew-Star-Inc-L0000391998
Saxony-Ii-Barber-Shop-L0000392491
Test-L0000392334
我想要做的就是把它缩小到这个:
New-England-Center-For-Children
Southboro-Housing-Authority
Crew-Star-Inc
Test
有人可以帮忙吗?
【问题讨论】:
标签: perl shell text command-line