languages ect...
Apr. 25th, 2001 08:51 am99 red balloons is really good in german.
wow, I got up this morning I was surprised
I had a good night last night, saw my girl. Her roomie I think is very unhappy where she is... I am sad for her... I think she is getting a bad taste of Atlanta and it's really not a bad place at all!!! We had chicken fingers for dinner, they were actually not half bad this time, it was amazing. hrm, maybe the food there will improve. Some girl come over and gave us chocolate, that was really nice, I don't like chocolate but girl does.
They have a big screen TV in the student center at Agnes Scott, I bet that would be fun to play SSX on.... maybe sometime this week I will steal some time on it
What is the sound of one hand clapping?
ok, I have a shell problem and I haven't found a solution for it yet... it's with regular expressions on the command line... I thought this would work:
# rm -R party[1,2]?[0-9]\.html
matches party, 0 or 1 instance of a 1 or a 2, a number 0 to 9 then a .html
it doesn't... the [1,2]? doesn't work.... how do you set that up? I am confused..... I know this works in a sed or awk command but it doesn't work in the shell?
I did find something about installing extglob to get it to work but I can't find ANYTHING on extglob. with that it would look somthing like this:
#rm -R party?([1-2])[0-9]\.html
that doesn't work either so I guess it's not installed... I wonder if I am going to have to re-compile bash..... grrr....
oh and yes I know that I can just use an awk statement but then I won't learn how this works....
#rm -R `ls | awk '/party[1-2]?[0-9]\.html/ {print}'`
oh well, I guess I will just have to keep playing :-)
wow, I got up this morning I was surprised
I had a good night last night, saw my girl. Her roomie I think is very unhappy where she is... I am sad for her... I think she is getting a bad taste of Atlanta and it's really not a bad place at all!!! We had chicken fingers for dinner, they were actually not half bad this time, it was amazing. hrm, maybe the food there will improve. Some girl come over and gave us chocolate, that was really nice, I don't like chocolate but girl does.
They have a big screen TV in the student center at Agnes Scott, I bet that would be fun to play SSX on.... maybe sometime this week I will steal some time on it
What is the sound of one hand clapping?
ok, I have a shell problem and I haven't found a solution for it yet... it's with regular expressions on the command line... I thought this would work:
# rm -R party[1,2]?[0-9]\.html
matches party, 0 or 1 instance of a 1 or a 2, a number 0 to 9 then a .html
it doesn't... the [1,2]? doesn't work.... how do you set that up? I am confused..... I know this works in a sed or awk command but it doesn't work in the shell?
I did find something about installing extglob to get it to work but I can't find ANYTHING on extglob. with that it would look somthing like this:
#rm -R party?([1-2])[0-9]\.html
that doesn't work either so I guess it's not installed... I wonder if I am going to have to re-compile bash..... grrr....
oh and yes I know that I can just use an awk statement but then I won't learn how this works....
#rm -R `ls | awk '/party[1-2]?[0-9]\.html/ {print}'`
oh well, I guess I will just have to keep playing :-)
no subject
I believe you would accomplish this like
rm -R party[12][0-9].html
nope sorry
Date: 2001-04-26 05:35 am (UTC)rm -R party[12][1-9]\.html
would delete
party12.html
but would not delete
party2.html
I need it to delete both... the [1,2] is an optional... it might be there, it might not...