[newbie] shell scripts

1999-09-11 Thread R. David Whitlock
OK, I figured out the aliases stuff on my own and made up a more elegant solution, in case any one here wanted to try it. And I'm always up for suggestions: The script /etc/bashrc _IS_ being executed, but just it, not the ~.bashrc as far as I can tell. My problem before was a stupid syntax

Re: [newbie] shell scripts example how to find out dynamically assigned IP address?

1999-08-06 Thread Jo
Well, I'm trying to find out my dynamically assigned IP address. I got this far: ifconfig ifc grep --context=1 eth1 ifc ifc1 grep "inet addr:" ifc1 ifc2 Now I have to get the IP address from that line I isolated into a variable. Anybody? Many thanks, Jo Axalon wrote: On Fri, 9

Re: [newbie] shell scripts example how to find out dynamically assigned IP address?

1999-08-06 Thread Steve Philp
Jo wrote: Well, I'm trying to find out my dynamically assigned IP address. I got this far: ifconfig ifc grep --context=1 eth1 ifc ifc1 grep "inet addr:" ifc1 ifc2 Now I have to get the IP address from that line I isolated into a variable. Axalon wrote: On Fri, 9 Jul 1999,

Re: [newbie] shell scripts example how to find out dynamically assigned IP address?

1999-08-06 Thread Jo
Great! Many thanks, For anything shorter, I will need a lot more practice first... Jo Steve Philp wrote: Jo wrote: Well, I'm trying to find out my dynamically assigned IP address. I got this far: ifconfig ifc grep --context=1 eth1 ifc ifc1 grep "inet addr:" ifc1 ifc2

Re: [newbie] shell scripts

1999-07-10 Thread Kuraiken
Yants wrote: how do i write shell scripts..? can someone please show me an example... You know what shell script is, right? Well, the question of how depends on the shell you're using. pdksh, csh (c shell), bash all have slightly different err...dialects. Also, you can right "shell" scripts

Re: [newbie] shell scripts

1999-07-10 Thread Michael R. Batchelor
At 10:34 PM 7/9/99 -0700, you wrote: how do i write shell scripts..? can someone please show me an example... cd to /usr/bin type "file *" This will give a list of the file type for everything in the /usr/bin directory, and many of them are really, really good professionally done shell scripts

Re: [newbie] shell scripts

1999-07-10 Thread Irv Mullins
On Mon, 08 May 2000, you wrote: On Fri, 9 Jul 1999, Yants wrote: how do i write shell scripts..? can someone please show me an example... Here's an example from Richard Petersen's handy Linux Programmer's Reference: (Good book to have around) #!/bin/bash #Program to allow the user to

[newbie] shell scripts

1999-07-09 Thread Yants
how do i write shell scripts..? can someone please show me an example...