Home » Infrastructure » Unix » shell script
shell script [message #504320] Sat, 23 April 2011 11:35 Go to next message
forroughuse
Messages: 26
Registered: November 2010
Location: us
Junior Member
Hi All,

I need urgent help in UNIX

I have a file which can content in any order.
For example: file1.txt has:

Age|Name|Sal|Comm
21|Raj|20000|100
20|Donald|1000|0
18|Steve|80000|5000
.
.

The file can have data in any order, i.e. file1.txt can have data also as:

Sal|Age|Name|Comm
20000|21|Raj|100
1000|20|Donald|0
80000|18|Steve|5000

the first line is header.
The file1.txt data should be always in following order:

Name|Age|Sal|Comm
Raj|21|20000|100
Donald|20|1000|0
Steve|18|80000|5000

Can some1 please help me in this urgently.
Many thanks in advance
Re: shell script [message #504323 is a reply to message #504320] Sat, 23 April 2011 12:10 Go to previous message
Michel Cadot
Messages: 68625
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
If this is urgent you should post this in a Unix forum and not an Oracle one.

This question bears no real connection with Oracle.
Please find a more appropriate forum.
The topic is locked.
If I'm wrong, please, PM me (or report this message to a moderator, explain why you think it should be unlocked and it might be done).

Regards
Michel
Previous Topic: How to Find Out Session Consuming memory on HP-UX database server
Next Topic: crontab usage
Goto Forum:
  


Current Time: Fri Mar 29 05:16:30 CDT 2024