Questions tagged as 'ksh'

2
answers

Operator test in a conditional

I'm starting to make simple scripts in Linux, and I have a doubt when sending parameters to one. The script is as follows: #!/bin/ksh if test $1 -lt $2 then echo "La cadena 1 es menor que la cadena 2" else echo...
asked by 25.07.2017 / 14:40
2
answers

Save all matches of a group in Regex

Consider the following group: ([0-9 ]+)+ I capture matches that contain numbers and spaces, in the following string for example: 123 , 2133132, 31331, 22222222, 23...... would capture "23", the last match, but what I want is to be abl...
asked by 27.05.2017 / 19:19