Sponsored Content
Top Forums UNIX for Advanced & Expert Users Records mismatch while sorting in MPRAS and SunOS Post 302210877 by RRVARMA on Wednesday 2nd of July 2008 07:19:05 AM
Old 07-02-2008
Question Records mismatch while sorting in MPRAS and SunOS

Hi,

As part of migrating a script from SunOS to MP RAS, the following script is not functioning in desired way.

Code:
sort -t\| -u +6 -7 +12 -14 textfile1.out > \
        textfile2uniq.out

The -u is fetching unique records differently on SunOS and MP RAS Pentium IV. And thus the records are mismatching. The file "textfile1.out" is same for both OS.
I'm not supposed to change the fields that is being sorted.

Could anyone please tell me how to get out of this problem. Atleast give me some clues. Smilie

Thank you,
RRVARMA

Last edited by RRVARMA; 07-02-2008 at 08:27 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Migration of binary file from Sunos 5.8 to Sunos 5.9

I have compiled binary file using "cc" on SunOS 5.8 and the same binary file i have copied to SunOS 5.9 and it is giving me core dump error.I want to know whether migration of compiled code from lower version to higer version created this problem. how can i solve this problem.I am pasting the core... (1 Reply)
Discussion started by: Arvind Maurya
1 Replies

2. UNIX for Dummies Questions & Answers

unrar on MPRAS (UNIX)

I am wanting to compile unrar on our MPRAS UNIX system. The currently available source (from www.rarlab.com) does not support this system and I am not sure how to configure the makefile to work. Has anyone been able to get this to work on MPRAS and can supply me with some direction? Thanks... (0 Replies)
Discussion started by: Mr C
0 Replies

3. Shell Programming and Scripting

Sorting problem (SunOS 5.9 / KSH).

Hi, Can someone tell me why the "LargeFile" is coming first before the smaller files. Is there any way to list the files based on size column. ls -g| sort -k 4 -rw-r--r-- 1 user 6117910528 Apr 28 15:04 LargeFile -rw-r--r-- 1 user 6136832 May 30 07:23 my_20080530.tar -rw-r--r-- ... (2 Replies)
Discussion started by: kesari
2 Replies

4. UNIX for Dummies Questions & Answers

malloc returning NULL if freemem high & swapmem low (MPRAS version 3.03 )

Hi All,:) In my application malloc is returning NULL even though there is sufficient amount of free memory available but the swap memory is low. Is this possible that, if free memory is high & swap memory is low, malloc will not be able to allocate memory & return NULL ? Few details: ... (4 Replies)
Discussion started by: Ritesh Kumar
4 Replies

5. Shell Programming and Scripting

Based on num of records in file1 need to check records in file2 to set some condns

Hi All, I have two files say file1 and file2. I want to check the number of records in file1 and if its atleast 2 (i.e., 2 or greater than 2 ) then I have to check records in file2 .If records in file2 is atleast 1 (i.e. if its not empty ) i have to set some conditions . Could you pls... (3 Replies)
Discussion started by: mavesum
3 Replies

6. UNIX for Dummies Questions & Answers

Mpras

Hi, I want information on MPRAS machines. I dont know anything about that. Please provide more details if possible. thanks in advance. (1 Reply)
Discussion started by: amult
1 Replies

7. Shell Programming and Scripting

Sorting the records in the Flat file

Hi all, I am using this command "sort -d -u -k1 IMSTEST.74E -o tmp.txt" to the records in the flat. Can any tell me how to sort the file except first line in the file For ex: i/p First line: DXYZ Second line : jumy third : cmhk fourth : andy Output should... (5 Replies)
Discussion started by: sudhir_barker
5 Replies

8. Shell Programming and Scripting

Sorting the records for a file

hi, Please suggest me how to do this logic say i am dynamically taking a file name into the script. when ever a file name it should sort the all the records based on the first character in every line except the heading line and ending line. for example file1 heading... (1 Reply)
Discussion started by: angel12345
1 Replies

9. Shell Programming and Scripting

Sorting group of records and loading last record

Hi Everyone, I have below record set. File is fixed widht file 101newjersyus 20150110 101nboston us 20150103 102boston us 20140106 102boston us 20140103 I need to group record based on first 3 letters in our case(101 and 102) and sort last 8 digit in ascending order and print only... (4 Replies)
Discussion started by: patricjemmy6
4 Replies

10. Shell Programming and Scripting

Sorting a file of book records

I have a texinfo file containing book records and I want to sort them. An example is shown below. Records are separated by two blank lines. The sort pattern I want to sort is starting from the beginning of the year declaration and finishing at the beginning of the book title where I use the... (4 Replies)
Discussion started by: Danette
4 Replies
COMPAT_SUNOS(8) 					    BSD System Manager's Manual 					   COMPAT_SUNOS(8)

NAME
compat_sunos -- setup procedure for m68k, sparc and sparc64 architectures DESCRIPTION
NetBSD/sparc64, NetBSD/sparc and some of the NetBSD/m68k architectures can run SunOS executables. Most executables will work. The exceptions include programs that use the SunOS kvm library, and various system calls, ioctl()'s, or kernel semantics that are difficult to emulate. The number of reasons why a program might fail to work is (thankfully) longer than the number of programs that fail to run. Static executables will normally run without any extra setup. This procedure details the directories and files that must be set up to allow dynamically linked executables to work. The files you need are on your SunOS machine. You need to worry about the legal issues of ensuring that you have a right to use the required files on your machine. On your NetBSD machine, do the following: 1. mkdir -p /emul/sunos/usr/lib /emul/sunos/usr/5lib 2. cp SunOS:/usr/lib/lib*.so.*.* NetBSD:/emul/sunos/usr/lib 3. cp SunOS:/usr/5lib/lib*.so.*.* NetBSD:/emul/sunos/usr/5lib 4. cp SunOS:/usr/lib/ld.so NetBSD:/emul/sunos/usr/lib/ld.so 5. If you ever expect to use YP, you will want to create a link: ln -s /var/run/ypbind.lock /etc/ypbind.lock Alternatively, you can use an NFS mount to accomplish the same effect. On your NetBSD machine, do the following: 1. mkdir -p /emul/sunos/usr 2. mount SunOS:/usr /emul/sunos/usr This will place the SunOS libraries on your NetBSD machine in a location where the SunOS compatibility code will look for first, where they do not conflict with the standard libraries. NOTES
When using compat_sunos on NetBSD/sparc64, the COMPAT_NETBSD32 option must also be used. BUGS
A list of things which fail to work in compatibility mode should be here. SunOS executables can not handle directory offset cookies > 32 bits. Should such an offset occur, you will see the message ``sunos_getdents: dir offset too large for emulated program''. Currently, this can only happen on NFS mounted filesystems, mounted from servers that return offsets with information in the upper 32 bits. These errors should rarely happen, but can be avoided by mounting this filesystem with offset translation enabled. See the -X option to mount_nfs(8). The -2 option to mount_nfs(8) will also have the desired effect, but is less preferable. The NetBSD/sparc64 support is less complete than the other ports. BSD
February 3, 2001 BSD
All times are GMT -4. The time now is 10:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy