如何从文件名中提取可变名称
我在许多文件中都有数据。文件名本身包含我需要的变量,我不确定如何提取,最好使用CSH命令。例如,这是一个单一的文件名:
Andover的小时数据,NJ- [ID = K12N ICAO,lat = 41.0089,LON = -74.7367] .CSV
这些空格显然是无形的\符号(有人真的很有创意!)。无论如何,我需要为该文件名提取变量的值和LON。我该怎么做?
谢谢
I have data in many files. The file names themselves contain the variables that I need and I am not sure how to extract then, preferably by using csh commands. For example, here is a single file name:
Hourly Data for Andover, NJ - [id=k12n icao, lat=41.0089, lon=-74.7367].csv
The blank spaces are obviously invisible \ symbols (someone was really creative!). Anyway, I need to extract values for variables lat and lon for that filename. How do I do that?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论