Sponsored Content
Top Forums Shell Programming and Scripting Ordering HTML Drop Down List entries Alphabetically Post 302482284 by jedel on Tuesday 21st of December 2010 07:26:13 AM
Old 12-21-2010
Thanks, anurag.


One question though, how can I Get that to write to a file instead of the console?

I tried doing
Code:
.. <option#g' OutofOrderHTML > SortedHTML ..

which creates the new file, however it's not sorted :\
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Sort file alphabetically AND numerically

Hi all. I have 2 files like this: f1 A 10 B 80 C 9 f2 A 11 B 700 C 10 What I want is the concatenation of the two files sorted by name (alphabetically) and size (numerically), so the result should be like this: F3 (cat f1 f2 sorted) A 10 A 11 B 80 B 700 (2 Replies)
Discussion started by: mrodrig
2 Replies

2. UNIX for Dummies Questions & Answers

Drag and drop items in plain html page

Hello, Am looking for a tool / open source framework that could do the following. A plain html page, with some toolbox at the border of the page where the tool box contains individual tool that represents operation like "extend fleet", "add drives", "backtrack" or something of that sort. ... (1 Reply)
Discussion started by: matrixmadhan
1 Replies

3. Shell Programming and Scripting

Plain Text List to HTML List

Hello, I am trying to take a simple list (from echo, not a file) and turn it into a list with HTML codes. List item one. List item two. List item three. to <ol> <li>List item one.</li> <li>List item two.</li> <li>List item three.</li> </ol> The list is coming in via echo on... (4 Replies)
Discussion started by: QuestunAthority
4 Replies

4. Shell Programming and Scripting

Sort by numbers, then alphabetically

Hey guys, I have a file that contains the following: 366 K 364 Q 12 UB 7 INC. P 4 Law 2 LAMB 2 High 1 QEG 1 OF 1 LC 1 B As you can see, it's already sorted by numerical order, how do I sort it again, breaking the ties by using the alphabetical order of the second column, but... (2 Replies)
Discussion started by: Andrew9191
2 Replies

5. UNIX for Dummies Questions & Answers

List files/dirs alphabetically case sensitive - AaBbCc?

Hi there, im trying to list some dirs/files alphabetically (case sensitive) like in windows: Folder_1 folder_2 Folder 1 Folder 2 folder 3 A.txt a 1.txt a 2.txt B.txt ... i tried ls, sort, ls and sort but cant get it to work? Is this actually possible?? (im using #!/bin/sh) (3 Replies)
Discussion started by: nuttenlova
3 Replies

6. Shell Programming and Scripting

Sort alphabetically, then numerically

Greetings - I'm not necessarily new to bash scripting - I'm probably between beginner and intermediate, but I have something that I just cannot figure out after many attempts to find it. I have a file that is merely a list of many files, with their respective paths, and a branch path (ClearCase)... (5 Replies)
Discussion started by: 1cor29
5 Replies

7. UNIX for Dummies Questions & Answers

[Solved] Reverse the order of a list of file names (but not sort them alphabetically or numerically)

Hello all, I have a list of file names in a text document where each file name consists of 4 letters and 3 numbers (for example MACR119). There are 48 file names in the document (they are not in alphabetical or numerical order). I would like to reorder the list of names so that the 48th name is... (3 Replies)
Discussion started by: MDeBiasse
3 Replies

8. Shell Programming and Scripting

Using awk to sort a file alphabetically

I have a problem with my homework I need to create a shell script using #!bin/awk -f the script will output the file in an alphabetical order only words and after the word is : after that a space then , then it will be numbered each character by which line its been for example CB 92A A... (1 Reply)
Discussion started by: collapse
1 Replies

9. UNIX for Dummies Questions & Answers

Sort alphabetically starting from specified letter

Hi. I'm trying to sort a list of items in a file alphabetically but starting from the letter 'X'. For instance if I had the following file; test.txt Z A T W Y B S X I would like the output to look like; X Y (8 Replies)
Discussion started by: mmab
8 Replies

10. Shell Programming and Scripting

Bash - re-ordering list of parameters

Hello. I have a script that writes parameters in alphabetic order. But I have a parameter which have 3 lines. There is no continuation character ( '\' ). Each of the three lines finish with 'cr'. But line 2 and 3 of the concerning parameter start with a tab char (but should be one or more... (7 Replies)
Discussion started by: jcdole
7 Replies
Perlanet(3pm)						User Contributed Perl Documentation					     Perlanet(3pm)

NAME
Perlanet - A program for creating programs that aggregate web feeds (both RSS and Atom). SYNOPSIS
my $perlanet = Perlanet->new; $perlanet->run; DESCRIPTION
Perlanet is a program for creating programs that aggregate web feeds (both RSS and Atom). Web pages like this are often called "Planets" after the Python software which originally popularised them. Perlanet is a planet builder written in Perl - hence "Perlanet". You are probably interested in Perlanet::Simple to get started straight out of the box, batteries included style. Perlanet itself is the driving force behind everything, however. Perlanet reads a series of web feeds (filtering only those that are valid), sorts and selects entries from these web feeds, and then creates a new aggregate feed and renders this aggregate feed. Perlanet allows the user to customize all of these steps through subclassing and roles. For most uses, you probably don't want to use the Perlanet module. The perlanet command line program is far more likely to be useful. CONSTRUCTOR
new my $perlanet = Perlanet->new The constructor method. Can be passed a hashref of initialisers. See "ATTRIBUTES" below for details of the key/value pairs to pass in. ATTRIBUTES
ua An instance of LWP::UserAgent. Defaults to a simple agent using "$cfg->{agent}" as the user agent name, or " Perlanet/$VERSION ". cutoff An instance of DateTime which represents the earliest date for which feed posts will be fetched/shown. feeds An arrayref of Perlanet::Feed objects representing the feeds to collect data from. METHODS
fetch_page Attempt to fetch a web page and a returns a URI::Fetch::Response object. fetch_feeds Called internally by "run" and passed the list of feeds in "feeds". Attempt to download all given feeds, as specified in the "feeds" attribute. Returns a list of Perlanet::Feed objects, with the actual feed data loaded. NB: This method also modifies the contents of "feeds". select_entries Called internally by "run" and passed the list of feeds from "fetch_feeds". Returns a combined list of Perlanet::Entry objects from all given feeds. sort_entries Called internally by "run" and passed the list of entries from "select_entries". Sort the given list of entries into created/modified order for aggregation, and filters them if necessary. Takes a list of Perlanet::Entrys, and returns an ordered list. build_feed Called internally by "run" and passed the list of entries from "sort_entries". Takes a list of Perlanet::Entrys, and returns a Perlanet::Feed that is the actual feed for the planet. clean_html Clean a HTML string so it is suitable for display. Takes a HTML string and returns a "cleaned" HTML string. clean_entries Clean all entries for the planet. Takes a list of entries, runs them through "clean" and returns a list of cleaned entries. render Called internally by "run" and passed the feed from "build_feed". This is the hook where you generate some type of page to display the result of aggregating feeds together (ie, inserting the posts into a database, running a HTML templating library, etc) Takes a Perlanet::Feed as input (as generated by build_feed. run The main method which runs the perlanet process. TO DO
See http://wiki.github.com/davorg/perlanet SUPPORT
There is a mailing list which acts as both a place for developers to talk about maintaining and improving Perlanet and also for users to get support. You can sign up to this list at http://lists.mag-sol.com/mailman/listinfo/perlanet <http://lists.mag- sol.com/mailman/listinfo/perlanet> To report bugs in Perlanet, please use the CPAN request tracker. You can either use the web page at <http://rt.cpan.org/Public/Bug/Report.html?Queue=Perlanet> or send an email to bug-Perlanet@rt.cpan.org. SEE ALSO
o perlanet o Plagger AUTHOR
Dave Cross, <dave@mag-sol.com> COPYRIGHT AND LICENSE
Copyright (c) 2010 by Magnum Solutions Ltd. This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available. perl v5.14.2 2012-03-17 Perlanet(3pm)
All times are GMT -4. The time now is 03:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy