I'm trying to create a colorful help for all the functions I'm creating...
I have the following ::--->
gethelp () {
cat << EOF
act ::---> Get one or more clients activity. act <Client_name or Client_list>
his ::---> Get one or more client backup history. his <Client_name or Client_list>
logs ::---> Get logs for one or more clients. logs <Client_name or Client_list>
cl ::---> Generate a client list. cl
gf ::---> Get clients failures from the past 2 days. gf
csv ::---> Generate a csv file containing all clients. csv
cc ::---> Generate a csv file for one or many clents. cc <Client_name or Client_list>
tbw ::---> Test Backup for a windows client. tbw <Client_name>
gln ::---> Get Label number for the last backup. gln <Client_name>
wgbu ::---> What got backed up. wgbu <label_number> </Domain/Client_name>
ptf ::---> Perform the test restore. ptf <label_number> </Domain/Client_name>
gip ::---> Get ip for one or many clients. gip <Client_name or Client_list>
cu ::---> Client usage for one or many clients. cu <Client_name or Client_list>
EOF
}
I would like to make the 1st column from the left bold..
And a separate color for the following ::--->
::--->
Everything up to the period
From the period to the end
Thanks.....
Joe Despres
I have the following ::--->
gethelp () {
cat << EOF
act ::---> Get one or more clients activity. act <Client_name or Client_list>
his ::---> Get one or more client backup history. his <Client_name or Client_list>
logs ::---> Get logs for one or more clients. logs <Client_name or Client_list>
cl ::---> Generate a client list. cl
gf ::---> Get clients failures from the past 2 days. gf
csv ::---> Generate a csv file containing all clients. csv
cc ::---> Generate a csv file for one or many clents. cc <Client_name or Client_list>
tbw ::---> Test Backup for a windows client. tbw <Client_name>
gln ::---> Get Label number for the last backup. gln <Client_name>
wgbu ::---> What got backed up. wgbu <label_number> </Domain/Client_name>
ptf ::---> Perform the test restore. ptf <label_number> </Domain/Client_name>
gip ::---> Get ip for one or many clients. gip <Client_name or Client_list>
cu ::---> Client usage for one or many clients. cu <Client_name or Client_list>
EOF
}
I would like to make the 1st column from the left bold..
And a separate color for the following ::--->
::--->
Everything up to the period
From the period to the end
Thanks.....
Joe Despres