Re[2]: Bash Script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 21 Nov 2005 16:32:37 +1100
Cal McPherson <calm@xxxxxxxxxxxx> wrote:

> #!/bin/bash
> 
> ip_address=192.168.1.2
> 
> reversed=`echo $ip_address | awk 'BEGIN { FS = "."; OFS = "." } ; { print
> $4, $3, $2, $1 }'`
> 
> echo $reversed

Dear Cal,

thank you so much, it worked like a charm !

-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux