I have a file with two columns and each pair in the rows denote 2 connected nodes in the network file, edge_list.txt. Given a query file, input.txt, I want to retrieve the nodes that are directly connected (first degree neighbors) to the nodes present in the input.txt. Kindly help.
edge_list.txt
input.txt
Desired output:
Please note:
edge_list does not have any duplicate entries. A H and H A are same. The output file cannot have any duplicate entries (i.e. only A H or H A should be present)
Thanks.
Do you say that edge_list can't have H A and A H? Then there won't be duplicates in the output anyway. Should above be possible though, remove duplicates with
Hi,
I have been struggling to match positions output its neigbors. Can you please help ?
I have 2 files.They both have the same format (same number of columns) but first file is a kind of subset of second file
The first file looks like this (tab delimited):
1 11567687 snpid20
1 153881... (4 Replies)
Hello,
I want to use shell script to generate network files (I tried with python but its taking too long).
I have a list of nodes:
node.txt
LOC_Os11g37970
LOC_Os01g07760
LOC_Os03g19480
LOC_Os11g45740
LOC_Os06g08290
LOC_Os07g02800
I have an edge-list as well: edge.txt
Source_node ... (2 Replies)
I am trying to get the data from oracle table to a variable I have tried the below code
#/usr/bin/sh
echo " I am in correct loop"
SPOOL_FILE=/app/scripts/alt.lst
sqlplus /nolog <<END_SQL
connect bindu/bindu@gis
whenever sqlerror exit failure rollback;... (4 Replies)
There are two files one is shell script (sample.sh) and another is configuration file (sampl_conf.cfg)
configuration file contains one variable $FTP_HOME. the value of this variable vaires for user to user. If user is say jadoo then value is /home/jadoo/ftp/, for user1 - /home/user1/ftp. The... (4 Replies)
There are two files one is shell script (sample.sh) and another is configuration file (sampl_conf.cfg)
configuration file contains one variable $FTP_HOME. the value of this variable vaires for user to user. If user is say jadoo then value is /home/jadoo/ftp/, for user1 - /home/user1/ftp. The... (0 Replies)
Hi,
I have a file content like:
:
:
<span class="ColorRed"> 1.23</span><br>
:
:
the value 1.23 will be changed from time to time, and I want to use a shell script command, e.g grep or sed, to retrieve only the value, how to do it?
Thanks!
Victor (6 Replies)
Hi all,
We are getting CPU warning temeratures sometimes and our server is shutdown at 80 degree F. We notice our server room temperature at 18 degree celcius . Our we have already cleaned dust from grills near CPU Fan . CPU fans are working (moving) . It is our experience that CPU... (5 Replies)