Re: Scripting
- From: "Calab" <myspam@xxxxxx>
- Date: Mon, 31 Dec 2007 06:18:35 GMT
#!/bin/bash
for i in $(command)
do
j=$(echo "$i" | cut -f4)
k=$(echo "$i" | cut -f3)
[ "$j" = "busy" ] && syscheck "$k"
done
#
where "command" gives your table, "cut" assumes tabs are the column
delimiters. - man cut
Thank you very much!
.
- References:
- Scripting
- From: Calab
- Re: Scripting
- From: Chris Elvidge
- Scripting
- Prev by Date: Re: Scripting
- Next by Date: Re: Scripting
- Previous by thread: Re: Scripting
- Next by thread: Re: Scripting
- Index(es):