Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. Set reorder point
  2. Plan category: P
  3.  
  4. Plnt SLoc Material Description L.T MRP Stat Auto MatSG PC PN Freq Qty CFreq CQty Cur.RPt New.RPt CurRepl NewRepl Updt Cost ServStock Unit OpenMatResb DFStorLocLevel
  5. 0231 0002 GB.C152260-00001 ASSY PISTON & SEAL/O-RING 44 PD X A A A 18 136 30 29 50 43 24.88 51.000 EA
  6. 0231 0002 WH.112734 MOTOR REDUCER, THREE-PHAS 41 PD X B B A 16 17 3 3 5 4 483.87 1.000 EA X
  7. Set reorder point
  8. Plan category: P
  9.  
  10. Plnt SLoc Material Description L.T MRP Stat Auto MatSG PC PN Freq Qty CFreq CQty Cur.RPt New.RPt CurRepl NewRepl Updt Cost ServStock Unit OpenMatResb DFStorLocLevel
  11. 0231 0002 WH.920569 SPINDLE MOTOR MINI O 22 PD X A A A 69 85 15 9 25 13 680.91 21.000 EA
  12. 0231 0002 GB.C150583-00001 VALVE-AIR MDI 64 PD X A A A 16 113 50 35 80 52 19.96 116.000 EA
  13. Set reorder point
  14. Plan category: P
  15.  
  16. Plnt SLoc Material Description L.T MRP Stat Auto MatSG PC PN Freq Qty CFreq CQty Cur.RPt New.RPt CurRepl NewRepl Updt Cost ServStock Unit OpenMatResb DFStorLocLevel
  17. 0231 0002 FG.124-0140 BEARING 32 PD X A A A 36 205 35 32 50 48 21.16 55.000 EA
  18. 0231 0002 WP.254997 BEARING,BALL .9843 X 2.04 52 PD X A A A 18 155 50 39 100 58 2.69 181.000 EA
  19. Set reorder point
  20. Plan category: P
  21.  
  22. gsub("Set reorder point", "", MM)
  23. gsub("Plan category: P", "", MM)
  24.  
  25. awk {gsub("(Set reorder point|Plan category: P", "");
  26. print >> "the_output_file.txt"} the_input_file.txt
  27.  
  28. df <- readLines("MM.txt")
  29. dfClean <- grep("^Set.*$|^Plan.*$|^$", df, value = TRUE, invert = TRUE); dfClean
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement