Hello,
Jean-Paul> How can I get a substring of a string with csh for
Jean-Paul> example the first 5 characters of a string of 10 chars
Here is one solution for your problem!
------------------------------------------
#!/bin/csh
echo $1
echo $1 | awk '{ print substr($1,1,5) }'
------------------------------------------
Jean-Paul> Jean-Paul
--
--
* Pessimist: Can't get any worse... Optimist: It can, it can!!! (Unknown author)
Tel:33-1-47527131 - fax:33-1-47527022
IFP - DIMA - 1,4 Rue du bois Preau - 92506 Rueil Malmaison - France