Comment by Offirmo on How to make a variable symlink ? (or something similar)
@FaheemMitha edited the question to precise that we are using the same machine (remotely)
View ArticleComment by Offirmo on How to make a variable symlink ? (or something similar)
Thanks but I edited the question to precise that we are all using the same machine, hence the problem.
View ArticleComment by Offirmo on What is the syntax of a complex condition in shell?
My scripts have the #! /bin/sh shebang, and the default shell is ksh. Why would sh not be used ?
View ArticleComment by Offirmo on Shell: How to read the bytes of a binary file and print...
unlike the other, xxd is also able to revert the modification. With that, it is possible to alter a binary file with shell.
View ArticleComment by Offirmo on Creating numerous directories using mkdir
In bash 4, this works : mkdir -p {2014..2019}/{01..12}/{01..31} with correct 0 padding. For fellow googlers.
View ArticleAnswer by Offirmo for What is the syntax of a complex condition in shell?
I tried some syntax and found that if [[ $a -eq 1 ]] && [[ $b -eq 1 || $b -eq 2 ]]; then ... fi is working.
View ArticleWhat is the syntax of a complex condition in shell?
If want to express the following test in shell (sh) : if ( a == 1 && ( b == 1 || b == 2 )) { ... } So far, the best I have been able to write is this : if [[ $a -eq 1 ]]; then if [[ $b -eq 1...
View Article