ISO UNIX Tutoring in Regular Expressions

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers ISO UNIX Tutoring in Regular Expressions
# 1  
Old 02-15-2016
ISO UNIX Tutoring in Regular Expressions

Hello all- New to this forum, and relatively new to using grep at the Terminal command line to work with regular expressions. I've got a background in mathematics and some programming experience, so it's not been too difficult to learn the basics of searching through word lists for particular types of matches.

Now I've got a trickier piece of code that I don't know how to write, and I'm struggling to teach myself with the available online resources. I could greatly benefit from a few hours of in-person tutoring from an expert. Is this the appropriate place on this forum to post a call for a suitable tutor in my area?

I live in Queens, New York City. I imagine one afternoon might be enough to have my main questions answered and get me going on my own from there. Open to cash payment or to bartering for skills or artwork (I'm an artist).

Please be in touch if you are interested or know someone who might be. And of course if there is a better place on the forum to post this, I'd appreciate being directed that way.

All best-
Dominick T.
# 2  
Old 02-15-2016
Hi dtalvacchio,

Have you tried the NY Linux Users Group? NYLUG - New York Linux Users Group (New York, NY) - Meetup
There are always very eager Linux users willing to help you in the LUG, especially if you put effort in learning.

Talking about learning. What is it that you would like to achieve? I know that you mentioned grep, but are you talking about shell programming or how to use the command line?
Maybe is not even necessary to have a "personal tutor".

Last edited by Aia; 02-16-2016 at 12:45 AM..
# 3  
Old 02-16-2016
Hello Aia, and thanks for the response.

I'm interested in learning the ins and outs of regular expressions for the purpose of crossword and other word puzzle writing.

Typically with crossword writing, the basic grep commands are more than sufficient for any needs that I might have.

But lately I'm developing some new types of word puzzles, and I'm trying to perform some search operations which are difficult but I believe may be possible in Unix. I suspect a Perl script could be written to do what I need, but I don't know enough about it to be sure about that either.

I started a thread some time ago that discussed the actual problem. Received some very thoughtful feedback and some code that seemed promising, but it became complicated so quickly that I couldn't follow. I realized I would have to learn a lot more just to understand the approaches and solutions that people were sending me. So I figure a few hours with a face-to-face meeting would be helpful.
# 4  
Old 02-16-2016
Ah, I understand. Unfortunately, I live very far from NY.
# 5  
Old 02-18-2016
Quote:
Originally Posted by dtalvacchio
I realized I would have to learn a lot more just to understand the approaches and solutions that people were sending me. So I figure a few hours with a face-to-face meeting would be helpful.
I suggest you try Dale Doughertys phantastic book "sed & awk" from O'Reilly publishing. He explains regular expressions (which are the basis of both programs) in general at the beginning very good and in a very entertaining style. I am sure you will like that book, not only for learning purposes but as a future reference.

I hope this helps.

bakunin
# 6  
Old 02-22-2016
Quote:
Originally Posted by bakunin
I suggest you try Dale Doughertys phantastic book "sed & awk" from O'Reilly publishing. He explains regular expressions (which are the basis of both programs) in general at the beginning very good and in a very entertaining style. I am sure you will like that book, not only for learning purposes but as a future reference.
I've got that book and agree completely. It is an excellent reference book and text book on regular expressions as well as sed and awk.
# 7  
Old 02-23-2016
One can also mention these forums Smilie

Try, if not posting, solving the problems which occur here.
This will mostly improve your awk/sed/regex understanding, cause nothing beats practice.

Then compare your code to the one who responded before you.

It will probably be much shorter and more efficient (in the start).
Learn from it and try to 'disassemble it'.

A great part of these forums is text parsing and requests to convert data, matching strings, lines before and after and other more or less mundane tasks.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Regular Expressions

Hi Ilove unix and alwyas trying to to learn unix,but i am weak in using regular expressions.can you please give me a littel brief discription that how can i understand them and how to use .your response could lead a great hand in my unix love. (1 Reply)
Discussion started by: manoj attri
1 Replies

2. Shell Programming and Scripting

Regular Expressions

I am new to shell scripts.Can u please help me on this req. test_user = "Arun" if echo "test_user is a word" else echo "test_user is not a word" (1 Reply)
Discussion started by: chandrababu
1 Replies

3. Shell Programming and Scripting

Regular expressions help

need a regex that matches when a number has a zero (0) at the end of it so like 10 20 120 30 330 1000 and so on (6 Replies)
Discussion started by: linuxkid
6 Replies

4. Shell Programming and Scripting

Regular Expressions

what elements does " /^/ " match? I did the test which indicates that it matches single lowercase character like 'a','b' etc. and '1','2' etc. But I really confused with that. Because, "/^abc/" matches strings like "abcedf" or "abcddddee". So, what does caret ^ really mean? Any response... (2 Replies)
Discussion started by: DavidHe
2 Replies

5. Shell Programming and Scripting

Need help with Regular Expressions

Hi, In ksh, I am trying to compare folder names having -141- in it's name. e.g.: 4567-141-8098 should match this expression '*-141-*' but, -141-2354 should fail when compared with '*-141-*' simlarly, abc should fail when compared with '*-141-*' I tried multiple things but nevertheless,... (5 Replies)
Discussion started by: jidsh
5 Replies

6. Shell Programming and Scripting

Tagged regular expressions(TRE) in unix

Hi gurus, Can any of you suggest any good link for going through tagged regular expressions for unix.I am finding it quite critical and need some help from all gurus to know this better. Any good link containing detailed examples with descriptions would do i guess. thanks in advance. (0 Replies)
Discussion started by: navojit dutta
0 Replies

7. UNIX for Dummies Questions & Answers

regular expressions

Hi Gurus, I need help with regular expressions. I want to create a regular expression which will take only alpha-numeric characters for 7 characters long and will throw out an error if longer than that. i tried various combinations but couldn't get it, please help me how to get it guys. ... (2 Replies)
Discussion started by: ragha81
2 Replies

8. Shell Programming and Scripting

Help with regular expressions

I have following content in the file CancelPolicyMultiLingual3=U|PC3|EN RestaurantInfoCode1=U|restID1|1 ..... I am trying to use following matching extression \|(+) to get this PC3|EN restID1|1 Obviously it does not work. Any ideas? (13 Replies)
Discussion started by: arushunter
13 Replies

9. Shell Programming and Scripting

regular expressions

Hi, can anyone advise me how to shorten this: if || ; then I tried but it dosent seem to work, whats the correct way. Cheers (4 Replies)
Discussion started by: jack1981
4 Replies

10. Shell Programming and Scripting

Regular Expressions

How can i create a regular expression which can detect a new line charcter followed by a special character say * and replace these both by a string of zero length? Eg: Input File san.txt hello hi ... (6 Replies)
Discussion started by: sandeep_hi
6 Replies
Login or Register to Ask a Question