how to read line by line input from console when you do an svn update.

```
!/bin/bash
for line in $(svn update)
do
    printf "$line\n";
done

```

this will print it word by word. I need it line by line 
ex: 

```
A paris/input/hyb/shmc/com//hwmca/workload/eam/tasks/create/res/newap.java
M paris/input/hyb/shmc/com//hwmca/workload/eam/tasks/create/res/telap.html.
D paris/input/hyb/shmc/com//hwmca/workload/eam/tasks/create/res/newap_subdirs.mak.
U paris/input/hyb/shmc/com//hwmca/workload/eam/tasks/create/res/ABC.png

```

to grab the above file from console 

how to grep the beginning of the file(A M D U) in the above and take action ? 

if A 
then svn import file:///
fi

if M
then ..
fi 

so on for D and U