Search Results

Search: Posts Made By: RisingSun
2,138
Posted By RisingSun
Thanks guys, you fixed the problem! A new...
Thanks guys, you fixed the problem!

A new one though, how do you compare arrays? The whole thing reads:

for aa in 01 02 03
do
OrigNum[$aa]=$(grep -c ${Orig[$aa]} Ba3In2F12.prepos)
...
2,138
Posted By RisingSun
Thanks! I'll go try these suggestions out. For...
Thanks! I'll go try these suggestions out. For Frank, yeah, I realize, but there's a bunch of code below that I didn't want to include. Thanks though!
2,138
Posted By RisingSun
Array in loop is acting up
Hello!

I have a question about loops and arrays. I'm trying to go through this:

for aa in 01 02 03
OrigNum[$aa]=$(grep ${Orig[$aa]} Ba3In2F12.prepos | wc -l)
...
3,430
Posted By RisingSun
Sorry, I'm really new to awk, could you explain...
Sorry, I'm really new to awk, could you explain your line a little? I tried it and it didn't work. What is meant by file and new_file for, is that where the searching is done? Thanks
3,430
Posted By RisingSun
awk using ssh variable?
I have a file named Atoms that has a list of atoms listed vertically, like:

O
C
Na

etc. There is a variable number of them.

I want to count their occurences in another file. I want to...
Showing results 1 to 5 of 5

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