How do I remove  from the beginning of a file?

前端 未结 23 1073
攒了一身酷
攒了一身酷 2020-11-22 06:21

I have a CSS file that looks fine when I open it using gedit, but when it\'s read by PHP (to merge all the CSS files into one), this CSS has the following characters prepend

23条回答
  •  情深已故
    2020-11-22 07:02

    You can use

    vim -e -c 'argdo set fileencoding=utf-8|set encoding=utf-8| set nobomb| wq'
    

    Replacing with awk seems to work, but it is not in place.

提交回复
热议问题