Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] question about shell scripting
- Date: Thu, 25 Jan 2007 17:46:31 +0900
- From: baluta@example.com (Chris BALUTA)
- Subject: Re: [tlug] question about shell scripting
- References: <43640.210.168.237.209.1169712799.squirrel@example.com>
- User-agent: Mutt/1.5.13 (2006-08-11)
scott@example.com wrote: > #!/bin/bash > for x in `awk -F: '{ print $1 }' /etc/shadow`; > /usr/bin/crontab -l -u $x; > done I know nothin of crontab to say whether or not there's a problem there. But ... for x in `awk -F: '{ print $1 }' /etc/shadow`; do . . done should "do" it, as far as getting the for loop to work. Incidentally, you can also "do" a "for x in `cut -d: -f1 /etc/shadow`; do " instead of the awk line. I tend to use both... -Chris
- References:
- [tlug] question about shell scripting
- From: scott
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Networking two Linux computers harder than Linux to Windows?
- Next by Date: RE : Re: [tlug] marketing software?
- Previous by thread: Re: [tlug] question about shell scripting
- Next by thread: Re: [tlug] question about shell scripting
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links