Posted by: Junkiri June 29, 2007
Help writing a shell script
Login in to Rate this Post:     0       ?        
Hi All, I need some help writing a script in bash shell that does the following. I have a bunch of files with letters before some numbers ( those numbers are the identifiers of the files that I will finally need to weed out). I need to remove the letters before the numbers so that the file name start with the numbers alone (I don't care about the letters after the numbers). Here's an example of what I have and what I want finally to make things more clear: What I have now: SGDUNK223.R_D02_08.ab1 What I'd like to have: 223.R_D02_08.ab1 I could either do this one by one....but figured a script could make my llife a lot easier and I could do more interesting stuff like visiting sajha :D.
Read Full Discussion Thread for this article