. Precede a script name with dot-slash when executing interactively so UNIX knows that the script is in the current directory.
./capture_vmstat.sh
.Redirectstderr
, either to the same destination asstdout
or to a unique file.
./capture_vmstat.sh >> ${LOG_FILE} 2>&1
2. Permutations algorithm?
Is it difficult, lets try to work through an example "abc"
abc bac cab
acb bca cba
i) As seen from the pattern the first string is fixed and the last strings keeps on changing.
Thinking of the algorithm ( Natural thought is a recursion, but currently i want
to avoid it and do it by iteration)
No comments:
Post a Comment