reading variable while remaining on the same line - bash
Here's a function that allows create simple user accounts in a htpasswd file.
Code:
printf "\nThe team has the following members:\n" The question is: how can I make the sign appear on the same line name and pass are displayed? So that it would look like user password [+] Just out of ideas :scratch:. Thanks. |
Hi,
This can probably be done with tput Code:
#!/bin/bash Here are 3 related URL's Linux / Unix Command: tput Colours and Cursor Movement With tput (example) The Floating Clock Prompt Hope this helps. |
Awesome!
Though it looks a bit cryptic, works like charm. I'll study more on tput, thanks for the reference. |
rudimentary read tag
Read -p "insert text here" variable_here
|
All times are GMT -5. The time now is 03:56 PM. |