Search Results

Search: Posts Made By: eldeingles
1,867
Posted By eldeingles
Kudos!
Kudos for you, RudiC!
1,867
Posted By eldeingles
Yes, the offending lines become less numerous as...
Yes, the offending lines become less numerous as I run the code and process again the resulting lines. It works perfect for me!

Thanks again RudiC!

Shall we close the thread?

------ Post...
1,867
Posted By eldeingles
Files
Here is the non-blanked out words file.
1,867
Posted By eldeingles
Screenshot
Yes, always the same words.
1,867
Posted By eldeingles
Worked like magic! ------ Post updated at...
Worked like magic!

------ Post updated at 04:51 AM ------

Final result: approx 1200 words didn't come out with any letter blanked out out of a total of 48k. I can't see any patterns or...
1,867
Posted By eldeingles
That's what I would need to be incorporated into...
That's what I would need to be incorporated into an Excel sheet.

A ransom ... has been made for the kidnapped racehorse. \t _ _ m _ nd
A third of the country's population is of mixed racial ......
1,867
Posted By eldeingles
Wow, RudiC, that's awesome! A final thought:...
Wow, RudiC, that's awesome!
A final thought: how could I add a blank space when 2 underscores are together?

Great help!

------ Post updated at 03:40 AM ------

Forget it! I figured it out...
1,867
Posted By eldeingles
INPUTFILE a true … of Islam \t follower ...
INPUTFILE


a true … of Islam \t follower
the recent … of two CIA agents \t disappearance
The restructuring is designed to give a sharper … on key markets. \t focus
a large country house...
1,867
Posted By eldeingles
Random letters
Hi there,
first of all this is not homework...this is a new type of exercise for practicing vocabulary with my students.
I have a file consisting of two columns, separated by a tab, each line...
3,021
Posted By eldeingles
input: you you do do you you did ...
input:

you you do do you you did
she got did she get did she got she gotten
are makeing making are making is making
usually have has usually usually has have...
3,021
Posted By eldeingles
Yes! file contents: you / you do / do...
Yes!

file contents:

you / you do / do you / you did
she got / did she get / did she got / she gotten
are makeing / making / are making / is making
usually have / has usually / usually has /...
3,021
Posted By eldeingles
Magic!!
It worked!! It worked!! Yep! :)

A long story as I am working on a Mac. First you have to install HOMEBREW brew install coreutils, change the order shuf to gshuf.
Also, you have to update your...
3,021
Posted By eldeingles
My mistake
Yep, both scripts work...as log as the options to be shuffled are single letters/words (eg. A, B...just, never, ever...) but, what about if the options are groups or words?

Option A Option B ...
3,021
Posted By eldeingles
Uff, thanks rdrtx1m but I am not sure how to use...
Uff, thanks rdrtx1m but I am not sure how to use this code...i am such a newbie. ...still trying to figure it out...
3,021
Posted By eldeingles
Sorry, but...
I promise it is not homework...on the contrary, I am a teacher.
3,021
Posted By eldeingles
Randomize columns in CSV file
Hi there, friends!

Writing exams again! This time my wish would be to randomize certain columns in a csv file. Given a file containing records consisting of 3 columns tab-separated:

A B C
A B...
1,313
Posted By eldeingles
Don, You Got It
Thanks done, perfect piece of code. Saved me headaches! :b:

---------- Post updated at 02:10 AM ---------- Previous update was at 02:06 AM ----------

Yeah, thanks too Scrutinizer... This one...
1,313
Posted By eldeingles
Yes...but...
Great solution. but could the output words be shown in new lines or separated by slashes. That would be great!!

:b:
1,313
Posted By eldeingles
Extract Bracketed Words
Hi there, Unixers

I need to extract ALL the words from a text which aresurrounded by square brackets. I am using this piece of code

sed 's/.*\[\(.*\)\].*/\1/g' inputfile > outputfile

but I...
1,963
Posted By eldeingles
Yes, Oh, man! absolutely! Thanx for the time...
Yes, Oh, man! absolutely!
Thanx for the time you have saved me.
1,963
Posted By eldeingles
can't get the second bit of code to work ...
can't get the second bit of code to work

(btw the file's name is file

iMacAA:~ eldeingles$ sed -i "s/\[[^]]*/[ /g" file
sed: 1: "file": invalid command code f

...:wall:
1,963
Posted By eldeingles
Yes, Scott!
Yes, Scott!
1,963
Posted By eldeingles
close but...
Quite near,

yeah, both pieces of code list differently the bracketed words in the text, but I would also need the text with the empty brackets, such as this:

... I met an old [ ] friend last...
1,963
Posted By eldeingles
Extracting Words from Text
Hi there, Unix Gurus

Back in September last year you helped me find a way to extract the words in brackets in a textfile to a new one...
3,258
Posted By eldeingles
yeah, bartus11, you nailed it!! I just...
yeah, bartus11, you nailed it!!

I just didn't guess where to put that '\t'

Wow, great!
Showing results 1 to 25 of 42

 
All times are GMT -4. The time now is 06:50 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy