Search Results

Search: Posts Made By: sudon't
2,287
Posted By sudon't
Hey Alister! I don't really know sed very well,...
Hey Alister!
I don't really know sed very well, but let me see if I can figure this out. I think it's worth pointing out that I have no background with this stuff. I'm just learning on my own, in my...
2,287
Posted By sudon't
Grep words with X doubles only
Hi!
I'm trying to figure out how to find words with X number of doubles, only. I'm searching a dictionary, (one word per line). For instance, if you want to find words containing only one pair of...
4,025
Posted By sudon't
Yes, you have mentioned this to me. ; ) Now,...
Yes, you have mentioned this to me. ; ) Now, obviously you know more about it than I do, but in my defense let me just say that the little find/replace thing I learned, (or thought I had), appears...
4,025
Posted By sudon't
I'm already working with duplicate files, so...
I'm already working with duplicate files, so backups are not an issue.

You're absolutely right - I don't understand perl. And many other things, as well. But I learned to do a simple find/replace...
4,025
Posted By sudon't
Perl find & replace - what am I doing wrong?
Hi!
I have a directory full of .plist type files from which I need to delete a line. Not every file contains the line, but of course I'd like to do it recursively. The line which I want to delete...
1,572
Posted By sudon't
Oh, believe me, I've tried that. ; ) And I have...
Oh, believe me, I've tried that. ; ) And I have come up with some dictionary type wordlists, but nothing as comprehensive and verifiable as a Webster's, or an Oxford. And I've had to slog through...
1,572
Posted By sudon't
Question About Posting
A couple of questions, actually. I wanted to ask the community where I might find a large, up-to-date dictionary wordlist. I figure that this is a likely place to find someone with this answer. I'm...
2,743
Posted By sudon't
Aha! Yes, it works if you "cap off" the ends with...
Aha! Yes, it works if you "cap off" the ends with a $

grep -E ".*f.{1,2}$|.*f.{3}d$"

I forgot you could do that. I was trying to figure out a way to do it with a lookaround somehow. Thanks!
2,743
Posted By sudon't
Scrabble Regex Help
Hi!
I use an and grep to play Scrabble and other word games because it helps me practice regexes, or, as my friends would say, because I'm a cheater.
Anyway, I'm trying to work out how to write a...
32,854
Posted By sudon't
It works, of course, but I would've thought the...
It works, of course, but I would've thought the asterisk modifier, like some other things I tried, would return almost every line. Because if it goes through a line, and comes across a vowel, isn't...
32,854
Posted By sudon't
Ok, I see. So in the second case, any line which...
Ok, I see. So in the second case, any line which contains a non-vowel returns 'true'. I guess we could use the -v flag there, and get vowels only.
Thanks!
32,854
Posted By sudon't
Grepping Words with No Vowels
Hi!
I was trying to grep all the words in a wordlist, (twl), with no vowels. I had a hard time figuring out how to do it, but I finally lit on the -v flag. Here's my question:
Why does this work:...
1,710
Posted By sudon't
What? Unix is great fun! I just can't get anyone...
What? Unix is great fun! I just can't get anyone else to agree.

I am told it's mostly like FreeBSD.

Well, we want ruby1.9 as the target file, right? Shouldn't it be the opposite?
Here's a...
1,710
Posted By sudon't
What Makes an App the System Default?
Hi!
I'm not sure how, (or if), Apple updates stuff in the standard unix installation of OS X, but whenever I have occasion to check a version number of something in my standard install, it is...
4,306
Posted By sudon't
That's an excellent point, but I was already...
That's an excellent point, but I was already working on a duplicate, (a concatenation, really), so it wouldn't have much mattered. But, point well taken!
4,306
Posted By sudon't
Huh, you're right, I must of overlooked...
Huh, you're right, I must of overlooked something. Of course it should work, and it does. But didn't you expect your original code to work in place? In other words, to over-write the original file?...
4,306
Posted By sudon't
"Work in Place"
Sorry, had a bit on my plate over the last week, so I had to come back to this.

So, I tried bipinajith's one-liner:
awk '!arr[$0]++' ~/path/to/file.txt
While it did remove doubles, the output...
4,306
Posted By sudon't
That was helpful. If I've understood correctly,...
That was helpful. If I've understood correctly, bipinajith's pattern is telling awk to treat the data as a single column array, assign keys to each value, (hash table?), then if the same key comes up...
4,306
Posted By sudon't
Whew! I kinda think I get it. At least, until I...
Whew! I kinda think I get it. At least, until I try to type out my own explanation. You know, I think I'm going to read something about awk and come back tomorrow.
4,306
Posted By sudon't
Hey bipinajith, thanks for your reply! Would you...
Hey bipinajith, thanks for your reply! Would you mind explaining how that pattern works? I thought I knew a little about regexes, but I've never seen anything like that.
4,306
Posted By sudon't
Remove Doubles Without Sort?
Hi!
I have concatenated two files which are wordlists, i.e., one word per line. The new file contains some doubles, but I cannot use sort and uniq as I need to keep the sort order that it is already...
4,451
Posted By sudon't
Ok, I had to do $ man man to figure out how...
Ok, I had to do
$ man man
to figure out how to access other sections. What an idea!
But now I know which sections to look in, which is very helpful. Thanks!
4,451
Posted By sudon't
OK, yes, that was very helpful. Everything that...
OK, yes, that was very helpful. Everything that everyone was telling me is beginning to come together in my head.



Thanks, this also really helpful. But I have to ask: the ones with a 'p' in...
4,451
Posted By sudon't
My situation is a little different. I'm just...
My situation is a little different. I'm just learning about unix and shell scripting at home on my Mac. Since the scripts I'm writing are useless except to learn how they work, I will never add them...
4,451
Posted By sudon't
I think people are misunderstanding my question,...
I think people are misunderstanding my question, or I haven't been clear enough. (Or possibly I've misunderstood your answers?) Please forgive my ignorance, I was only wondering why, when you are in...
Showing results 1 to 25 of 75

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