Search Results

Search: Posts Made By: rluo
Forum: Programming 01-09-2012
2,181
Posted By rluo
-Wall is already enabled. # gcc -fPIC...
-Wall is already enabled.

# gcc -fPIC -shared -Wall -o ldap_rhel.so ldap_test.c
ldap_test.c:58: error: expected identifier or â(â before string constant

Here is error line 58:
...
55 #ifdef...
Forum: Programming 01-06-2012
2,181
Posted By rluo
compile errors with gcc4.1.2 in rhel5.5
Hi All,

My test code ldap_test.c can be compiled successfully with gcc2.95.2. But not gcc 4.1.2 in redhat5.5. The command I used and the output are:

#gcc -fPIC -shared -o lib_ldap_rhel.so...
3,095
Posted By rluo
doesn't work....
# uname -a
SunOS 5.10 Generic_144488-06 sun4u sparc SUNW,Sun-Fire-V240
@:/opt/tools>
# echo "192.168.2.1.8088" | awk -F"." '{for(i=1;i<NF;i++) printf("%s%s",$i,i==NF-1?"\n":".")}'
awk: syntax...
3,095
Posted By rluo
how to get rid of all chars after the last decimal points
Hi All,

Here is my original string: 192.168.2.1.8088. The target string I want: 192.168.2.1, how can I use awk or sed or other command to get rid of .8088 in the string?

Thanks,
Ray
Showing results 1 to 4 of 4

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