- 论坛徽章:
- 3
|
学生党:无聊~ python试试~
- $ cat yhsafe.py
- #!/usr/bin/env python
- # -*- coding: gbk -*-
- "just for fun ~ so so"
- from sys import argv
- for k,v in enumerate(open(argv[1]).readlines()):
- print k+1,v,
复制代码 $ ./yhsafe.py yhsafe.txt
1 /ora/DB01/data001/KCU001P/KCU001Pcust_cdr_unbilled_tbl_01.dbf
2 /ora/DB01/data002/KCU001P/KCU001Pcust_cdr_unbilled_tbl_02.dbf
3 /ora/DB01/data003/KCU001P/KCU001Pcust_cdr_unbilled_tbl_03.dbf
4 /ora/DB01/data004/KCU001P/KCU001Pcust_cdr_unbilled_idx_01.dbf
5 /ora/DB01/data004/KCU001P/KCU001Pcust_cdr_unbilled_idx_02.dbf |
|