Sponsored Content
Homework and Emergencies Homework & Coursework Questions word ordering problem HELP please (linux) Post 302385926 by Lili on Sunday 10th of January 2010 05:05:06 PM
Old 01-10-2010
word ordering problem HELP please (linux)

Hi guys I need you ,please help me
i have to do this for tomorow and i don't understand how to do

Q1 : Order the words of RADIO.txt by frequency
Q2 : Order the words of RADIO.txt in alphabétique order
Q3 : Order the words of RADIO.txt par ordre "rhymique" (exemple, put togeder words which are finishing by "-ment". we can use "rev"

P.S the content of RADIOS.txt is for example:
patricia martin que voici que voilа oh bonjour nicolas stoufflet france-inter sept heures le journal simon tivolle bonjour lundi sept dйcembre
deux incendies cette nuit en rйgion_parisienne dans une maison de retraite de livry-gargan en seine-saint-denis sept personnes ont pйri dans les flammes
et puis dans le neuviиme arrondissement de paris le feu a pris dans un immeuble d' habitation et trois personnes ont йtй tuйes le sculpteur cйsar est dйcйdй hier а l' вge de soixante dix-sept ans il йtait devenu cйlиbre grвce а ses compressions et а ses oeuvres rйalisйes avec de la ferraille
france-inter ouvre son antenne а la chaоne de l' espoir pour aider les enfants malades qui n' ont pas les moyens de se soigner la chaоne de l' espoir association de mйdecins et de bйnйvoles a dйjа sauvй cinq mille enfants
le quarante quatriиme congrиs de la cfdt s' ouvre aujourd'hui а lille un congrиs de la dйcrispation et puis ouverture aussi aujourd'hui des discussions а la sncf entre les syndicats et la direction
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

proper ordering of o/p values

Hi, Below is my script which creates a file: #!/bin/sh if then echo "Enter bill period " echo "Syntax: sh cpd.sh G08" exit fi sqlplus uname/pwd@dbname <<EOF set WRAP off set FEEDBACK off set PAGESIZE 0 set VERIFY off (14 Replies)
Discussion started by: ss_ss
14 Replies

2. Shell Programming and Scripting

File ordering by portion of filename

Hi, Lets say I have a few xml files: 1234567894.xml abc_1234567895.xml abc_000_1234567890.xml abc_0000000_1234567893.xml 684_abc_000_1234567899.xml The naming convention of the files is: xxxxx_timestamp.xml OR timestamp.xml where x can be anything and I would like to order them by... (4 Replies)
Discussion started by: Leion
4 Replies

3. Shell Programming and Scripting

ordering a data file

With an input file like this: How can I get an output like this? (In the quoted examples, the "_" sign represents an empty space) Note that there are some minus signs and no spaces, in the example above the first character of the first line is an empty space, so each number spans 10... (16 Replies)
Discussion started by: lego
16 Replies

4. Shell Programming and Scripting

Appending lines with word frequencies, ordering and indexing a column

Dear All, I have the following input data: w1 20 g1 w1 10 g1 w2 12 g1 w2 23 g1 w3 10 g1 w3 17 g1 w3 12.5 g1 w3 21 g1 w4 11 g1 w4 13.2 g1 w4 23 g1 w4 18 g1 First I seek to find the word frequencies in col1 and sort col2 in ascending order for each change in a col1 word. Second,... (5 Replies)
Discussion started by: Ghetz
5 Replies

5. Shell Programming and Scripting

Re-ordering data

input Predictions for job: 1299399580 ********************************************** gg18_qqq10_100017878_100017978_- ============================================================================== zzz Factor: XXX, ttt: crsmsgw, Cutoff: 0.6429 seqe Position fff Coordinate K-mer Score ... (3 Replies)
Discussion started by: quincyjones
3 Replies

6. Shell Programming and Scripting

Re ordering lines - Awk

Is it possible to re-order certain rows as columns (of large files). Few lines from the file for reference. input Splicing Factor: Tra2beta, Motif: aaguguu, Cutoff: 0.5000 Sequence Position Genomic Coordinate K-mer Score 97 chr1:67052604 uacuguu 0.571 147... (3 Replies)
Discussion started by: quincyjones
3 Replies

7. UNIX for Dummies Questions & Answers

Find EXACT word in files, just the word: no prefix, no suffix, no 'similar', just the word

I have a file that has the words I want to find in other files (but lets say I just want to find my words in a single file). Those words are IDs, so if my word is ZZZ4, outputs like aaZZZ4, ZZZ4bb, aaZZZ4bb, ZZ4, ZZZ, ZyZ4, ZZZ4.8 (or anything like that) WON'T BE USEFUL. I need the whole word... (6 Replies)
Discussion started by: chicchan
6 Replies

8. Shell Programming and Scripting

ordering

file1 1 SNP2 3 1 SNP3 3 1 SNP5 4 2 SNP1 4 2 SNP4 4 file2 SNP1 1 1 1 SNP5 5 5 5 SNP4 4 4 4 SNP2 2 2 2 SNP3 1 1 1 desired output (1 Reply)
Discussion started by: johnkim0806
1 Replies

9. Shell Programming and Scripting

Random ordering

1 2 4 5 3 I would like to use a script so that i can randomly rearrange these numbers such as 3 5 2 4 1 Thanks! (3 Replies)
Discussion started by: johnkim0806
3 Replies

10. Shell Programming and Scripting

Ordering batch number

Hi, Could some one please help to order the batch number in sequence. I will be getting bunch of files with batch number in folder1 which are not in sequence. I need to move all files from folder1 to folder2 with batch number in sequence. Header record looks like PROCESS1... (8 Replies)
Discussion started by: zooby
8 Replies
Date::Manip::Lang::french(3)				User Contributed Perl Documentation			      Date::Manip::Lang::french(3)

NAME
Date::Manip::Lang::french - French language support. SYNOPSIS
This module contains a list of words and expressions supporting the language. It is not intended to be used directly (other Date::Manip modules will load it as needed). LANGUAGE EXPRESSIONS
The following is a list of all language words and expressions used to write times and/or dates. All strings are case insensitive. Month names and abbreviations When writing out the name of the month, several different variations may exist including full names and abbreviations. The following month names may be used: janvier fevrier fevrier mars avril mai juin juillet aout aout septembre octobre novembre decembre decembre The following abbreviations may be used: jan jan. fev fev fev. fev. mar mar. avr avr. mai mai. juin juin. juil juil. aout aout aout. aout. sept sept. oct oct. nov nov. dec dec dec. dec. Day names and abbreviations When writing out the name of the day, several different variations may exist including full names and abbreviations. The following day names may be used: lundi mardi mercredi jeudi vendredi samedi dimanche The following abbreviations may be used: lun lun. mar mar. mer mer. jeu jeu. ven ven. sam sam. dim dim. The following short (1-2 characters) abbreviations may be used: l ma me j v s d Delta field names These are the names (and abbreviations) for the fields in a delta. There are 7 fields: years, months, weeks, days, hours, minutes, seconds. The names and abbreviations for these fields are: annees annees an annee ans annee mois m semaine sem jours j jour journee journee heures h heure minutes mn min minute secondes s sec seconde Morning/afternoon times This is a list of expressions use to designate morning or afternoon time when a time is entered as a 12-hour time rather than a 24-hour time. For example, in English, the time "17:00" could be specified as "5:00 PM". Morning and afternoon time may be designated by the following sets of words: du matin du soir Each or every There are a list of words that specify every occurence of something. These are used in the following phrases: EACH Monday EVERY Monday EVERY month The following words may be used: chaque tous les toutes les Next/Previous/Last occurence There are a list of words that may be used to specify the next, previous, or last occurence of something. These words could be used in the following phrases: NEXT week LAST tuesday PREVIOUS tuesday LAST day of the month The following words may be used: Next occurence: suivant suivante prochaine Previous occurence: precedent precedent precedente precedente derniere derniere Last occurence: dernier Delta words for going forward/backward in time When parsing deltas, there are words that may be used to specify the the delta will refer to a time in the future or to a time in the past (relative to some date). In English, for example, you might say: IN 5 days 5 days AGO The following words may be used to specify deltas that refer to dates in the past or future respectively: il y a auparavant dans le passe plus tot plus tot en plus tard dans l'avenir a venir a venir dans Business mode This contains two lists of words which can be used to specify a standard (i.e. non-business) delta or a business delta. Previously, it was used to tell whether the delta was approximate or exact, but now this list is not used except to force the delta to be standard. The following words may be used: exactement approximativement environ The following words may be used to specify a business delta: professionel ouvrable ouvrables Numbers Numbers may be spelled out in a variety of ways. The following sets correspond to the numbers from 1 to 53: 1er 1re premier un 2e deux deuxieme deuxieme 3e trois troisieme troisieme 4e quatre quatrieme quatrieme 5e cinq cinquieme cinquieme 6e six sixieme sixieme 7e sept septieme septieme 8e huit huitieme huitieme 9e neuf neuvieme neuvieme 10e dix dixieme dixieme 11e onze onzieme onzieme 12e douze douzieme douzieme 13e treize treizieme treizieme 14e quatorze quatorzieme quatorzieme 15e quinze quinzieme quinzieme 16e seize seizieme seizieme 17e dix-sept dix-septieme dix-septieme 18e dix-huit dix-huitieme dix-huitieme 19e dix-neuf dix-neuvieme dix-neuvieme 20e vingt vingtieme vingtieme 21e vingt et un vingt et unieme vingt et unieme 22e vingt-deux vingt-deuxieme vingt-deuxieme 23e vingt-trois vingt-troisieme vingt-troisieme 24e vingt-quatre vingt-quatrieme vingt-quatrieme 25e vingt-cinq vingt-cinquieme vingt-cinquieme 26e vingt-six vingt-sixieme vingt-sixieme 27e vingt-sept vingt-septieme vingt-septieme 28e vingt-huit vingt-huitieme vingt-huitieme 29e vingt-neuf vingt-neuvieme vingt-neuvieme 30e trente trentieme trentieme 31e trente et un trente et unieme trente et unieme 32e trente-deux trente-deuxieme trente-deuxieme 33e trente-trois trente-troisieme trente-troisieme 34e trente-quatre trente-quatrieme trente-quatrieme 35e trente-cinq trente-cinquieme trente-cinquieme 36e trente-six trente-sixieme trente-sixieme 37e trente-sept trente-septieme trente-septieme 38e trente-huit trente-huitieme trente-huitieme 39e trente-neuf trente-neuvieme trente-neuvieme 40e quarante quarantieme quarantieme 41e quarante et un quarante et unieme quarante et unieme 42e quarante-deux quarante-deuxieme quarante-deuxieme 43e quarante-trois quarante-troisieme quarante-troisieme 44e quarante-quatre quarante-quatrieme quarante-quatrieme 45e quarante-cinq quarante-cinquieme quarante-cinquieme 46e quarante-six quarante-sixieme quarante-sixieme 47e quarante-sept quarante-septieme quarante-septieme 48e quarante-huit quarante-huitieme quarante-huitieme 49e quarante-neuf quarante-neuvieme quarante-neuvieme 50e cinquante cinquantieme cinquantieme 51e cinquante et un cinquante et unieme cinquante et unieme 52e cinquante-deux cinquante-deuxieme cinquante-deuxieme 53e cinquante-trois cinquante-troisieme cinquante-troisieme Ignored words In writing out dates in common forms, there are a number of words that are typically not important. There is frequently a word that appears in a phrase to designate that a time is going to be specified next. In English, you would use the word AT in the example: December 3 at 12:00 The following words may be used: a a Another word is used to designate one member of a set. In English, you would use the words IN or OF: 1st day OF December 1st day IN December The following words may be used: de en du Another word is use to specify that something is on a certain date. In English, you would use ON: ON July 5th The following words may be used: sur Words that set the date, time, or both There are some words that can be used to specify a date, a time, or both relative to now. Words that set the date are similar to the English words 'yesterday' or 'tomorrow'. These are specified as a delta which is added to the current time to get a date. The time is NOT set however, so the delta is only partially used (it should only include year, month, week, and day fields). The following words may be used: aujourd'hui 0:0:0:0:0:0:0 demain +0:0:0:1:0:0:0 hier -0:0:0:1:0:0:0 Words that set only the time of day are similar to the English words 'noon' or 'midnight'. The following words may be used: midi 12:00:00 minuit 00:00:00 Words that set the entire time and date (relative to the current time and date) are also available. In English, the word 'now' is one of these. The following words may be used: maintenant 0:0:0:0:0:0:0 Hour/Minute/Second separators When specifying the time of day, the most common separator is a colon (:) which can be used for both separators. Some languages use different pairs. For example, French allows you to specify the time as 13h30:20, so it would use the following pairs: : : [h] [:] The first column is the hour-minute separator and the second column is the minute-second separator. Both are perl regular expressions. A pair of colons is ALWAY allowed for all languages. If a language allows additional pairs, they are listed here: [h] [:] KNOWN BUGS
None known. BUGS AND QUESTIONS
Please refer to the Date::Manip::Problems documentation for information on submitting bug reports or questions to the author. SEE ALSO
Date::Manip - main module documentation LICENSE
This script is free software; you can redistribute it and/or modify it under the same terms as Perl itself. AUTHOR
Sullivan Beck (sbeck@cpan.org) perl v5.16.3 2014-06-09 Date::Manip::Lang::french(3)
All times are GMT -4. The time now is 12:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy