> "John" == John W Krahn <[EMAIL PROTECTED]> writes:
John> Are you sure you want to modify /etc/passwd? Which field do you
John> want to sort on?
And if you want to modify /etc/passwd, you should be using vipw,
because vipw will lock the file for you, and verify some sanity checks
the update
[ paragraphs correctly renumbered and one link fixed - tn ]
Hi,
Something to be aware about when modifying the password file is that it
should be locked to prevent another process from modifying it at the
same time. There are different conventions on different systems for
doing this and they de
Hi,
Something to be aware about when modifying the password file is that it
should be locked to prevent another process from modifying it at the
same time. There are different conventions on different systems for
doing this and they depend also on the tool for modifying the password
file.
For ex
Dean Do wrote:
>
> Hello,
Hello,
> I'm rather new to PERL. How do I go about sorting
> a simple text file using PERL? This is what I want
> to accomplish.
>
> # sort /etc/passwd > /etc/passwd-new
> # mv /etc/passwd-new /etc/passwd
Are you sure you want to modify /etc/passwd? Which field do
If you keep your replies on the list, you'll get help from all the
people much smarter than me. ;)
On Friday, October 3, 2003, at 04:09 PM, Dean Do wrote:
> # sort /etc/passwd > /etc/passwd-new
> # mv /etc/passwd-new /etc/passwd
Any good reason not to use the above? :)
[dean] Thanks for yo
On Friday, October 3, 2003, at 01:45 PM, Dean Do wrote:
Hello,
Howdy.
I'm rather new to PERL. How do I go about sorting
a simple text file using PERL? This is what I want
to accomplish.
# sort /etc/passwd > /etc/passwd-new
# mv /etc/passwd-new /etc/passwd
Any good reason not to use the above?