Quickly, since its almost miller time:
Assuming user.txt
Code:[wayne@UW-GOODRICHWE ~]$ for i in `cat user.txt`; do echo $i.user; done john.user jan.user test.user dennis.userThat just shows the mechanics of the for loop. You want to actually perform an action on the value of $i in a bash scriptCode:#!/bin/bash # for i in `cat user.txt` do echo "$i.luser" done


Reply With Quote
Thanks, 
Bookmarks