$ ls | while read i; do mv "$i" "some prefix $i"; done;

the read part of the while waits for input and takes the input and stores it in "i". The while loop gets it's input from ls. At each line of ls, the current line is sent to the read.