i got some questions about the language that is used in the .sh files. I am a PASCAL Programmer and try to translate this code to PASCAL while i'm reading. Gives me a little help, to understand the code. What is the name of this script-language? MUST HAVE TO KNOW THIS. Where can i get a full-list of functions etc? MUST HAVE TO KNOW THIS AS WELL.
My Problem MUST HAVE TO KNOW THIS ABSOLUTELY and TOTALLY: i need some equivalent functions to some PASCAL string operating functions.
I have got yet from L18L the following:
maintainly needed, the equvalent functions to the following list:PASCAL: (put strings together)
s1:='User';
s2:='RSH'
concat(s1,' ',s2)
returns the String "User RSH".
Equivalent:
s1='User'
s2='RSH'
echo "$s1 $s2"
returns the String "User RSH"
please check this: s=echo "$s1 $s2" (<--please take a look at this - syntax, missing chars? " ' ' etc.?)
PASCAL: (get the position of a char or string)
position:=pos(' RSH',s1) returns 6 (the position of ' ')
Equivalent:
pos=INSTR("Hallo RSH", " RSH") returns 6 (the position of ' ')
Hope, help is on the way...
PASCAL:
n:=length(s1) n returns 4, length of s1
delete(s1,start,anz)
delete(s1,3,2) returns "Us" (delet 2 chars at position 3)
insert(s1,'n',2) after this s1 (User) is s1 (Unser = german equivalent to "our")
RSH