Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: bhaskar_m
6,281
Posted By Yoda
You can use awk to extract required attributes...
You can use awk to extract required attributes and values.

Here is a code that extracts the first 3 required fields:
awk -F'[=>]' ' {
for ( i = 1; i <= NF; i++ )
...
10,530
Posted By elixir_sinari
Try echo "XyZ[1.2.3]"|sed...
Try

echo "XyZ[1.2.3]"|sed 's|\(.*\)\[\(.*\)\]|\1 \2|g'|read name version
10,530
Posted By balajesuri
echo "XYZ[1.2.3]" | perl -ne '(/(.+?)\[(.+?)\]/)...
echo "XYZ[1.2.3]" | perl -ne '(/(.+?)\[(.+?)\]/) && print "name=$1\nversion=$2\n"'
5,236
Posted By ygemici
use double quotes for expand the your variables.....
use double quotes for expand the your variables..
# sed "s|local.mds.dir=\${basedir}/deployComposites|local.mds.dir=$WORKSPACE/$TAG_DIR/mds|" ${PROPERTIES_FILE}
4,493
Posted By radoulov
What happens if you redirect stderr: ssh -l...
What happens if you redirect stderr:

ssh -l user remote-address 'cd TOMCAT_HOME/bin; ./startup.sh 2>/dev/null'If that hangs too, try to redirect all stdin, stdout and stderr:

ssh -l user...
2,108
Posted By anurag.singh
ID1=$(echo...
ID1=$(echo "xxxxx.yyy.zzzz.From-ABCD.To-XYZ.xxxxxx" | sed 's/.*\.From-\(.*\)\.To-.*/\1/')
ID2=$(echo "xxxxx.yyy.zzzz.From-ABCD.To-XYZ.xxxxxx" | sed 's/.*\.To-\(.*\)\..*/\1/')

OR

ID1=$(echo...
Showing results 1 to 6 of 6

 

Featured Tech Videos

All times are GMT -4. The time now is 08:20 AM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy