Search Results

Search: Posts Made By: jacks
3,392
Posted By jacks
It worked. Thanks all for the valuable help.
It worked.

Thanks all for the valuable help.
3,392
Posted By jacks
Many Thanks. Unfortunate I get an error message...
Many Thanks.
Unfortunate I get an error message - nawk not found. I have mac osx. I donīt have nawk/gawk available.

Is it possible to use awk instead of nawk ?
I also want to use tab separator...
3,392
Posted By jacks
Hi, thanks. In my input file I have got 10...
Hi, thanks.
In my input file I have got 10 columns ( 5 pairs of IDs and scores). Is it possible to add some loop that can fetch the records from not only first two but also from other 8 columns to...
3,392
Posted By jacks
copying selected records from two columns to another file
Hey guys
I have got a tab-separated file and I want to copy only selected records from two columns at a time satisfying specified condition, and create a new file.

My tab separated file is like...
5,251
Posted By jacks
Hi Scrutinizer, This works nice : awk...
Hi Scrutinizer,

This works nice :

awk '{for (i=1;i<=NF;i++) {if (NR==1 && $i~/^\*/) A[i]; if (i in A) printf $i"\t"} print ""}' infile

Can you please tell me why it worked this time ?

...
5,251
Posted By jacks
Hi, I did not understand how it differs. ...
Hi,
I did not understand how it differs.

$ cat sample
*sml_0018 *smmt_0031 sdmt_0042 *srmt_0053
1 1 1 1
11.2902 12.4807 10.7395 7.9672
8.98292 9.03125 9.69812 7.7105...
5,251
Posted By jacks
No, it still does not work. Here is the sample...
No, it still does not work.
Here is the sample data. It is in tab separated format. I want to select columns having header names starting with "*".

*smt_0018 smf_0031 *smlf_0042 *sugk_0053...
5,251
Posted By jacks
it keeps selecting all columns.
it keeps selecting all columns.
5,251
Posted By jacks
Thanks. It did not work.
Thanks. It did not work.
5,251
Posted By jacks
extracting columns with headers' specific pattern
Hi friends,
I have data in tab separated file with headers like this :

*sml1 *sml3 *smln7 smfk9 smllf56...

Which shell command I should use if i want to extract entire columns that have header...
2,597
Posted By jacks
Thanks guys..That works fine.. In suggestion...
Thanks guys..That works fine..

In suggestion from the previous reply, I need to substitute in second step ";" for "|", but that's okay...
2,597
Posted By jacks
substitution of string in brackets
Hi friends!
I have a tab delimited file with two columns :
GB_45_DRB SP:0139466(mrmi sisignm)|SP:3674(fllflg_itoioh)|SP:68954779(RMTKLGF to emmdm-roomto)
GB_45_DRD SP:475928(mgmdksi...
2,185
Posted By jacks
I think that will split the column in a source...
I think that will split the column in a source file, but I do not know how to append that section each time in one file as new column.
I mean ..1 column of 100 rows will be appended each time in a...
2,185
Posted By jacks
Need help recurrently cutting single column file
Hi there !
I have file with single column. I want to cut that column at fixed number of rows each time and paste in another file, in a way that in new file, the each cutting appear as separate...
3,452
Posted By jacks
Thanks a lot, radoulov !! grep . filename...
Thanks a lot, radoulov !!

grep . filename worked nicely..
3,452
Posted By jacks
Remove spaces from columns
I have a file with only one field something like this :
213.45

220.65

240.47


345.67

320.45

I want to remove all spaces in between. Is there any unix command for that ?Thanks in...
Showing results 1 to 16 of 16

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