Mailing List Archive


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

Re: [tlug] banal bash script opinion



Hi Pietro,

I'm not a master of bash scripting,
but wrote some shorter version.
Hoping this works same as your script.

-----------------
#!/bin/bash
extension=$(echo $1 | sed -n -e 's/[[:print:]]*\.//gp')
extension=${extension:+"."$extension}

for i in `seq 0 $(($3 - 1))`;do
	cp $1 $2$i$extension
done
------------------


__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links