Quote:
Originally Posted by James0806
I use shell script to create multiple users with password as their requirement
for i in `cat users`;do useradd -d /u02 -s /usr/libexec/openssh/sftp-server -G ftp-users $i;echo "$i@123" | passwd $i --stdin;done
the above shell script creates users in the file users file
mchang
tcheng
mamri
skumar
kdecianni
the password according that script would be someuser@123 Ex: for for mchang it will be mchang@123 But the requirement is like Mchang@123
how can it be possible
|
You've been asking about such scripts for
TWO YEARS NOW:
http://www.linuxquestions.org/questi...ds-4175522587/
Seems odd that in that time, you've not progressed/learned ANYTHING about bash scripting, and re-hash this same question. There are THOUSANDS of examples you can find on Google for how to upper-case a letter in a Linux bash script. You can use sed, tr, or built-in bash functions, like:
So...what have you done/tried on your own????