Search Results

Search: Posts Made By: bhaskar_m
9,306
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++ )
...
11,040
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
11,040
Posted By balajesuri
echo "XYZ[1.2.3]" | perl -ne '(/(.+?)\[(.+?)\]/)...
echo "XYZ[1.2.3]" | perl -ne '(/(.+?)\[(.+?)\]/) && print "name=$1\nversion=$2\n"'
6,624
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}
5,175
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,465
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

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