Search Results

Search: Posts Made By: awil
2,072
Posted By awil
Thank you very much RudiC. Wow, it worked in many...
Thank you very much RudiC. Wow, it worked in many column. :)
2,072
Posted By awil
Thank you very much SriniShoo. It worked :). ...
Thank you very much SriniShoo. It worked :).
However, I have many files which each file contain value column more than 4 to 70 column. I will try to adjust this code for them.
2,072
Posted By awil
Sum and calculate number in table
Hello everyone,

I have some problem in calculation number using awk.

input file format :
S1 1 : 0.003 0.031
S2 1 : 0.020 0.095
S3 4 : 0.088 0.012
S4 2 : 0.010 0.090...
654
Posted By awil
Try this code : awk '{a[$1]+=$2;} END {for(i...
Try this code :

awk '{a[$1]+=$2;} END {for(i in a) print i,a[i];}' inputfile
1,114
Posted By awil
Thank you very much. for your suggestion. The...
Thank you very much. for your suggestion. The first field length is not fixed, they vary in other length. I tried to use this code, but it do not give me in expected output.

---------- Post...
1,114
Posted By awil
sed command in multicharacter
Hello,

I have some problem about sed command. I have data which showed in below :

M001 ndle1
M002|bfn|n|bfn|bf ndle1
M003|bfn|n|bf|bf ndle1
M004|bfn|n|bf middle1...
2,213
Posted By awil
Problem in cut or paste
Hello,

I have some problem in cut or paste command for my text data.

Input1.txt :
I use cut command :
cut -d ' ' -f1 Input1.txt > result.txt result.txt :
Then, I use paste command to merge...
7,174
Posted By awil
Great. It is worked. Thank you very much Jotne.
Great. It is worked. Thank you very much Jotne.
7,174
Posted By awil
Insert space in specific column among many columns
Hello,

I have some problem in inserting the space for the pairs of columns.

I have the input file :
I used this code below in replacing it using space in specific column (replace space in...
Forum: Programming 02-07-2013
2,110
Posted By awil
Arrange word in table metrix format
Hello everyone,

I have some problem about this code :

#!/usr/bin/env python
import sys

try :
filename = sys.argv[1]
except :
print 'Specify filename'
sys.exit()
fd =...
1,621
Posted By awil
Thank you very very much, Pamu. Great. ^^ I...
Thank you very very much, Pamu.

Great. ^^ I never know that shell script can do in everything. So good.

I tried to use your code, it's worked but I fixed a little bit because when I have 'A' >...
1,621
Posted By awil
Count char, sum and change
Hello,

I have some problem in counting char of word, sum and change. I'm not sure shell script can do this.

Input data:

Sam1 BB BB AA AA BB BB BB
Sam2 BB BB AA AA AB AB AB
Sam3 BB BB BB AA...
3,132
Posted By awil
Thank you very very much Lem and Scrutinizer. I...
Thank you very very much Lem and Scrutinizer. I tried them already. These codes are worked. Very useful. ;)
3,132
Posted By awil
Thank you very much Lem and Scrutinizer. This...
Thank you very much Lem and Scrutinizer. This code is worked for known number of column which contain -9.

However, in this case, input data is a lot of columns and rows, then I do not know the...
3,132
Posted By awil
remove column based on the same value
Hello,

I have some problem to remove the columns which have the duplicate value of -9 which is in every row except -9 in some row.

Input file showed in below :
Col1 Col2 Col3 Col4 Col5 Col6
A...
1,755
Posted By awil
Thank you very much. They are working :)
Thank you very much. They are working :)
1,755
Posted By awil
merge same pattern of same column in one line
Hello,
I have some problem in the modified shell script. I would like to merge the same word in column 1 in one line.

Example :
A1 B1 2
A2 B1 4
A3 B1 7
A1 B2 1
A2 ...
Showing results 1 to 17 of 17

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