Search Results

Search: Posts Made By: linuxUser_
17,956
Posted By linuxUser_
Dear fpmurphy, Thanks for the reply. Here is...
Dear fpmurphy,

Thanks for the reply. Here is the output of lsb_release

LSB Version: ...
17,956
Posted By linuxUser_
Undefined reference to memcpy@GLIBC_2.14
Dear All,

I am trying to compile OpenFOAM-1.7.x in RHEL. I could not able to compile some of the applications because of libc version issues.
It is saying
undefined reference to...
6,741
Posted By linuxUser_
Dear All, Problem solved :) Thanks a lot...
Dear All,

Problem solved :)
Thanks a lot for help.

Regards,
linuxUser_
6,741
Posted By linuxUser_
now I am able to sed, Thanks a lot. I have...
now I am able to sed, Thanks a lot.
I have another issue.
content of my file:

al 62987al 1 g 0300.00 5000.00 0600.00 1
0.02559589e+02-0.01063224e-02...
6,741
Posted By linuxUser_
Echo printing a line in 2 lines; expected to print in one line
Dear All,

fileName: therm.txt

nc3h7o2h 7/27/98 thermc 3h 8o 2 0g 300.000 5000.000 1390.000 41
1.47017550e+01 1.71731699e-02-5.91205329e-06 9.21842570e-10-5.36438880e-14 2...
41,737
Posted By linuxUser_
Ok. I actually wanted something like this. as...
Ok. I actually wanted something like this.
as each dictName will have seperate planeName and field names,
I taught if we can create a class like dictName and variables planeName and fields, it will...
41,737
Posted By linuxUser_
Well, How can I access to p U T separately?
Well, How can I access to p U T separately?
41,737
Posted By linuxUser_
Code: . <(awk '/^ *functions */ ...
Code:

. <(awk '/^ *functions */ {Func=1; next}
Func {CNT=CNT+gsub(/{/,"")-gsub(/}/,""); if (CNT==1 && !/^ *$/) print "dictname[" ++dc "]="$0}
...
41,737
Posted By linuxUser_
code: awk '/^ *functions */ {F=1;...
code:
awk '/^ *functions */ {F=1; next}
F {CNT=CNT+gsub(/{/,"")-gsub(/}/,""); if (CNT==1 && !/^ *$/) print "dictname[" ++dc "]=" $0}
/fields/ ...
41,737
Posted By linuxUser_
See comment number 27. I ended up with that...
See comment number 27. I ended up with that error. :(
41,737
Posted By linuxUser_
How can I separate them out?
How can I separate them out?
41,737
Posted By linuxUser_
Lets end this misinterpretation. Sorry Aia and...
Lets end this misinterpretation.
Sorry Aia and thanks a lot to all the people who tried to help me. especially RudiC, Aia and Corona.


:) :b:

Thanks & Regards,
linuxUser_

----------...
41,737
Posted By linuxUser_
Code: . <(awk '/^ *functions */ {F=1;...
Code:
. <(awk '/^ *functions */ {F=1; next}
F {CNT=CNT+gsub(/{/,"")-gsub(/}/,""); if (CNT==1 && !/^ *$/) print "dictname[" ++dc "]=" $0}
/fields/ ...
41,737
Posted By linuxUser_
Have you gone through complete thread? If so,...
Have you gone through complete thread?
If so, what you didn't understand?
by the way its bash script.

Thanks & Regards,
linuxUser_

---------- Post updated at 09:48 AM ---------- Previous...
41,737
Posted By linuxUser_
in this case pwd is not working. I want to give...
in this case pwd is not working.
I want to give file name with current directory path :(
what to do?
41,737
Posted By linuxUser_
OMG... I see lot more stuffs to understand to...
OMG... I see lot more stuffs to understand to finish this job :(

Can you give me a example storing a variable like this

declare -a dictName
j=0
while(some condition that satisfies my...
41,737
Posted By linuxUser_
#!/bin/bash declare -a dictName; declare -a...
#!/bin/bash
declare -a dictName;
declare -a planeName;
declare -a fieldName;
dCount=0;
pCount=0;
fCount=0;

awk '/^ *functions */ {F=1; next}
F ...
41,737
Posted By linuxUser_
one more issue: fields have no limit. I...
one more issue:

fields have no limit.
I mean lets say in dict1 fields are p, U
in dict2 may be T will be the field

all I mean to say is, Instead of saving field names as continuous string,...
41,737
Posted By linuxUser_
thanks a lot... its working fine up to this :) ...
thanks a lot... its working fine up to this :)

I want to add one more limiter to avoid any other entities with {} as current script search for strings inside {}.
Ideal condition is functions{...
41,737
Posted By linuxUser_
you mean to say D is not belongs to it???? ...
you mean to say D is not belongs to it????
sorry please add A-Z as well
41,737
Posted By linuxUser_
It must be a continuous string contains a-z and...
It must be a continuous string contains a-z and 0-9, else application will not work :-|

typical names as follows,
sampleData1
dataForPlane1
etc..,
41,737
Posted By linuxUser_
in functions{}, there will be many sub-dicts. ...
in functions{}, there will be many sub-dicts.
one of them is

planeDictName
{
type surfaces;
functionObjectLibs ( "libsampling.so" );
...
41,737
Posted By linuxUser_
Yes, gcc
Yes, gcc
41,737
Posted By linuxUser_
too tough question. :( I don't see any...
too tough question. :(
I don't see any condition to read the parameters in this format except functions :-o.
There is no rule to provide it like this
functions { planeDictName {
it can...
41,737
Posted By linuxUser_
Need help with sed/awk command
Dear all,

I have a file named as fileName with following entities,
functions
{
planeDictName
{
type surfaces;
functionObjectLibs ( "libsampling.so" );
...
Showing results 1 to 25 of 92

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