Guest User

Untitled

a guest
Nov 17th, 2018
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.60 KB | None | 0 0
  1. Thu, Aug 27, 2015 7:56:29 AM
  2. PoolName,Total GB,Used GB ,Available GB ,Percent Full
  3. Oracle-RAID10,6432.539,6179.295,253.244,96.063
  4. VM_File,45210.379,40726.389,4483.991,90.082
  5. Oracle-RAID5,15025.039,12289.707,2735.332,81.795
  6.  
  7. Thu, Aug 27, 2015 7:56:29 AM
  8. PoolName Total GB Used GB Available GB Percent Full
  9. Oracle-RAID10 6432.539 6179.295 253.244 96.063
  10. VM_File 45210.379 40726.389 4483.991 90.082
  11. Oracle-RAID5 15025.039 12289.707 2735.332 81.795
  12.  
  13. awk -F "," '{print $1"t" $2"t" $3"t" $4"t" $5"t" }' PoolReport.txt
  14.  
  15. column -s, -t file
  16.  
  17. Thu Aug 27 2015 7:56:29 AM
  18. PoolName Total GB Used GB Available GB Percent Full
  19. Oracle-RAID10 6432.539 6179.295 253.244 96.063
  20. VM_File 45210.379 40726.389 4483.991 90.082
  21. Oracle-RAID5 15025.039 12289.707 2735.332 81.795
  22.  
  23. { head -n 1; column -s, -t; } <file
  24.  
  25. Thu, Aug 27, 2015 7:56:29 AM
  26. PoolName Total GB Used GB Available GB Percent Full
  27. Oracle-RAID10 6432.539 6179.295 253.244 96.063
  28. VM_File 45210.379 40726.389 4483.991 90.082
  29. Oracle-RAID5 15025.039 12289.707 2735.332 81.795
  30.  
  31. sed '2,$s/ *, */t/g' PoolReport.txt
  32.  
  33. awk -F, 'NR==1;NR>1{OFS="t"; print $1,$2,$3,$4,$5}' PoolReport.txt
  34.  
  35. Thu, Aug 27, 2015 7:56:29 AM
  36. PoolName Total GB Used GB Available GB Percent Full
  37. Oracle-RAID10 6432.539 6179.295 253.244 96.063
  38. VM_File 45210.379 40726.389 4483.991 90.082
  39. Oracle-RAID5 15025.039 12289.707 2735.332 81.795
Add Comment
Please, Sign In to add comment