Hello everyone! I am new here, and just started playing with Unix/Ubuntu and started learning scripting just this week. Sorry if the question is so basic
I have a file that has two columns, in column one I have usernames;
first.last
and in the second column I have the matching real name;
First Last
Some are longer names/usernames than others, so they are not lined up pretty (I did find help on the forum to do that, but my assignment wants it to be a simple space between the user.name and real name)
as an example:
first.last First Last
first1.last1 First1 Last1
firs.lastlast Firs Lastlast
is there a way to make a script that would allow me to prompt the runner of the script for a username for the first column, and a matching "real name" for the second, and have that be appended to the file?
I appriciate the help a great deal. Sorry if the post is a little wordy
~Robert