Search Results

Search: Posts Made By: Sudhakar333
4,284
Posted By Chubler_XL
You cannot just do expect "$fname" to test the...
You cannot just do expect "$fname" to test the existence of remote files. Try:

expect "$ "
set fname /root/.ssh/authorized_keys
set timeout 2
send "[ -f $fname ] && echo YES\r"
expect "YES\r"...
4,284
Posted By drl
Hi. My recollection is that TCL does command...
Hi.

My recollection is that TCL does command substitution when it encounters [ ... ] so perhaps a test command needs to be used within the brackets (which may look very strange to shell...
1,255
Posted By rwuerth
awk -F"/" '{ print $2}'...
awk -F"/" '{ print $2}' <your_file>
1,255
Posted By Skrynesaver
cut -d\/ -f2
cut -d\/ -f2
5,745
Posted By Yoda
This awk program might work for the XML data that...
This awk program might work for the XML data that you posted:
awk -F'[<>]' '
/<sn:data1/ {
d = $0
gsub (/.*="|".*/,...
1,161
Posted By Yoda
Using gawk: gawk ' /^data.*/ { ...
Using gawk:
gawk '
/^data.*/ {
D[++d] = $0
}
/^voice.*/ {
V[++v] = $0
}
END {
...
Showing results 1 to 6 of 6

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