ksh
ksh - passing parameter with space
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[详细]
2023-01-15 20:53 分类:问答shell script + constant spaces between the IP to the aliases name
from my ksh script . echo $IP1$ALIAS1 >> /etc/hosts echo $IP2$ALAIS2 >> /etc/hosts echo $IP3$ALIAS3 >> /etc/hosts[详细]
2023-01-14 17:59 分类:问答shell script + numbers sum
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[详细]
2023-01-14 13:22 分类:问答if [ $? -ne 0 ] then syntax error then unexpected
I have been trying to execute the following UNIX shell script which is not working. I am running it by KornShell (ksh).[详细]
2023-01-14 12:19 分类:问答shell script + calculate NETWORK IP by shell script
the following question relev开发者_运维百科ant for ksh script how to calculate the NETWORK IP according to NETMASK & IP ADDRES[详细]
2023-01-14 07:39 分类:问答awk/sed for test command
from my ksh I have [[` echo $READ_LINE | awk \'{print $2}\' ` != SOME_WORD]] && print \"not match\"[详细]
2023-01-13 09:49 分类:问答shell script + match word in line without using echo
the following test syntax is part of ksh script [[ $PARAM = TRUE ]] &&[[ ` echo $LINE_FROM_FILE | grep -c Validation ` -eq 1 ]] && print \"find Validation word\"[详细]
2023-01-13 04:12 分类:问答ksh + print the same format as param
the following script print the $line parameter my target is to print the numbers in the $line exactly as they described[详细]
2023-01-12 16:28 分类:问答How can I have term.el (ansi-term) track directories if using anyhting other than bash
When using eshell or ansi-term and bash 开发者_开发百科emacs changes the default-directory variable depending on what directory you are in.[详细]
2023-01-12 13:40 分类:问答shell script + one single syntax command in the script to send errors to log
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[详细]
2023-01-11 05:46 分类:问答