User:Tom/RHCE EX300: Difference between revisions
< User:Tom
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 9: | Line 9: | ||
nl Number lines of files | nl Number lines of files | ||
bash -x Debug script | bash -x Debug script | ||
Command line arguments $0 $1, $#, $*, $$. | Command line arguments $0 $1, $#, $*, $$. | ||
shift Move arguments | |||
echo -e Enables interprestation of backslash escapes | |||
$? Exit code | |||
test Test conditions (man test) int1 -eq int2 | |||
if condition then action else action fi | |||
if condition then action elif condition then action else action fi | |||
Revision as of 14:14, 4 January 2016
RHCSA & RHCE Red Hat Enterprise Linux 7: Training and Exam Preparation Guide (EX200 and EX300) third edition march 205 by Asghar Ghori
RHCE
Hoofdstuk 14 Writing Shell Scripts
nl Number lines of files bash -x Debug script
Command line arguments $0 $1, $#, $*, $$. shift Move arguments echo -e Enables interprestation of backslash escapes
$? Exit code test Test conditions (man test) int1 -eq int2 if condition then action else action fi if condition then action elif condition then action else action fi