Search Results

Search: Posts Made By: awreneau
19,889
Posted By awreneau
I never got the exact formatting I'd wanted but...
I never got the exact formatting I'd wanted but opted for a slightly different solution. Code follows:


#set column headers
header="\n\033[4m\033[1m%-18s %-35s %-25s %-8s %-10s\033[0m\033[0m"...
19,889
Posted By awreneau
OK, lets make it simpler. I've changed the code...
OK, lets make it simpler. I've changed the code somewhat to amplify the specific problem.

I have two columns of data:
Think of the periods as actual spaces (the forum didnt allow a space to...
19,889
Posted By awreneau
Is this what youre expecting? I have something...
Is this what youre expecting? I have something very similar in my first post but I edited it per your specs.


printf "${volume}\t${diskvol}\t${blockdevice}\t\t${mntpnt}\t\t${fssize}\t${owner}\n"...
19,889
Posted By awreneau
<SOLVED>Format output into columns, variables with multiple entries
Hello all, I've got a script that collects data on file systems and prints out specific data about each. I've formatted headers w/ printf like so.

printf "\033[4mVolume Name\tDisk\t\tBlock...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 07:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy