having massive trouble with 5 questions about egrep!
Hi all! I need help to do a few things with a .txt file using egrep.
1. I need to list all sequences where the vowel letters 'a, e, i, o, u' occur in that order, possibly separated by characters other than a, e, i, o, u; consisting of one or more complete words, possibly including punctuation.
2. I need to list all lines where a 'word' is immediately repeated, ignoring any differences in case, and any intervening punctuation (i.e. "you. You" counts in this case).
3. List all words containing the longest possible cluster of consonants (^aeiouy) in the file.
4. I need to count the number of 'words' in the file.
5. I then need to sort these words in alphabetical order, then determine how many unique words are used in the text (the "vocabulary").
Can anybody please help me with this? I'm sorry if these seem to be very elementary questions - it's 2.15am and I'm braindead, and I've done 20 of the 25 questions without issue. These ones just have me stumped for some reason! Thanks for your help
University of Sydney, NSW, Australia, Dr Jason Johnston, LNGS2613
On your course, what Operating System and version are you using, and and what Shell are you using?
Hints:
1) Read up on Regular Expressions
Build your RE bit by bit and test it each time.
For hints on the rest, please post what relevant unix commands you know against each question. I don't believe that you can solve 2)-5) with just egrep.
You will get a better response to this type of question if you post what you tried (with sample data), your expected output, and you actual output complete with error messages verbatim.
friends
good morning
FTP works perfect but I have a doubt
if I want to transport 10 files, I imagine that I should not open 10 connections as I can transfer more than 1 file?
ftp -n <<!EOF
open caburga
user ephfact ephfact
cd /users/efactura/docONE/entrada
bin
mput EPH`date... (16 Replies)
I found that there was a SMF log file: /var/svc/log/milestone-multi-user-server:default.log.0 which occupied around 19G bytes.
Please help me how to purge this massive file.
Can I just use cat /dev/null > /var/svc/log/milesto..... to this file without any interruption to a non-stop system?... (11 Replies)
I have a script that I am using to copy around 40-70k files to a NFS NAS.
I have posted my code below in hopes that someone can help me figure out a faster way of achieving this.
At the end of the script i need to have all the files in the list, copied over to the nas with source directory... (8 Replies)
Hi, I have 7 terabytes of tar files, one for every single day since 1980. Inside these tar files are GRIB files, each with 100+ variables. There's 8 GRIBs in each tar, corresponding to different times of the day. I need 6 friggin variables..., and it takes TWO WEEKS TO EXTRACT ALL THE TAR FILES... (3 Replies)
Hi
We have 50 million records in mainframes DB2. We have a requirement to Record the Change Data Capture(CDC) records.
i.e New Records or Updated Records that were added into the DB2.
Unfortunately we dont have any column indicators to give the details of the changes made to the records.
... (8 Replies)
How can I send a message for all the users connected into the system at the same time? Let's say I need to reboot the server and I ask the users to save their jobs becasue the server will be rebooted? (5 Replies)
Hi I've been searching google and have not found what egrep -c means. Does anyone know where I can get a cheat sheet or what that -c means?
thanks,
Linda (2 Replies)