Here is a question. How would you edit files with start with + or - or --?
Why do I have such puzzle? Simply because I encountered such issue amid my scripts. The scenario is I dumped lots of files from database. And create files per value in one particular column. If there are special name in the column , my file will do as well.
Value -:0 will create -:0.tablename.csv.
Here is the trick.
add two dash after your command. like
vi -- -:0.tablename.csv
rm -- -:0.tablename.csv
As far as I know, when people dump data from Oracle db also have similar issue.
阅读(1656) | 评论(0) | 转发(0) |