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
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
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,
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
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
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
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
how do i write shell scripts..?
can someone please show me an example...