Wednesday, August 17, 2011

Using scala as a script system admin language is quite cool...

No comment is necessary ! (Using Linux and scala 2.9.x)

import scala.sys.process._
"date" #>> new"dates.tmp") !
"cat dates.tmp" !

val files="ls"!!
val filteredFiles="ls" #| "grep .tar.gz" !!
val filesArray=("ls"!!).trim.split("\\n")

Using this language and its advanced features make system scripting quite easy and safer. No more problem with space in file names or directories, and so on ... sh coding is really a nightmare.

CONTEXT : Linux Gentoo / Scala 2.9.0 / Java 1.6.0_26


  1. ukrainian translationReally you have done great job,There are may person searching about that now they will find enough resources by your post.I like this blog..

  2. Good information here. I really enjoy reading them every day. I’ve learned a lot from them.Thanks so much for sharing this information. Greatly help me being a newbie.
    valium online

  3. Regalos Originales
    We want to reinvent the phone. What's the killer app? The killer app is making calls! It's amazing how hard it is to make calls on most phones. We want to let you use contacts like never before - sync your iPhone with your PC or mac.

  4. Buy Sleeping Tablets Online
    Its really very difficult in this full of activity life to listen news on TV, therefore I only use the web for that reason, and get the most up-to-date news.

    1. It’s nearly impossible to find knowledgeable folks on this topic, however, you appear to be there’s more you are talking about! Thanks
      climbing shoe resole

  5. Oh, this is a magical post. It’s life the most majestic post there is on this planet right now. This is really good work from your side. I strongly recommend you keep doing this kind of work.
    buy stilnoct

  6. The most typical difficulty encountered throughout new house purchase would be the transit dilemma. The matter worsens should you be bridging point out region.
    fashion shows

  7. To find a greater publicity for your facebook account, People expend money to Buy Facebook Followers to conveniently obtain exposure on internet. facebook followers

  8. To acquire a higher hype for your facebook account, People spend bucks to Buy Facebook Followers to quickly find exposure on internet. buy 500 facebook followers