Cut first column from file in Vi(Vim) | Unix Linux Forums. I have a parts file that looks like this: EE3. NH4. 6||Y|A|EA|0|0|0|N|LUNETTE 3" ADJ. EYE|0|0|*|0|PEOZZU|N|1. N|N|VPS|N|N|N|N|LUNETTE 3" ADJ. Removing a column from a file using unix. particular column values from a fixed file on unix.can you please. will cut first 1 to 5 charcater from file EMP. Somehow I can never remember the cut command in Unix. But I occasionally want to remove certain columns from a text file of data. cut will do that.
EYE|0|||Receive into Inventory|8. EE3. 62. 64|*|*|*|0|0||EE3. A|*|*F1. 5|5. 39. Y|A|EA|0|0|0|N|FLAT ZERO CAL BLOCK|0|0|*|0|PEOZZU|N|1. N|N|VPS|N|N|N|N|FLAT ZERO CAL BLOCK|0|||Receive into Inventory|8. F1. 5|*|*|*|0|0||F1. A|*|*F7- 4. 12- 1|5. AB|A|EA|0|0|0|N|SWITCH|1|0|*|0|PAOZZN|N|1. N|N|VPS|N|N|N|N|SWITCH|. Receive into Inventory|8. F7- 4. 12- 1|*|*|*|1|0||2. GFV0. 06. 05- 0. 00. A|*|*FCO2. 6A|5. 57. Y|A|EA|0|0|0|N|CRWFT 3/8. DRX1. 3/1. 6|0|0|*|0|PEOZZU|N|1. N|N|VPS|N|N|N|N|CRWFT 3/8. DRX1. 3/1. 6|0|||Receive into Inventory|8. FCO2. 6A|*|*|*|0|0||FCO2. A|A|*|*M1. 36. 34. NH4. 6||Y|A|EA|0|0|0|N|DRAIN HOSE|0|0|*|0|PEOZZU|N|1. N|N|VPS|N|N|N|N|DRAIN HOSE|0|||Receive into Inventory|8. M1. 36. 34. 00. 10. M1. 36. 34. 00. 10. A|*|*M1. 49. 03. 00. NH4. 6||AB|A|EA|0|0|0|N|RUBBER SEAL|0|0|*|0|PEOZZU|N|1. N|N|VPS|N|N|N|N|RUBBER SEAL|0|||Receive into Inventory|8. M1. 49. 03. 00. 00. M1. 49. 03. 00. 00. A|*|*CA2. 21. 0A4. R|1. 30. 02||Y|A|EA|0|0|0|N|WASH CAPTIVE L\BOLT|0|0|*|0|XBOZZN|N|1. N|N|VPS|N|N|N|N|WASH CAPTIVE L\BOLT|0|||Receive into Inventory|8. CA2. 21. 0A4. R|*|*|*|0|0||CA2. A- 4. R|A|*|*CL- 4- BLPL- 0. S|9. 98. 62||Y|A|EA|0|0|0|N|L HANDLE, 1/4|0|0|*|0|PEOZZU|N|1. N|N|VPS|N|N|N|N|L HANDLE, 1/4|0|||Receive into Inventory|8. CL- 4- BLPL- 0. 7. S|*|*|*|0|0||CL- 4- BLPL- 0. S|A|*|*It is an ascii text file ( *. I want to cut out the first column , the part number only. It is delimited by a split bar "|". Can I do this in Vi ( Vim) so I produce a file of the first column only like below? EE3. 62. 64. F1. 5. F7- 4. 12- 1. FCO2. AM1. 36. 34. 00. 10. M1. 49. 03. 00. 00. CA2. 21. 0A4. RCL- 4- BLPL- 0.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
November 2016
Categories |