Я настроил туннель с помощью этой статьиhttp://www.thegeekstuff.com/2013/11/reverse-ssh-tunnel
Here is the command your friend sitting on remote server side should run on the server :
ssh -fN -R 7000:localhost:22 username@yourMachine-ipaddress
So this ssh connection request originating from remote server to your machine will make sure that any ssh connection request for port 7000 on your machine is forwarded to port 22 of remote server.
Now do an ssh connection request from your machine to your own machine at port 7000:
ssh username@localhost -p 7000
Использованиеawk
:
awk -F, 'NR==FNR { myArray[$0]=substr($0,13,10); next }
{ for (file in myArray) {
if (myArray[file]>=$4 && myArray[file]<=$5)
{ print file; delete myArray[file] }
}
}' fileA.txt fileB.txt
Альтернативный вариант с использованием нескольких разделителей. Измените первый блок кода -на :
.NR==FNR { myArray[$0] = $2/1000; next }
Запустите это так:
awk '...awk-script...' FS=_ fileA.txt FS=, fileB.txt