[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Copy a file one hundred times



Thomas Preud'homme wrote:

>      filevar=$1 # The file to copy a hundred time
>      basefile=${filevar%.[^.]*} # We delete all the end from the last dot (eg 
> a dot followed by any others caracters)
>      extension=${filevar##^.*.} # We delete all the beginning until the last 


Just for reference, this pattern matching and chopping is explained more
with examples here:
http://www.ibm.com/developerworks/library/l-bash.html#N1010B


-- 

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


Reply to: