Horje
how to compare strings in zsh script Code Example
how to compare strings in zsh script
#!/bin/sh

argn=$#
i=0

for arg do
   shift
   i=$(( i + 1 ))

   if [ "$i" -lt "$argn" ]; then
       set -- "$@" ssh -t "$arg"
   else
       set -- "$@" "/pathtofile/$arg/log.log"
   fi
done

command "$@"




Shell

Related
navigating through directories using path Code Example navigating through directories using path Code Example
rename files with sequential numbers linux Code Example rename files with sequential numbers linux Code Example
kubernetes get namespace short form Code Example kubernetes get namespace short form Code Example
No module named 'qiskit_textbook' Code Example No module named 'qiskit_textbook' Code Example
nopasswd Code Example nopasswd Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
12