In comp.os.linux.networking Ross <(E-Mail Removed)>:
> "Bit Twister" <(E-Mail Removed)> wrote in message
>> On Mon, 19 Jun 2006 16:42:01 -0400, Ross wrote:
>>> Hi there,
>>> I am going to create 9000 users.
[ short bash script to do it ]
>> http://tldp.org/LDP/abs/html/index.html
> Thanks a lot for your idea!
> But the $user comes with new line. The output is like this:
> user_1^M:x:1001:1000::/home/user_1^M:/bin/bash
> user_2^M:x:1002:1001::/home/user_2^M:/bin/bash
> :
> How could I eliminate the ^M?
Don't keep your files on a doze box, those can't even handle a
text file probably, as you just encountered. Alternatively run
'dos2unix' over the file.
Good luck
BTW
There's no need to create shadow + groups if you just use
'useradd' for the job.
--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo
(E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 223: The lines are all busy (busied out, that is --
why let them in to begin with?).