compilation diff between aix & solaris

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers compilation diff between aix & solaris
# 1  
Old 02-07-2002
compilation diff between aix & solaris

what is the difference in awk stmt for awk in Aix & SOLARIS

for filename in $files

awk '   BEGIN {
        if ( FILENAME ~ ".*bad.trans.dsm" )
                code = "bad";
        else if ( FILENAME ~ ".*here.*.dsm" )
                code = "here";
                code = "unknown";

This works fine in aix but not in solaris

getting error in line 2 :


inserted code tags for readability --oombera

Last edited by oombera; 02-17-2004 at 12:41 AM..
# 2  
Old 02-07-2002
I think Solaris comes with several different awks... Look for others in /usr/contrib or (I think) /usr/xpg4 (maybe it's /usr/contrib/xpg4)...

Try using different versions of awk / nawk / oawk...
# 3  
Old 02-07-2002
compilation diff between aix & solaris

I dont find any diff in awk flavours.
awk is available in /usr/xpg4/bin in Solaris
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Gcc compilation problem on AIX 6.1

Hi, I have to compile a program on my server, runs on AIX 6.1. On my test server the compilation is ok (AIX 6.1); but when I try it on production server, I have this gcc prog.c -o prog_out In file included from resmon.c:111: /usr/include/unistd.h:924: error: expected ')' before ' I noticed... (1 Reply)
Discussion started by: tnjulius
1 Replies

2. Solaris

Which company's hardware is more stable, in case of IBM (AIX), HP (HPUX) & Sun (Solaris)

Hi guru I want to know which company's hardware is more stable means in term of H/W faults or replacement, in case of IBM (AIX), HP (HPUX) & SUN MICROSYSTEM (Solaris) & which order also, if we go through more stable to less stable system. Regards (1 Reply)
Discussion started by: girish.batra
1 Replies

3. UNIX and Linux Applications

AIDE on AIX. Problem with compilation.

I want install AIDE (AIDE - Advanced Intrusion Detection Environment) on AIX 5.3L # oslevel -qs | head Known Service Packs ------------------- 5300-09-02-0849 5300-09-01-0847 5300-09-00-0000 5300-08-05-0846 5300-08-04-0844 5300-08-03-0831 5300-08-02-0822 5300-08-01-0819 5300-07-07-0846... (1 Reply)
Discussion started by: jess_t03
1 Replies

4. Programming

Compilation error in C++ ::_Rb_tree_node_base& !!

Hi, I am getting the following compilation error in compiling the code : /**********************************/ Undefined first referenced symbol in file std::_Rb_tree_increment(std::_Rb_tree_node_base*)/var/tmp//ccZIgc70.o... (1 Reply)
Discussion started by: unisuraj
1 Replies

5. AIX

ProC and other C file compilation problem on AIX

I am linking my compiled proC file with other C files and getting following error. ld: 0711-711 ERROR: Input file /opt/orabase/oracle/product/10.2.0/db_1/lib/libirc.a is empty. The file is being ignored. I used following command to compile my proC code. proc iname=dbConnect.pc code=ANSI_C... (0 Replies)
Discussion started by: amit.singhal
0 Replies

6. UNIX for Dummies Questions & Answers

File compilation error on AIX

Hi All, I am successfully able to compile the file through gcc. At the time of compilling the file throught xlc, I am facing the following issues: 1) 1540-0836 (S) The #include file <multimap.h> is not found. 2) 1540-0836 (S) The #include file <pair.h> is not found. 3) ld: 0706-012 The... (0 Replies)
Discussion started by: Prajakta
0 Replies

7. Solaris

AIX & Solaris 10 problem

I have this command in my script and it's working fine with AIX: ls init?*.ora 2>/dev/null | egrep -i -e "" the same command is failing in Solaris 10. does anyone have better idea how to make it work for both ? Thanks (1 Reply)
Discussion started by: talashil
1 Replies

8. Shell Programming and Scripting

diff between ssh_config & sshd_config

Hi, Can anybody brief me the difference between ssh_config & sshd_config. I am looking for the functionality difference. any help appreciated Shihab (4 Replies)
Discussion started by: shihabvk
4 Replies

9. AIX

The infamous compilation of Apache + Resin on AIX

Hello All, I'm trying to compile Apache + Resin on AIX. This seems to be a major issue with the AIX system as I've come across so far. I was able to successfully compile the apache portion with the recommended compiler 3.3.2 after googling a bit. Once agian, I'm stuck with the resin portion.... (0 Replies)
Discussion started by: mvargas2012R
0 Replies

10. UNIX for Dummies Questions & Answers

diff between $TERM & $DISPLAY

Can anybody pls explain me the diff between $TERM & $DISPLAY ? Thanks in advance. (1 Reply)
Discussion started by: Venky
1 Replies
Login or Register to Ask a Question