ksh, short for Korn Shell, is a Unix shell developed in the early 1980s.
Questions tagged [ksh]
87 questions
1
vote
2 answers
count words in LIST without separators
I have the following simple ksh code:
MY_LIST=first,second,third
NUM_IN_LIST=` echo $MY_LIST | sed s"/,/ /g" | wc -w `
print $NUM_IN_LIST
3
[[ $NUM_IN_LIST = 3 ]] && print match
but I dont get the match print -:(
maybe because some…
jennifer
- 1,117
0
votes
2 answers
shell script + match word without echo command
the following test syntax is part of ksh script
[[ $PARAM = TRUE ]] && [[ ` echo $LINE_FROM_FILE | grep -c Validation ` -eq 1 ]] && print "find Validation word"
Can I get some other creative syntax/solution/command to verify if Validation word…
lidia
- 919
- 1
- 9
- 9