- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- using awk
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2007 08:39 PM
тАО01-18-2007 08:39 PM
using awk
eg :
number1|number2,number3
number4|number5,number6,number7,
number8|number9,number10,number11,number12
i would like to produce a file with all the possible combinations
eg:
number1|number2|number3
number2|number1|number3
number3|number2|number1
number4|number5|number6|number7
number5|number4|number6|number7
number6|number5|number4|number7
number7|number5|number6|number4
and so on for the other with 5 elements.
Thanks in advance ..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2007 09:16 PM
- Tags:
- awk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2007 09:40 PM
тАО01-18-2007 09:40 PM
Re: using awk
can you please comment and let us know why this solution "didn't really help your problem" ? Seems to me a near perfect (formatting only ) match.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-18-2007 10:31 PM
тАО01-18-2007 10:31 PM
Re: using awk
First of all thanks for the reply..
What i am looking for is not the permutations of my numbers.
I triend to explain in the examples that i wrote above. i am looking to the script but i havent reached a solutions yet.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2007 12:06 AM
тАО01-19-2007 12:06 AM
Re: using awk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2007 01:10 AM
тАО01-19-2007 01:10 AM
Re: using awk
what was the solution ?
I like to regard the forums as a knowledge treasure, which relies on previous contributions. If in the future, somebody else needs a solution to a similar problem to yours, your comments can make all the difference!
Could you please detail your solution, so other people may benefit in future.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-19-2007 01:40 AM
тАО01-19-2007 01:40 AM
Re: using awk
The output from that script is:
$ sh ./permut1.awk 1 2 3
1 2 3
1 3 2
2 1 3
2 3 1
3 2 1
3 1 2
The output can be redirected to a file quite easily.
If this is not what you want, more explanation is in order.