One last link before I have to return to databases and load errors now that some processing has finished (and an error log for ant scripts).<div><br></div><div>Someone is confused that the behaviour of cat is wrong (for him) but it might be that what he is getting is what you want:</div>
<div><a href="http://www.programmingforums.org/post39095.html">http://www.programmingforums.org/post39095.html</a></div><div><br></div><div><a href="http://www.programmingforums.org/post39095.html"></a>Sorry I'm not able to formalise this specifically for your situation but hope it helps. Always limited by time and availability of scripts/reference stuffs.<br>
<br><div class="gmail_quote">On 24 September 2010 10:32, James Morris <span dir="ltr"><<a href="http://jwm.art.net">jwm.art.net</a>@<a href="http://gmail.com">gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 24 September 2010 10:18, Evan Ingram <<a href="mailto:evan.ingram@cariss.co.uk">evan.ingram@cariss.co.uk</a>> wrote:<br>
> I had come across that link already :)<br>
><br>
> It prints all the usernames on seperate lines, what would I have to do<br>
> to get them all on oneline... userA userB userC?<br>
><br>
> Or is there a way the usermod script can take usernames on different<br>
> lines?<br>
><br>
> #!/bin/sh<br>
><br>
> for USER in<br>
> userA<br>
> userB<br>
> userC<br>
> userD<br>
> userE<br>
> ; do<br>
> usermod -G USERS $USER<br>
> done<br>
><br>
> ????<br>
><br>
<br>
<br>
</div>#!/bin/sh<br>
<br>
#notice backticks<br>
USERS=`cat /etc/passwd |grep /bin/bash |grep [0-9][0-9][0-9] |cut -d: -f1`<br>
<br>
for USER in $USERS<br>
<div class="im">do<br>
usermod -G USERS $USER<br>
done<br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
Kent mailing list<br>
<a href="mailto:Kent@mailman.lug.org.uk">Kent@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/kent" target="_blank">https://mailman.lug.org.uk/mailman/listinfo/kent</a><br>
</div></div></blockquote></div><br></div>