Friday, May 12, 2006

rename all the files that match a pattern

I happend to come across a situation where I got some java files but with extention .txt, and they are more than a hundred files. So I thought of renaming them with using a script. Here is the one I used. And it can be parameterized as well. Hope it would be a useful one.


x=`find . -name "*.txt" -print sed 's/txt/java/g'`
for xx in $x ; do
fileone="$(echo $xx sed 's/java/txt/g')"
filetwo=$xx
if [ "$fileone" != "$filetwo" ] ; then
echo "moving" \"$fileone" to \"$filetwo"
mv "$fileone" "$filetwo"
fi
done

Tuesday, May 09, 2006

Sticking together !

"You ought to go to a boy's school sometimes. Try it sometime," I said. "It's full of phonies, and all you do is study so that you can learn enough to be smart enough to be able to buy a goddam Cadillac some day, and you have to keep making believe you give a damn if the football team loses, and all you do is talk about girls and liquor and sex all day, and everybody sticks together in these dirty little goddam cliques. The guys that are on the basketball team stick together, the goddam intellectuals stick together, the guys that play bridge stick together. Even the guys that belong to the goddam Book-of-the-Month Club stick together."
Oh yes they stick together. Birds of same feathers stick together. Don't know wether they fight or develop a kind of grudge or grunting attitude on other flocks. And animals of same kind stick together. I saw them on Animal Planet or Discover or NGC, of course they always show that stuff. And I noticed animals fight with other types. And some behave humbly with others. And so on and on, as we know the goddamn thing very well.
When you go to work place, and these days, you would find a multitude of people work together , from across the world-country-region. And there, they too stick together. Northies stick together. Southies stick together. Dont know about northies :P. But in southies, Andhraites stick together, Kannadigas stick together and so Tamils and Malayalis. Oh there are so many other kinds and forms of sticking together. Department wise, project wise, type of project wise, Microsoft wise and Java wise, Or developers wise or admins wise, they tend to damn sticking together. And it is resulting in a kind of prejudice or resentment among everybody sticking together according to their convenient protocols on everybody else sticking together according to their convenient protocols. Hmmm, this thing is not new to our country or to the world or to the everything that born and breathe and socialize in some way or the other.
And these are the hell lot of reasons for hell lot of problems around the globe among every living thing. That is in the plan. We cant damn help it anyway. I only want to watch the fun. And you know, and I started just tolerate away the damn if some sticking together group of same elements pass a comment or laugh, rather than watch scornfully at them or plan a kind of revenge together with my sticking together group of my kind of elements. Yeah, I call it elements. Yeah, who cares to use right english words, when you born somewhere else with your own language and expressions and all. Leave it all.
And we all should live together amicably. Yes they make fun and you make fun. No difference. Yeah, they have some complaints and you have some. All we got to do is tolerate way the stuff. What the hell will you do, if you happen to get a stone under your teeth when eating your delicious sambar and rice, mixed so tenderly ? Wont you just tolerate away the stone and continue ;) or you would go and destroy your mom's kitchen ? You wont, right ? So my friend tolerate away. Smile at them always. For sure you will get smiles back. Everybody are here for their bread and butter. When the languages and attitudes are different from one another, initially there comes problems for sure.
We didnt have a kind of webservices frame work to work together. I guess a kind of that stuff should be there for us too. So that we can avoid hell lot of misunderstandings. And can tolerate simple faults. But, we are such wonderful creatures, we hard-wire such protocols automatically in a course of time, hard-wire ? or hard-flesh? hard-brain? hard-mind? hard-blood and flesh, oh whatever, we do such stuff, it happens, and thats why we still are living together, though we tend to stick together in hell lot of ways.

Monday, May 08, 2006

Excerpts and all from the Catcher in the rye !

One wonderful book I always love to read is the Catcher in the rye, the goddamn style kills me. I always read the Phoebe part of the book. She kills me. I feel like calling her like sweet little angel and all. I just put some stuff here copied from somewhere. Though it is not all that I wanted to put.

"What'd he say to you?" "Oh... well, about Life being a game and all. And how you should play it according to the rules. He was pretty nice about it. I mean, he didn't hit the ceiling or anything. He just kept talking about Life being a game and all. You know." "Life is a game, boy. Life is a game that one plays according to the rules." "Yes, sir. I know it is. I know it." Game, my ass. Some game. If you get on the side where all the hot-shots are, then it's a game, all right - I'll admit that. But if you get on the other side, where there aren't any hot-shots, then what's a game about it? Nothing. No game.

I was about half in love with her by the time we sat down. That's the thing about girls. Every time they do something pretty, even if they're not much to look at, or even if they're sort of stupid, you fall half in love with them, and then you never know where the hell you are.

Then she left. The Navy guy and I told each other we were glad to've met each other. Which always kills me. I am always saying "Glad to've met you" to somebody I'm not at all glad I met. If you want to stay alive, you have to say that stuff, though.

The thing is, most of the time when you're coming pretty close to doing it with a girl, she keeps telling you to stop. The trouble with me is, I stop. Most guys don't. I can't help it. You never really know whether they want you to stop or whether they're just scared as hell, or whether they're just telling you to stop so that if you do go through with it, the blame'll be on you, not them. Anyway, I keep stopping. The trouble is, I get to feeling sorry for them... They tell me to stop, so I stop. I always wished I hadn't, after I take them home, but I keep doing it anyway.

Catholics are always trying to find out if you're Catholic.

"You ought to go to a boy's school sometimes. Try it sometime," I said. "It's full of phonies, and all you do is study so that you can learn enough to be smart enough to be able to buy a goddam Cadillac some day, and you have to keep making believe you give a damn if the football team loses, and all you do is talk about girls and liquor and sex all day, and everybody sticks together in these dirty little goddam cliques. The guys that are on the basketball team stick together, the goddam intellectuals stick together, the guys that play bridge stick together. Even the guys that belong to the goddam Book-of-the-Month Club stick together."

Boy, when you're dead they really fix you up. I hope to hell when I do die somebody has sense enough to just dump me in the river or something. Anything except sticking me in a goddam cemetery. People coming and putting a bunch of flowers on your stomach on Sunday, and all that crap. Who wants flowers when you're dead? Nobody.

While I was walking, I passed these two guys that were unloading this big Christmas tree off a truck. One guy kept saying to the other guy, "Hold the sonuvabitch up. Hold it up for Chrissake!" It certainly was a gorgeous way to talk about a Christmas tree.

Sunday, May 07, 2006

Amrutha tulyamaina Telugu - Pothana

There you go. If you have ever felt the real taste of Telugu, these are some poems from Pothana. Amrutha tulyamaina telugu, anniti tho batu avasaram so, never neglect it.