[GTALUG] Help with if else statement

Chris F.A. Johnson chris at cfajohnson.com
Sat Mar 28 21:13:59 UTC 2015


On Sat, 28 Mar 2015, Tim Carroll wrote:
...
> # now start running the fsck on all disks
> for i in $(cat fsck-list-new.txt); do e2fsck -fvy -C 0 $i; done
> or
> while $(cat fsck-list-new.txt); do e2fsck -fvy -C 0 ; done

while IFS= read -r line
do
   : whatever
done < fsck-list-new.txt

-- 
Chris F.A. Johnson, <http://cfajohnson.com>


More information about the talk mailing list