I am making a script in unix that will read a text file and each record has six fields separated by a pipe. I don't know if I should use a case statement or an if/else statement.
- If the
$JOBhas a value ofPthenNEW_NICEshould be set to3. - If the
$JOBhas a value ofSthenNEW_NICEshould be set to6. - All other values of
$JOBshould setNEW_NICEto7.
I kinda wanna use a case statement because it would be simpler, but I also am not sure on how that would look.
Aucun commentaire:
Enregistrer un commentaire