I've been always using the following format for a "for loop" in a shell script :
example:
for i in {11001..110039}
do
cp /home/usr/BB${i} /home/usr/
now, I am getting the following error :
/home/usr/BB{11001..11039} does not exist
it should consider all the files BB11001 to BB11039, it was always working like this, and now I don't know why am I getting this error. Any help ?
for i in words; do #statements done?