Search Results

Search: Posts Made By: sam_2921
1,334
Posted By sam_2921
Many thanks for your feedback... RudiC and...
Many thanks for your feedback... RudiC and Scrutinizer!
1,334
Posted By sam_2921
Add new columns based on existing columns
Hi all,

I am kind of stuck with printing my desired output. Please help me if you know how it can work.

My input file(tab separated):

NW_0068.1 41,16 100,900
NW_0699.1 4,2,19 ...
6,737
Posted By sam_2921
Thanks to All. :)
Thanks to All. :)
2,698
Posted By sam_2921
cat test | sed 's/\<pr.*ad\>/prahlad/'
cat test | sed 's/\<pr.*ad\>/prahlad/'
6,737
Posted By sam_2921
Print a word specific number of times
Hi All,

I wanted to know if there is a shell command to print a word n number of times

The Input File is :
Cat 4
Bat 3
Zall 1
Kite 2

Output File required is :
Cat
Cat
Cat
Cat
Bat...
3,198
Posted By sam_2921
Thanks summer cherry and Thanks Dennis.
Thanks summer cherry and Thanks Dennis.
2,673
Posted By sam_2921
Thanks a lot Franklin. :)
Thanks a lot Franklin. :)
2,673
Posted By sam_2921
I have tried to simplify my problem. Please see...
I have tried to simplify my problem. Please see if you can help.
Now there is only increasing numbers in column.

INPUT FILE

-----
ABC 4675209 4676057 Pattern01
ABC ...
3,198
Posted By sam_2921
Thanks Selwan and rdcwayx. Athough sorting on the...
Thanks Selwan and rdcwayx. Athough sorting on the 3rd column will not sort within blocks of data but awk code is working fine. Thanks again :)

---------- Post updated at 01:21 PM ----------...
3,198
Posted By sam_2921
Print rows in reverse order if values decrease along the column
Hi, Guys. Please help me to find solution to this problem using shell scripting.

I have an INPUT file with 4 columns separated by tab. Each block of records is separated by -----


-----...
2,673
Posted By sam_2921
The desired OUTPUT File is : ----- Xyz ...
The desired OUTPUT File is :

-----
Xyz 3033 Pattern=Cheers07080.1
Xyz 93 Pattern=Cheers07080.1
-----
Xyz 211 Pattern=Cheers06520.1
Xyz 5632 ...
2,673
Posted By sam_2921
Thanks for your response Franklin. I'll take care...
Thanks for your response Franklin. I'll take care of the text formatting. But there is some problem with the output as there are negative values in the output, whereas a smaller number has to be...
2,673
Posted By sam_2921
substract column based on some criteria
Please guide if you know how to solve this.

I have a tab delimited INPUT FILE where each record is separated by -----
-----
ABC 4935402 4936680 Pattern=Cheers07080.1
ABC ...
5,848
Posted By sam_2921
Thanks Chakrapani, summer_cherry and Thanks...
Thanks Chakrapani, summer_cherry and Thanks Franklin for explanation of code.
5,848
Posted By sam_2921
Thanks Franklin, the code is working perfect....
Thanks Franklin, the code is working perfect. Please tell me what does ? and : work for in the expression ( s?$2-s:"0" ). Thanks again.
5,848
Posted By sam_2921
Thanks Chakrapani, Last record has two pairs of...
Thanks Chakrapani, Last record has two pairs of SDS-peon so there should be two zxy entries. And there is a problem '-1557' should not be present either a 0 should be there.
5,848
Posted By sam_2921
Yes, you are right Vivek but I have corrected the...
Yes, you are right Vivek but I have corrected the data now. Thanks.
5,848
Posted By sam_2921
Extract difference of two columns from different rows
Hello guys,

Please help me to solve this problem. I have tried some awk commands but couldn't succeed.
I have a tab delimited file where each record is separated by ------ and 4th column of each...
3,983
Posted By sam_2921
Thanks Tony. It has solved my problem.
Thanks Tony. It has solved my problem.
3,983
Posted By sam_2921
How to grep lines in the particular order?
Hi guys,
I am stuck on a simple issue but couldn't find a simple solution. If you have any ideas please help.

I have two files : -

FILE1
Tue 09/12 Lindsey
Wed 09/13 Randy ...
1,519
Posted By sam_2921
Thanks, Ya there was some difference in...
Thanks, Ya there was some difference in characters but still an empty line is introduced after the first record in the output file.
1,519
Posted By sam_2921
Thanks Rubin, there is a small error in the...
Thanks Rubin, there is a small error in the output.

The output I am getting is -
>cgi|Poptr1_1|555048|eu3.00031681 on binding [test2]...
1,519
Posted By sam_2921
How to arange records in a particular order?
Hi guys,
I have a problem please help if you have any solutions.

I have two files. FILE1 having records separated by '>'

FILE1
>LOG_Ps04g30040.1|12004.m08110|test lc-like prot, test1...
25,162
Posted By sam_2921
Thanks summer_cherry, ShawnMilo and Rubin. :) ...
Thanks summer_cherry, ShawnMilo and Rubin. :)

The nawk and Python codes are running perfect,

but Rubin the awk one liner is giving the error " a[: Event not found. " can u please guide why...
25,162
Posted By sam_2921
Thanks summer_cherry, ShawnMilo and Rubin. :) ...
Thanks summer_cherry, ShawnMilo and Rubin. :)

The nawk and Python codes are running perfect,

but Rubin the awk one liner is giving the error " a[: Event not found. " can u please guide why...
Showing results 1 to 25 of 31

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