On Wed, 2003-09-24 at 19:18, Abdussamad Abdurrazzaq wrote:

> Please help me with these basic scripting questions. 

In which language, do you plan to program?

> How do you tell the path 
> of the current directory? 

in the bash it is pwd
[EMAIL PROTECTED]:~> pwd
/home/kroll

> Is there an equivalent to the Left$ & Right$ 
> functions found in BASIC in Linux scripting? What I mean is how do you 
> extract a given number of characters from the left or right of a string?

Most of the time I use perl for such jobs. But it might be possible to
use grep too. Have a look for substring 

perldoc -f substr should give you an impression how to get such results
in perl.

HTH
Volker



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to