Records mismatch while sorting in MPRAS and SunOS


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Records mismatch while sorting in MPRAS and SunOS
# 1  
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..
# 2  
Old 07-02-2008
Question Plz let me know if u have any doubts regarding my problem.

Please post replies if you are not able to understand the above question. I'll try to make it more clear if u hav any doubts.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question