padraig brady padraigbradycorvilcom thanks responses comments niall broin wrote fri aug 16 2002 052633pm 0100 padraig brady wrote repeat string arbitrary number times bashsed ie im missing repeat following string number3 prefixrepeat string number echo prefix pdraig ps know loops well heres solution using seq sed imho rather dim solution definitely dies string contains probably ways die bash loop would certainly faster know loops prefixseq numbersed sstringgoa clever bit robust first param number times repeat second param eg quoterepeat 3 repeat seq 1 sed s0912g btw loops bash shit slow see httpwwwioliepadraigareadline silly bash questions way getting exit status command without using ie something like result some_magic_way_of_quotingcommand instead command result note im looking backtick substitution arithmetic evaluation dont think possible thanks pdraig irish linux users group iluglinuxie httpwwwlinuxiemailmanlistinfoilug unsubscription information list maintainer listmasterlinuxie mon 19 aug 2002 102757 0100 ilug expanding string multiple times