Search Results

Search: Posts Made By: ranjithpr
18,242
Posted By ranjithpr
Below script worked in RedHat Enterprise Linux. ...
Below script worked in RedHat Enterprise Linux.


host=10.1.1.1
user=testuser
passwd=testpwd
lftp<<EOF
open sftp://$host
user $user $passwd
dir
EOF
3,243
Posted By ranjithpr
Hope this is what you were expecting
$ cat huge_file.txt
a
a
ab
b
hh
$ cat small_file.txt
a 1.5
b 2.5
ab 7.5
cd 1.1
$ awk 'NR==FNR{buff[$1]=$0;next} {if(buff[$1]!="") print buff[$1]}' small_file.txt huge_file.txt
a 1.5
a...
1,256
Posted By ranjithpr
Hope below example will be helpful $...
Hope below example will be helpful

$ myvar=/net/lockbox/vol/homes/j564redist.tar.gz
$ dirname $myvar
/net/lockbox/vol/homes


Regards,

Jith
Showing results 1 to 3 of 3

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