You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#Now to use awk to list the servers in a nice format 1 , 2 , 3 etc
238
250
printf"%s${info}# Name IP/Host \tPort Username\tKey File${reset}\n"
239
-
awk -F, '{print NR " " $1 " " $2 " " $3 " " $4 " " $5}'"$cfg_file_name"| column -t # -t is used to align the columns, using awk is always awkward .... but it works
251
+
awk -F, '{print NR " " $1 " " $2 " " $3 " " $4 " " $5 " " $6}'"$cfg_file_name"| column -t # -t is used to align the columns, using awk is always awkward .... but it works
240
252
241
253
printf"%s${warning}Enter the number of the SSH connection you want to edit or enter 0 to cancel : ${reset}"
#Now to use awk to list the servers in a nice format 1 , 2 , 3 etc in a table format starting with the header but starting the numbering at from the second line
287
-
printf"%s${info}# Name IP/Host Port Username Key file${reset}\n"
288
-
awk -F, '{print NR " " $1 " " $2 " " $3 " " $4 " " $5}'"$cfg_file_name"| column -t # -t is used to align the columns, using awk is always awkward .... but it works
301
+
printf"%s${info}# Name IP/Host Port Username Key file Option${reset}\n"
302
+
# -t is used to align the columns, using awk is always awkward .... but it works
#Now to use awk to list the servers in a nice format 1 , 2 , 3 etc
313
327
printf"%s${info}# Name \t IP/Host \tPort Username\tKey file${reset}\n"
314
-
awk -F, '{print NR " " $1 " " $2 " " $3 " " $4 " " $5}'"$cfg_file_name"| column -t # -t is used to align the columns, using awk is always awkward .... but it works
328
+
awk -F, '{print NR " " $1 " " $2 " " $3 " " $4 " " $5 " " $6}'"$cfg_file_name"| column -t # -t is used to align the columns, using awk is always awkward .... but it works
315
329
316
330
printf"%s${info}Enter the number of the SSH connection you want to connect to or enter 0 to cancel : ${reset}"
0 commit comments