On Fri, 30 Jun 2000, Fotis Georgatos wrote:
> Why bother with complex shell scripts when you can have most
> needed functionality in a single C program?
> I've found myself replacing 10-20 lines of shell code with a single line.
WHAT? Are you crazy? I've found just the opposite.
What shell scripting are you using? Example to find # of
duplicate usernames in your password file:
#!/usr/local/bin/ksh
VAR1=`awk -F: '{print $1}' /etc/passwd|grep -cx $1`
print "Number of occurences of $1 in /etc/passwd: $VAR1"
Let me see you replicate that in C in less than 2 lines...
Nick Rogness
- Speak softly and carry a Gigabit switch.
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message
- /etc/security -> /etc/periodic/security ? James Howard
- Periodic scripts [Was: Re: /etc/security -> /et... Konstantin Chuguev
- Re: Periodic scripts [Was: Re: /etc/security -... void
- Re: Periodic scripts [Was: Re: /etc/security -... Fotis Georgatos
- Re: Periodic scripts [Was: Re: /etc/securi... Nick Rogness
- Re: Periodic scripts [Was: Re: /etc/se... Poul-Henning Kamp
- Re: /etc/security -> /etc/periodic/security ? Brian Somers
- Re: /etc/security -> /etc/periodic/security... Ben Smithurst
- Re: /etc/security -> /etc/periodic/secu... James Howard
- Re: /etc/security -> /etc/periodic/... Ben Smithurst
- Re: /etc/security -> /etc/peri... James Howard
- Re: /etc/security -> /etc/... Ben Smithurst
- Re: /etc/security -> /etc/peri... Brian Somers
- Re: /etc/security -> /etc/... Ben Smithurst
- Re: /etc/security -> /... Cyrille Lefevre

