Chinaunix首页 | 论坛 | 博客
  • 博客访问: 255504
  • 博文数量: 54
  • 博客积分: 1761
  • 博客等级: 上尉
  • 技术积分: 585
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-17 23:30
文章分类

全部博文(54)

文章存档

2013年(4)

2012年(7)

2011年(15)

2010年(28)

分类: LINUX

2011-03-04 13:05:13

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.
阅读(1613) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~