Re: Script

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

 



On Monday 03 January 2005 07:11 pm, truc nguyen wrote:
> If I want to put it in variable "ipaddr"
> grep truc /etc/hosts | cut -f1 -d" " > $ipaddr
>

ipaddr=$(grep truc /etc/hosts | cut -f1 -d" ")

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux