Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: dhanamurthy
Forum: Programming 06-26-2008
13,144
Posted By dhanamurthy
64-Bit gcc Compilation
Hi All
I have a question on the compilation

Assume i am working on 64 bit Linux OS.

i am making shared objects and libraries required for our project.
Can i compile 32 bit libraries using gcc...
1,713
Posted By dhanamurthy
Hi Any thoughts on this problem? Regards ...
Hi
Any thoughts on this problem?

Regards
Dhana
1,713
Posted By dhanamurthy
Hi I have the lib file available (not missing)...
Hi
I have the lib file available (not missing) libblk.a. But i am trying to find out the incompatibility?

Regards
Dhanan
1,713
Posted By dhanamurthy
Make file compilation
Hi
I am getting the message

/usr/bin/ld: skipping incompatible /opt/sybase/01/OCS-12_5/lib/libblk.a when searching for -lblk
/usr/bin/ld: cannot find -lblk
collect2: ld returned 1 exit status...
Forum: Linux 06-26-2008
2,058
Posted By dhanamurthy
Make file compilation
Hi
I am getting the message

/usr/bin/ld: skipping incompatible /opt/sybase/01/OCS-12_5/lib/libblk.a when searching for -lblk
/usr/bin/ld: cannot find -lblk
collect2: ld returned 1 exit status...
2,751
Posted By dhanamurthy
Libraries which are required to compile/link your...
Libraries which are required to compile/link your program is not specified in the make file.
Can you copy the last few lines of your output of make file?

Regards
Dhana
2,860
Posted By dhanamurthy
Please modify the example awk '{ ...
Please modify the example

awk '{
key=substr($0,1,10)
key1=substr($0,1,21)
if(arr[key])
{

arr[key]=1
}
else
...
2,139
Posted By dhanamurthy
Just a refinement in the above script echo...
Just a refinement in the above script

echo "Enter your choice :\c"
read num
#if [ $num -gt 0 -a $num -lt 101 ]; then ->Can remove this if not needed
"${TEST_HOME}"/ctrl_extract.ksh $num;
#fi...
11,442
Posted By dhanamurthy
$ A=/bb/data/f233pdb $ c=`basename $A` $ echo...
$ A=/bb/data/f233pdb
$ c=`basename $A`
$ echo $c
f233pdb
$ d=`dirname $A`
$ echo $d
/bb/data
Forum: Programming 05-23-2008
5,364
Posted By dhanamurthy
Hi This helps. But a concern here is that i...
Hi
This helps.
But a concern here is that i need to put a while loop in place for reading the bulk characters until i come across "\n" character as my aim is to get line by line from the file.
...
Forum: Programming 05-23-2008
5,364
Posted By dhanamurthy
HI read(fd, buffer, n_to_read) I am trying...
HI
read(fd, buffer, n_to_read)
I am trying to use the above call, but i will not be able to read the entire line as i will not now the length of the line before hand.

This part is little tricky...
Forum: Programming 05-22-2008
5,364
Posted By dhanamurthy
Definitely C/C++ is faster than Shell Script. ...
Definitely C/C++ is faster than Shell Script.
Can you explain how fread is faster because i am going to read line by line only.


Regards
Kuttalaraj
Forum: Programming 05-22-2008
5,364
Posted By dhanamurthy
File - reading - Performance improvement
Hi All
I am reading a huge file of size 2GB atleast. I am reading each line and cutting certain columns and writing it to another file.

Here is the logic.

int main()
{

string...
Forum: Programming 05-19-2008
15,452
Posted By dhanamurthy
equivalent of sprintf in C++
Hi
My requirement is to convert the following to C++

char buffer[90];
sprintf(buffer,"%s %-50s %6s %-6d %s\n",a.substr(0,5),a.substr(10,20))

Since the buffer is of varying length, i cannot...
6,939
Posted By dhanamurthy
Python - Scan for string
Hi
i have a variable 'reform' and store the lines like

reform= {
record
string(8) ID;
string(4) PRD;
date("YYMMDD", split = "800101") DateofManufact;
string(4) PRDC_MODULE_NUM;
...
13,099
Posted By dhanamurthy
Hi This works fine awk '/^\*\*\*/ { printf...
Hi

This works fine
awk '/^\*\*\*/ { printf "%s %s\n",substr($0,4,5), substr($0,9,4) }' file

Thanks Penchal

Also the last thread which uses sed will not help much as you are hardcoding 0's...
13,099
Posted By dhanamurthy
Hi The awk looks good to me and i tried...
Hi
The awk looks good to me and i tried changing on it

awk '/^\*\*\*/ { printf "%s %s\n",substr($1,4,5), substr($1,9,4) }' < filename

if my file has the following inputs

***BRRAA0067**...
13,099
Posted By dhanamurthy
cut - output in formatted way
Hi
I got the output as below

$ sed -n '/^*/!d;s/\*\*\*\([A-Z]*\)\([0-9]*\)/\1 \2/p' filename

TEST1 0067*01
TEST2 0081*02
TEST3 0088*03

I need only
TEST1 0067
TEST2 0081
TEST3 0088
...
13,099
Posted By dhanamurthy
cut - columns with formatted Output
Hi
I have the input file as below
***TEST10067
00567GROSZ 099
00567CTCTSDS90
***TEST20081
08233GROZWEWE
00782GWERW899
***TEST30088
08233GROZWEWE
00782GWERW899
I am finding the lines...
13,899
Posted By dhanamurthy
Awk - Grouping Lines
Hi All

I have the input file as

INFOR00028114 GRAINS BAKERY 4000
INFOR00028114 GRAINS BAKERY 4000
INFOR00028114 GRAINS BAKERY 4000
INFOR0009183-RIVERS...
13,899
Posted By dhanamurthy
awk - counting number of similar lines
Hi
Thanks for the information provided.
I read the source code that you have proivded. For eg I have the below said data.

SIZEC000002EXCLUDE 1341
SIZEC000002EXCLUDE ...
13,899
Posted By dhanamurthy
awk - Counting number of similar lines
Hi All

I have the input file OMAK_11.

OMAK 000002EXCLUDE 1341
OMAK 000002EXCLUDE 1341
OMAK 000002EXCLUDE 1341
OMAK...
2,758
Posted By dhanamurthy
sorting huge file
Hi
I was able to run successfully when i set the variable TMPDIR to a location where the space is available.

Thanks for the information.

Regards
Dhana
2,758
Posted By dhanamurthy
sorting huge file
Hi All
I am sorting a huge file

-rw-r--r-- 1 rama users 448156978 May 13 18:48 102384.temp

$ sort -k 1,40n 102384.temp > 102384.temp1

msgcnt 1468 vxfs: mesg 001: vx_nospace -...
37,532
Posted By dhanamurthy
grep in awk
HI
Thank you so much for your patience and ideas.
It did work perfectly.

Regards
Dhana
Showing results 1 to 25 of 102

 

Featured Tech Videos

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