10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need a help with a query. Basically i want to know the difference between (0+01)* and ((0+01)*)* . It seems whatever string can be generated by the first RE can also be generated by second and they should essentially be same. Am i missing something? (1 Reply)
Discussion started by: srkmish
2. UNIX for Dummies Questions & Answers
I'm trying to rename a bunch of files that were named incorrectly. I know a little about regular expressions but I'm not very good at them.
Here is the image of the file names:
I'm trying to change the 20111116 at the beginning to 20101116 for all... (2 Replies)
Discussion started by: nastyn8
How am I read a file, find the match regular expression and overwrite to the same files.
open DESTINATION_FILE, "<tmptravl.dat" or die "tmptravl.dat";
open NEW_DESTINATION_FILE, ">new_tmptravl.dat" or die "new_tmptravl.dat";
# print... (1 Reply)
Discussion started by: jessy83
4. UNIX for Dummies Questions & Answers
I like to loop a list of files which named file1, file2, file3, file4, etc
if I like to loop them all over
for f in file1, file2, file3, file4
echo "processing" $f
how to use a regular expression to loop file$i instead?
Thank you. (4 Replies)
Discussion started by: ksgreen
5. Shell Programming and Scripting
Hey all! what matching expression might I use to match all characters included in \W, EXCEPT < and > ?
@tokens=split(/ ???? /,$string);
I've dubiously tried \W but this clips off the first letter of each "token", for some reason ... (2 Replies)
Discussion started by: applefat
6. UNIX for Dummies Questions & Answers
Could some one tell me what these 2 regular expressions mean:
(\d\d\d\d/\d\d/\d\d/*?) (14 Replies)
Discussion started by: Katkota
7. UNIX for Dummies Questions & Answers
anyone knows what does this regular expression match for?
\(3,\).*\1.*\1 (1 Reply)
Discussion started by: metalwarrior
8. Shell Programming and Scripting
i need to wipe out something from giving path i have some thing like that :
pwd | sed 's/.*foo//'
it is working fine when I have path like : /blah/balh1/foo/moo
so it erasing me all that comes before the foo including the foo
but I have problem when I have dir by the name of... (7 Replies)
Discussion started by: umen
9. UNIX for Dummies Questions & Answers
Hi - I am trying to ignore the following items from a list.
The following code works fine, but I was wondering if there was a tidier way to write the lp regular expression?
egrep -v "lp"
Thanks in advance. (3 Replies)
Discussion started by: Krispy
10. Shell Programming and Scripting
why does * highlight everything in it... shouldn't it only highlight capital letters? (0 Replies)
Discussion started by: brentdeback