[EMAIL PROTECTED] said, in part:
On a side note, speaking of hardware, I'd like to mention a very
disturbing experience I had at a computer show in Salem N.H. yesterday
Complain to ncshows.com - quickly and thoroughly. They've been known
to kick out disreputable vendors, believe it or not.
Actually, [ is a link to test. Linux uses a symlink, some Unixes use hard
links.
-rwxr-xr-x1 root root17496 Sep 20 2001 /usr/bin/test
lrwxrwxrwx1 root root4 Dec 1 13:42 /usr/bin/[ - test
And yes, BASH has it built in, but on some of the older Bourne shells
Jerry Feldman said:
Actually, [ is a link to test. Linux uses a symlink, some Unixes use hard
links.
-rwxr-xr-x1 root root17496 Sep 20 2001 /usr/bin/test
lrwxrwxrwx1 root root4 Dec 1 13:42 /usr/bin/[ - test
And yes, BASH has it built in, but on some of
=Jerry Feldman said:
=Actually, [ is a link to test. Linux uses a symlink, some Unixes use hard
=links.
=-rwxr-xr-x1 root root17496 Sep 20 2001 /usr/bin/test
=lrwxrwxrwx1 root root4 Dec 1 13:42 /usr/bin/[ - test
=
=And yes, BASH has it built in, but on some
On Mon, 22 Apr 2002, Tom Buskey [EMAIL PROTECTED] wrote:
As I said in not so many words, modern shells have it built in. I don't
consider Bourne a modern shell.
I believe Jerry is saying some of the newer implementations of /bin/sh
have [ as a builtin. For example, [ has been a builtin on
Hey, all -
I'm attempting to write a script to put in cron.weekly that will find
the 25 users who use the most disk space and email them a warning.
My relatively simple question is:
Is there anything in bash that is the equivelent to the old basic
mid/left/right way of cutting down a variable?
DISKHOG=`echo 1234M /home/USER | sed -e 's;^.*/;;'`
*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
How about something like:
du -sb ./*|sort -g|tail|sed 's/\.\///'|awk '{print $2}'
to get the names... and then wrap it up in a mail command... it's not a
bash script since it forks a few times, but it's a quick'n'dirty.
Ben
On Mon, 22 Apr 2002, Brian Chabot wrote:
Hey, all -
I'm
On Mon, 22 Apr 2002 [EMAIL PROTECTED] wrote:
I said:
in other words, given: 1234M /home/USER I want USER so as to then turn
around and email that user. (I already have
way of removing non-user directories in /home).
Woo hoo!
Thanks for all the lightning fast help.
I already had most
That is also correct. I had forgotten.
But, my original point is that it is probably better to specify the full
pathname of a command.
X=$(/bin/ls) will generally result in identical results as:
PATH=/bin:$(PATH)
X=$(ls)
But, specifying the full pathname also forces the command to be executed
Yes, but several Unix systems supply an old style Bourne SH as well as a
POSIX shell (essentially ksh scaled down) and ksh. KSH implemented the [[
as a way of internalizing the condition.
For the most part, the syntax will work in most Bourne derived shells.
if [ condition ]
then
#
On Mon, Apr 22, 2002 at 12:16:15PM -0400, Brian Chabot [EMAIL PROTECTED] wrote:
On Mon, 22 Apr 2002 [EMAIL PROTECTED] wrote:
I said:
in other words, given: 1234M /home/USER I want USER so as to then turn
around and email that user. (I already have
way of removing non-user
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
At some point hitherto, Jerry Feldman hath spake thusly:
Actually, [ is a link to test. Linux uses a symlink, some Unixes use hard
links.
-rwxr-xr-x1 root root17496 Sep 20 2001 /usr/bin/test
lrwxrwxrwx1 root root
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Content-Type: text/plain; charset=us-ascii
In a message dated: Mon, 22 Apr 2002 14:03:32 EDT
Bob Bell said:
Look at the bash man page for '#', '##', '%', and '%%'.
Are these built-ins also available in the real Bourne Shell, and/or ksh?
Or
Yuck, yuck, yuck! It looks like everyone was pointing out ways to
use sed to accomplish this. Now, sed may give you extra
power, but when
writing shell scripts, I prefer to avoid using external commands where
possible. To that extent, consider:
$ foo=1234M /home/USER
$ echo
Mansur, Warren [EMAIL PROTECTED] writes:
Does anyone know how to loop through each line instead, so that the output would be
line 1
line 2
? Thanks.
echo -ne 'line 1\nline 2\n' | while read foo ; do echo $foo ; done
--
John Abreau / Executive Director, Boston Linux Unix
ICQ 28611923
I have not tried it, but what about setting IFS to newline only.
n 22 Apr 2002 at 14:42, Mansur, Warren wrote:
Does anyone know how to loop through each line instead, so that the output would
be
line 1
line 2
? Thanks.
--
Jerry Feldman [EMAIL PROTECTED]
Associate Director
Boston Linux
On Mon, Apr 22, 2002 at 02:15:14PM -0400, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
In a message dated: Mon, 22 Apr 2002 14:03:32 EDT
Bob Bell said:
Look at the bash man page for '#', '##', '%', and '%%'.
Are these built-ins also available in the real Bourne Shell, and/or ksh?
Or
it has a subtle scoping gotcha that drove me nuts the
first time I tripped over it - anybody know what I'm
referring to?
No? Then how about this?
result=badness# init with failure default
spewSomeKindOfOutput | while read input
do
result=goodness
done
echo $result
No? Then how about this?
result=badness# init with failure default
spewSomeKindOfOutput | while read input
do
result=goodness
done
echo $result
What is the output?
badness
Lemme guess. The pipe to the while actually creates a child process, and a child
echo -ne 'line 1\nline 2\n' | while read foo ; do echo $foo ; done
Thanks to all for their answers. I've always wanted to do this but
didn't know how until now. Works like a charm!
Warren
*
To unsubscribe from this list, send
[EMAIL PROTECTED] (Michael O'Donnell) writes:
it has a subtle scoping gotcha that drove me nuts the
first time I tripped over it - anybody know what I'm
referring to?
No? Then how about this?
result=badness# init with failure default
spewSomeKindOfOutput | while read input
On Mon, Apr 22, 2002 at 05:15:00PM -0400, Mansur, Warren [EMAIL PROTECTED]
wrote:
No? Then how about this?
result=badness# init with failure default
spewSomeKindOfOutput | while read input
do
result=goodness
done
echo $result
What is the output?
On Mon, 22 Apr 2002, at 2:15pm, [EMAIL PROTECTED] wrote:
If they only exist within bash, then I wouldn't advocate their use if
you're goal is portable shell code.
If portability is a concern, depending on the environment, it is sometimes
easier to install the GNU tools everywhere than try to
On 21 Apr 2002, at 10:44pm, Kenneth E. Lussier wrote:
Speaking of um, er, Iced Tea, an completely unrelated to the subject of
robots, I thought many people would get a kick out this:
http://www.thinkgeek.com/stuff/looflirpa/beer.shtml
Do not taunt Happy Fun Ball.
;-)
--
Ben Scott
In general, I try to write my scripts portable so that I can use them on
other platforms. In the past 5 years, I have had jobs with Tru64 Unix, HP-
UX (10.20 and 11.x), Solaris (7 and 8), and Linux (Debian, Red Hat and
SuSE). Most of my personal scripts are small and work across platform. My
On 21 Apr 2002, at 3:38pm, Rich Cloutier wrote:
1. If your heatsink falls off or your CPU fan dies, the processor just
slows down and stops. I doesn't die like AMD processors do.
If the CPU fan dies, or you power-on without a heatsink, an AMD system
should halt safely. The heatsink falls
On 21 Apr 2002, at 3:38pm, Rich Cloutier wrote:
Keep in mind that ANY new motherboard you buy today will have NO ISA
slots.
Not strictly true; you can still find them. However, ISA has become a
specialty item, and actually commands a higher price because of that.
I never go to hardware
On 21 Apr 2002, at 12:15pm, Kenneth E. Lussier wrote:
One of the problems is that there seem to be many different levels of DDR
(ranging from PC1600 to PC3200).
Heh. Well, PC66, PC100, and PC133 all refer to the clock speed of the bus
driving the memory. 66 MHz, 100 MHz, and 133 MHz.
On 21 Apr 2002, at 12:15pm, Kenneth E. Lussier wrote:
... hardware ... point me in the right directions ...
http://www.anandtech.com/
http://www.tomshardware.com
http://www.amdmb.com
http://www.maximumpc.com
I am looking to buy a new motherboard ...
http://www.asus.com
- Original Message -
From: Benjamin Scott [EMAIL PROTECTED]
To: Greater NH Linux Users' Group [EMAIL PROTECTED]
Sent: Monday, April 22, 2002 10:05 PM
Subject: AMD vs Intel (was: Hardware Pointers)
On 21 Apr 2002, at 3:38pm, Rich Cloutier wrote:
1. If your heatsink falls off or your
Ben Boulanger [EMAIL PROTECTED] writes:
I'm quite happy with my AMD Athlon boxes.
I'm thinking about a new machine too. What motherboard do you have?
Would that be your recommendation now for an Athlon? For dual Athlons?
What's a good video card that has solid support in XFree86?
On Mon, 22 Apr 2002, at 6:12pm, Rich C wrote:
However, powering the chip on with no heatsink is not really any different
than removing the heatsink from a running processor.
I believe the theory was that there were in fact relevant differences, but
I sure don't know what they were supposed
On Mon, 22 Apr 2002, at 9:19pm, James R. Van Zandt wrote:
What motherboard do you have?
I have an Epox EP-8K7A+, and I have been very happy with it. No problems
to speak of. Board design and layout is impressive. The manual, while
still lacking in the detail I really want (remember when
On Mon, 2002-04-22 at 21:19, James R. Van Zandt wrote:
Ben Boulanger [EMAIL PROTECTED] writes:
I'm quite happy with my AMD Athlon boxes.
I'm thinking about a new machine too. What motherboard do you have?
Would that be your recommendation now for an Athlon? For dual Athlons?
I don't
On 22 Apr 2002, at 8:38pm, Kenneth E. Lussier wrote:
I don't know that I would spend the money on a dual Athlon board. Does
anyone really need that much power in a desktop system?
As alway, it depends.
If you compile code (i.e., software development) on a regular basis, two
CPUs is
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
At some point hitherto, Kenneth E. Lussier hath spake thusly:
On Mon, 2002-04-22 at 21:19, James R. Van Zandt wrote:
I'm thinking about a new machine too. What motherboard do you have?
Would that be your recommendation now for an Athlon? For
Testing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
At some point hitherto, Kevin D. Clark hath spake thusly:
result=badness# init with failure default
spewSomeKindOfOutput | while read input
do
result=goodness
done
echo $result
What is the output?
In
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
At some point hitherto, Benjamin Scott hath spake thusly:
If portability is a concern, depending on the environment, it is sometimes
easier to install the GNU tools everywhere than try to craft something that
works on all the native tools.
Forever i havent been able to send GNHLUG news to gnhlugbefore the
messages where coming in as [EMAIL PROTECTED] as an alias
but i wastrying to send as [EMAIL PROTECTED]...
to try to fix my sending problem i made an account in GNHLUG as
postmasterSo Now It Works!YOU MUST SEND THE MESSAGE TO
unsubscribe gnhlug
*
To unsubscribe from this list, send mail to [EMAIL PROTECTED]
with the text 'unsubscribe gnhlug' in the message body.
*
42 matches
Mail list logo