最近遇到一个麻烦的事情,有些代码需要从网上下载,但是对方给出的代码页只能连每行的行数一块给复制下来,如下面这种模式:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
23 #include <linux/module.h> 24 #include <linux/pci.h> 25 #include <linux/dmapool.h> 26 #include <linux/kernel.h> 27 #include <linux/delay.h> 109 #include "ehci.h" 110 #include "pci-quirks.h" 111 112 static void compute_tt_budget(u8 budget_table[EHCI_BANDWIDTH_SIZE], 113 struct ehci_tt *tt); 1211 * scheduling support 1212 */ 1213 .get_frame_number = ehci_get_frame, 1214 1215 /* 1216 * root hub support 1217 */ 1218 .hub_status_data = ehci_hub_status_data, 1219 .hub_control = ehci_hub_control, |
这样的代码复制过来肯定没法用的,好在Linux下有很多工具,而碰巧我还记得两个,于是就动手试试,首先说明一下用到的两个工具:colrm和cut: colrm - column remove,顾名思义就是删除列,这个工 […]