Search Results

Search: Posts Made By: senhia83
9,397
Posted By senhia83
Thanks a lot for your responses, ${workdir1}...
Thanks a lot for your responses, ${workdir1} seems to do the trick !
9,397
Posted By senhia83
I want to cd as well, but the path is not being...
I want to cd as well, but the path is not being passed from local to remote. I cant manually cd , this is part of a pipeline, so the cd has to be part of a variable based shell-script.
Any...
9,397
Posted By senhia83
I want to go to a different folder for each ssh,...
I want to go to a different folder for each ssh, adding the line to the profile will fix my ssh dir right?
9,397
Posted By senhia83
The echo statement shows the path of my home...
The echo statement shows the path of my home directory in B , instead of my intended path. So the variable $workdir1 is not being passes by ssh and the cd is not working.
9,397
Posted By senhia83
Pass path variable on SSH
hi Gurus,

Have been struggling with this for a while

I have 2 servers , lets say local A and remote B, I need to use both as a part of a pipeline. The folder structure is shared between the...
1,123
Posted By senhia83
Parse the longest matching string
Hello experts,

I am trying to unscramble a mixed signal into component signals.

Let the list of known signals be

$ cat tmplist


DU
DU4016
GFF
GFF2010
GFF201019
G2115
G211
DU40
1,596
Posted By senhia83
Rearrange rows by group pairs
Hello gurus,

I have two variable columns 1 and 2 , and their respective groups in 3 and 4

var1 var2 gr1 gr2
a b g h
c d h g
d f d h
f g h g
d r h d
p q a b
h y h g
r t g h

I want to...
1,670
Posted By senhia83
Run rest of script after parallel steps have completed
Hello gurus,

I produce a number of .loc files in parallel depending on number of .csv in the folder

for file in *csv
do
./process.sh $file > $file.loc &
done

then I want to compile all...
2,480
Posted By senhia83
Thanks ! the filesystem ended up crashing with...
Thanks ! the filesystem ended up crashing with the files approach ..but a very innovative idea nonetheless !
2,480
Posted By senhia83
Matrix to 3 col sorted
Hello experts, I have matrices sorted by position, there are 400k rows, 3000 columns.

ID CHR POS M1 M2 M3 M4 M5
ID1 1 1 4.6 2.6 2.1 ...
8,683
Posted By senhia83
More generic and untested... awk -v...
More generic and untested...

awk -v add="hi_" -F, 'NR==1{for(i=1;i<=NF;i++) $i=add $i}1' OFS="," file
2,872
Posted By senhia83
Not the entire the line, only the shorter split...
Not the entire the line, only the shorter split (separated by //) will have the primary signal.

In my original code I use

{ short=length($1)>length($2)? $2:$1 } to determine which of the two...
2,872
Posted By senhia83
Hi Don and Rudi, I am highlighting the part...
Hi Don and Rudi,

I am highlighting the part from my original request





for this string

(\\b-[pt22dx]dfdfs/(dsgfspp22dx//[(\pp22dx)-@@----B-@--

only the shorter of the two columns...
2,872
Posted By senhia83
Parsing the longest match substring
Hello gurus,

I have a database of possible primary signal strings

pp22
pt22dx
pp22dx
jty2234

Also I have a list of scrambled signals which has a shorter string and a longer string...
4,931
Posted By senhia83
Either of these patches might work, although...
Either of these patches might work, although there are smarter ways

awk '{a[$2$3]++; b[$2$3]=$0}END{for(as in a) if(a[as]==1) print b[as]}' infile | sort -k2,2n

awk '{a[$2$3]++;...
4,931
Posted By senhia83
If order is not important awk '{a[$3]++;...
If order is not important

awk '{a[$3]++; b[$3]=$0}END{for(as in a) if(a[as]==1) print b[as]}' infile

M4 1 3456
M8 2 7889
M5 2 456
1,037
Posted By senhia83
Could be a start.. awk -v x=0...
Could be a start..

awk -v x=0 '/---/{x="F"++i;next}{print > x;}' infile
4,857
Posted By senhia83
@Ravinder ...your solution is too specific and...
@Ravinder ...your solution is too specific and hardcoded, I`m looking for something generic and flexible like Aia and rdrtx1. Thanks a lot for your help.

@ Aia , the edits worked ! running...
4,857
Posted By senhia83
Aia, This is the error i get. Am I running...
Aia,

This is the error i get. Am I running it wrong?

$ perl spltwheader.pl testcase tmp6

Type of arg 1 to keys must be hash (not hash element) at spltwheader.pl line 16, near "}) "...
4,857
Posted By senhia83
This is great, is it too much trouble to modify...
This is great, is it too much trouble to modify Aia and rdrtx1 code, if I want to specify the column number to key off on? The testcase column may not be the last column in the actual dataset.
...
4,857
Posted By senhia83
Split file by column value, each with header
Hello all,

I have a csv with with different testcase values in column 5.


year,min,max,Instrument,Testcase
2016,201,1003,GEOTROPH-02116,TATA7980
2016,53,1011,GEOTROPH-01963,TATA7980...
1,662
Posted By senhia83
You are right, that will pair will be 2. Thanks a...
You are right, that will pair will be 2. Thanks a lot..I need to understand your code now :)
1,662
Posted By senhia83
How many studies have unequal values for each pair?
I have several Studies (s) which has points (p) having Values (v).
My goal is to determine for each pair of points, how many studies have different values ( if available ).

Study Point Value...
1,433
Posted By senhia83
The subfolder is not necessarily called...
The subfolder is not necessarily called subfolder12, its any random name at level1. So every zip will have a different name for the subfolder at level 1.
1,433
Posted By senhia83
Unzip to a specific level
Hello gurus, this should be simple but I cant seem to figure this out. Please assist.

I have several thousand zip files in a directory

A.ZIP
B.ZIP
.
.
..
Z.ZIP


All these zipped files...
Showing results 1 to 25 of 174

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