So, I wanted to chop off the last field in a file extension (bob.joy.txt, for example).
Here's is a simple solution, using reverse (rev), ls, cut and a for loop:
for i in `ls *.txt`; do mv $i `echo $i|rev |cut -d '.' -f2-|rev`;done
There's prob a cleaner way, but this was quick and easy.
Thursday, November 30, 2006
Friday, November 10, 2006
Fun Online Game
Check it out!
www.cybernations.net
Short Description:
About Cyber Nations - Welcome to Cyber Nations, a nation simulation game. Create a nation anywhere in the world and decide how you will rule your people by choosing a government type, a national religion, ethnicity, tax rate, currency type, and more in this new geo-political, nation, and government simulator. Build your empire by purchasing infrastructure to support your citizens, land to expand your borders, technology to increase your nation's effectiveness, and national improvements to build your nation according to your choosing.
More description, here:
http://www.cybernations.net/about.asp
www.cybernations.net
Short Description:
About Cyber Nations - Welcome to Cyber Nations, a nation simulation game. Create a nation anywhere in the world and decide how you will rule your people by choosing a government type, a national religion, ethnicity, tax rate, currency type, and more in this new geo-political, nation, and government simulator. Build your empire by purchasing infrastructure to support your citizens, land to expand your borders, technology to increase your nation's effectiveness, and national improvements to build your nation according to your choosing.
More description, here:
http://www.cybernations.net/about.asp
Subscribe to:
Posts (Atom)