Search Results

Search: Posts Made By: CAch
2,802
Posted By CAch
Hi, RudiC Thanks for ur help....I got...
Hi,

RudiC Thanks for ur help....I got it.....

I followed the following command using printf and get the correct output:
awk '{printf...
2,802
Posted By CAch
I tried this one: gawk '{print $1," ",...
I tried this one:

gawk '{print $1," ", $2," ",$3," ",$4," ",$5," ",$6,"",$7,"",$8,"",$9,"",$10}' $line>newAfter this I am getting:

ATOM 1 CA LYS 1 4.816 8.341 ...
2,802
Posted By CAch
Hi RudiC, Thanks for your reply. I...
Hi RudiC,

Thanks for your reply.
I actually dont know the use of printf in shell script. can you plz giv e me a format by which I can convert my awk commands in printf form
2,802
Posted By CAch
Initially, The file was like: ATOM 1 N ...
Initially, The file was like:
ATOM 1 N LYS 1 3.440 10.397 -1.989 1.00 18.23
ATOM 2 CA LYS 1 3.897 11.093 -3.203 1.00 17.09
ATOM 3 C LYS 1 ...
2,802
Posted By CAch
Regarding change in column numbers after some commands
Hi All,

I was using some commands to:


replace a column by a constant string character awk -v a=CA 'NF>1{ $3=a; print; } ' $line>$line"_1"
to copy a column and paste it in another place...
Forum: Red Hat 07-12-2013
4,227
Posted By CAch
I have no idea, how to log in into pseudo...
I have no idea, how to log in into pseudo terminal.......
As, I am unable to reach to the prompt screen, df and ls commands are of no use.
Please let me know, how to approach to the pseudo...
Forum: Red Hat 07-11-2013
4,227
Posted By CAch
Problem in starting: message shown is "disk out of space"
Hi all,

I was using centos on VMware platform. It is not getting started, as it is showing the following message:
GDM could not write to your authorization file. This could mean that you are out...
4,124
Posted By CAch
Thanks Pravin :) It worked :b:
Thanks Pravin :)
It worked :b:
4,124
Posted By CAch
Hi pravin, Thanks for your efforts..... ...
Hi pravin,

Thanks for your efforts.....

The code given by you is adding up entire matrix starting from top to every 20th row.
But, I want to add only 20 rows
starting from row # 2-21 and...
4,124
Posted By CAch
Sum of range of rows and columns in matrix
Hi all,

I have a large matrix of 720 x 25. I want to get sum of range of rows and columns. Like, I need sum of all columns and row number 2 to 21, then leaving 22nd row, again sum of all columns...
2,525
Posted By CAch
I am still in learning phase of linux..... I...
I am still in learning phase of linux.....
I have tried "length" command to count the characters of a string.
then I tried to use "cut" and "fold" commands but cant corelate them.
This is not my...
2,525
Posted By CAch
Find number of characters in a column and replace
Hi all,

I want to count total no. of characters in a column. and if no. of charaters are more than 3 then it must replace it by splitted string. ie, it must place a space after 3 characters.
...
985
Posted By CAch
Creating two files out of one file
Hi members,

I have a file with lots of text like this:
asdsfkm
dfsfom['
agko
dfblml;'
afdgpk
gkopdf
HUMAN 12 L 123E 43
HUMAN 33 L 49235 123
HUMAN 43 L J432 234
TER
HUMAN 9 D 3245 56...
1,158
Posted By CAch
Code given above are working well, but what if...
Code given above are working well, but what if the filename consists of more than 1 underscore. And I want to apply this condition on last underscore. i.e, my filename is like:
asdf_01_1234

And I...
1,158
Posted By CAch
Inserting filename at the top of file
Hi Forum members,

I want to insert the filename at the top of file (i.e, first row only)

My file name is like asdf_432

And I want to insert this filename in first row as filename is asdf...
2,994
Posted By CAch
Thanks Balajesuri, your second post is...
Thanks Balajesuri,

your second post is working now, earlier I was doing some mistake. But now, it is showing "?" at the end of filename

a_2.4?
b_3.2?
c_4.3?
2,994
Posted By CAch
Yes, it is printing the way I wanted but it is...
Yes, it is printing the way I wanted but it is not changing the filename.

New filenames with underscore and the required values are printed on screen, but the original file remains as such with...
2,994
Posted By CAch
I have a directory containing 1000's of files...
I have a directory containing 1000's of files with extenxion.pdb

like a.pdb
b.pdb
c.pdb

Also, I have a text file which contains 7 columns. Out of which 5th column consists of current...
2,994
Posted By CAch
Hi Balajesuri, It is actually printing the...
Hi Balajesuri,

It is actually printing the above result shown by you but filenames are as such....I basically want to change the filenames as it is printed above.
Please suggest me something to...
2,994
Posted By CAch
Hi Balajesuri Thanks for the reply, but...
Hi Balajesuri
Thanks for the reply, but unfortunately this code is not working.....
Although its not showing any error..but i am not getting the required output.

what is the function of -e here?...
2,994
Posted By CAch
Inserting variable values in filename
Hi All,

I have a directory containing multiple files.
and also a txt file which contains the list of all filenames and certain values.

I want to read the text file line by line and if its 2nd...
1,365
Posted By CAch
Hi Franklin, Thanks..... but ur code is...
Hi Franklin,
Thanks.....

but ur code is also giving d same results......

ABSENT
ABSENT
ABSENT
ABSENT
21

Can u Please find some other way.....
1,365
Posted By CAch
How to solve the problem of overwriting an array?
Hi all,

I have a file.....



I want to print 2nd column arranged according to order of first column, present in second file.....



So, the output should be:


I am using...
2,120
Posted By CAch
sorting the datafile in an order given in second datafile
Hi,

I have two files:

first input file is having 7-8 columns,


and second data file is like


I want to arrange my datafile1 in the order given in second data file, by comparing...
1,510
Posted By CAch
Hi, One more thing...... if it doesn't...
Hi,

One more thing...... if it doesn't follow the condition $3=($1 +1) or $3=($1-1) in file2, then it must print the row as such from file2.

Im stuck in this....plz help me :wall:
Showing results 1 to 25 of 62

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