[SHELL] Output formatting
I am looking for a way to format the output of this string into comma separated values (.csv) so I can import into excel.
Also I want to remove any white space generated by the commands, particularly the dmidecode as the output has lots of space in front of Serial Number. Code:
#!/bin/bash Current output looks like. [root@server user]# cat test23.txt server.domain.com -WHITE SPACE--Serial Number: F3FF071 Mem: 2007 2.4.21-27.ELsmp |
Well, this is pretty horrible, but as no one else has chipped in...
Code:
IFS=" |
Code:
#!/bin/bash |
Quote:
|
All times are GMT -5. The time now is 06:56 PM. |