The output looks like this
bbnum,building,floor,cluster,row,position,namespaces
BBEG,BUILDEG,1,CLUsEG,5,19,namespaceEG
I would like to add spaces throughout, match up the top row with the bottom and delete cluster, row and namespaces (Delete the top and bottom part of the provided list)
Im trying to make it look something like this. Just trying to make it look neat
bbnum building floor row position
BBEG BUILDEG 1 5 19
Any help would be greatly appreciated!!
printf, you can specify the width of each field in the format satring.awk -F, -v OFS='\t' '{$NF = ""; $1=$1}1' file.txtcommand_with_output | awk -F, -v OFS='\t' '{$NF = ""; $1=$1}1'...| awk '{print $1, $2, $3, $5, $6}' FS=, OFS=\\t