what is wrong with this?
<-- start of script
#!/bin/bash
clear
for SOMEVAR in `cat temp`
do
usermod -d $SOMEVAR -m `cut -f5 -d/ temp`
done
<-- end of script
where the contents of test file temp is:
1. /tmp/home/2001/mco-100017
/tmp/home/2001/acc-100019
/tmp/home/1995/kap-100021
2. `cut -f5 -d/ temp` is the username
_
Philippine Linux Users Group. Web site and archives at http://plug.linux.org.ph
To leave: send "unsubscribe" in the body to [EMAIL PROTECTED]
To subscribe to the Linux Newbies' List: send "subscribe" in the body to
[EMAIL PROTECTED]
- RE: [plug] readiing a line from a file and putti... Chris G Haravata
- Re: [plug] readiing a line from a file and p... eric pareja
- RE: [plug] readiing a line from a file a... Chris G Haravata
- Re: [plug] readiing a line from a file and putting th... Brian Baquiran
- RE: [plug] readiing a line from a file and putti... Chris G Haravata
- RE: [plug] readiing a line from a file and p... Mike Blancas
- Re: [plug] readiing a line from a file and p... Brian Baquiran
- Re: [plug] readiing a line from a file and p... Raymund dos Remedios
- Re: [plug] readiing a line from a file and p... Juan Miguel Cacho
- Re: [plug] readiing a line from a file and putting th... Ian C. Sison
- Re: [plug] readiing a line from a file and putti... Chris G Haravata
- Re: [plug] readiing a line from a file and p... Raymund dos Remedios
- Re: [plug] readiing a line from a file and putting th... Federico Sevilla III
- Re: [plug] readiing a line from a file and putti... Mike Maravillo
- RE: [plug] readiing a line from a file and putting th... Ronneil Camara
