复制/etc/profile至/tmp/目录,用查找替换命令删除/tmp/profile文件中的行首的空白字符
复制文件
wx562635@U16-template:~$ cp /etc/profile /tmp/
wx562635@U16-template:~$ ls /tmp/profile
/tmp/profile
删除行首空白字符
wx562635@U16-template:~$ cat /tmp/profile |tr -d ' ' > /tmp/profil
复制文件
wx562635@U16-template:~$ cp /etc/profile /tmp/
wx562635@U16-template:~$ ls /tmp/profile
/tmp/profile
删除行首空白字符
wx562635@U16-template:~$ cat /tmp/profile |tr -d ' ' > /tmp/profil