On May 25, 2006, at 2:28 PM, Robert Citek wrote:

> On May 25, 2006, at 1:56 PM, A.M. wrote:
>> You certainly are very skilled at using bash, but don't you find
>> that it is slightly less flexible than if you were to simply write
>> the whole shebang in Perl?
>
> I could do it in perl.  But I look at computer languages as I do
> spoken languages: it's nice to know how to express oneself in more
> than one.

As an example of yet another language, here's one way to do a split  
in the language R:

R: file <- "foo.bar.txt"
R: newfile <- unlist(strsplit(file, "\\."))[2]
R: cat(newfile, "\n")
bar

Regards,
- Robert
http://www.cwelug.org/downloads
Help others get OpenSource software.  Distribute FLOSS
for Windows, Linux, *BSD, and MacOS X with BitTorrent

 
_______________________________________________
CWE-LUG mailing list
[email protected]
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/

Reply via email to