am trying to pass a parameter with a space in ksh via variables. Here is some sample code to demonstrate the issue. As you will see the param开发者_StackOverflow中文版eter with the space is later han
from my ksh script . echo $IP1$ALIAS1 >> /etc/hosts echo $IP2$ALAIS2 >> /etc/hosts echo $IP3$ALIAS3 >> /etc/hosts
what the best simple elegant way to sum number in ksh or bash my example is about let command , but I want to find better way to summary all numbers
I have been trying to execute the following UNIX shell script which is not working. I am running it by KornShell (ksh).
the following question relev开发者_运维百科ant for ksh script how to calculate the NETWORK IP according to NETMASK & IP ADDRES
from my ksh I have [[` echo $READ_LINE | awk \'{print $2}\' ` != SOME_WORD]] && print \"not match\"
the following test syntax is part of ksh script [[ $PARAM = TRUE ]] &&[[ ` echo $LINE_FROM_FILE | grep -c Validation ` -eq 1 ]] && print \"find Validation word\"
the following script print the $line parameter my target is to print the numbers in the $line exactly as they described
When using eshell or ansi-term and bash 开发者_开发百科emacs changes the default-directory variable depending on what directory you are in.
I have the test.ksh script my question if it possible to define in the first of the script that all standard errors will go to /tmp/errlog file in p开发者_如何学编程lace to put 2>/tmp/errlog after