我有一个包含一个文本文件:如何将空格更改为下划线和小写字母?
Cycle code
Cycle month
Cycle year
Event type ID
Event ID
Network start time
我想,这样,当曾经有一个空间,我想用一个_
来代替它来改变这个文本。在这之后,我想的字符小写字母象下面这样:
cycle_code
cycle_month
cycle_year
event_type_id
event_id
network_start_time
我怎么能做到这一点?
是 “awk或者sed” 或 “sed中,AWK或Perl”? – innaM 2009-11-27 12:46:42
什么都可以解决我的问题 – Vijay 2009-11-27 12:49:14