Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: ranjithpr
2,609
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...
15,991
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
1,135
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

 

Featured Tech Videos

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