Search Results

Search: Posts Made By: gowtham.varma
2,492
Posted By gowtham.varma
sed ...
sed "s/s_virtual_hostname\">lnxdb-pts-[0-9]*/&-vip/" <filename>


if you have GNU sed you can use


sed -i "s/s_virtual_hostname\">lnxdb-pts-[0-9]*/&-vip/" <filename>
5,348
Posted By gowtham.varma
this may help you.
this may help you.
1,784
Posted By gowtham.varma
hope it helps..
hope it helps..
2,174
Posted By gowtham.varma
cat <filename> | tr '. '/ ' '
cat <filename> | tr '. '/ ' '
13,828
Posted By gowtham.varma
if the format of the lines does not change this...
if the format of the lines does not change this may help you..
name=`cat <filename> | awk -F '/' '{ print $7}'`
echo $name

or else to print the last word try this
name=`cat <file name> | awk...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 06:56 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy