Scripting with Scheme Shell


 
Thread Tools Search this Thread
Special Forums News, Links, Events and Announcements UNIX and Linux RSS News Scripting with Scheme Shell
# 1  
Old 05-23-2008
Scripting with Scheme Shell

Fri, 23 May 2008 15:00:00 GMT
Last month, Daryl Lee gave us a taste of the language Scheme in the article It's time to learn Scheme with a C++ code generator. This time we will be looking at some practical examples written with Scheme Shell (SCSH): finding and replacing text in a bunch of files, sorting files in two different ways, and converting data from a CSV file to an HTML file.


Source...
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Web Development

Perl scripting or shell scripting?

i am going to study any one of the scripting languages mentioned above(shell 0r perl scripting) . Which is having more scope for a fresher? (1 Reply)
Discussion started by: Anna Hussie
1 Replies

2. What is on Your Mind?

Shell Scripting vs Perl scripting

Gents, I have been working in a Solaris/Unix environment for about 9 months. I took some linux classses online before getting the job. But, I am not very good at scripting. I want to learn how to script. Do you think that I should start with Shell scripting or Perl? I wanted to continue with... (2 Replies)
Discussion started by: Pouchie1
2 Replies

3. Red Hat

Color Scheme file

Hi Experts. Finally I complete my move to Fedora distro :) I am using the gedit editor and I'd like to customize it because I like to work with black color on background and green for text color (this remember me my university time), I did the same on UltraEdit tool before but here in gedit... (2 Replies)
Discussion started by: orma
2 Replies

4. What is on Your Mind?

Shell scripting vs Perl scripting

Hi all, I would like to start developping some good scripting skills. Do you think it would be best to start with shell scripting or Perl? I already got a fundation, really basics, in perl. but I am wondering what would be best to be good at first. Can you please help me determine which one to... (14 Replies)
Discussion started by: Pouchie1
14 Replies

5. Shell Programming and Scripting

Call Shell scripting from Perl Scripting.

Hi How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Discussion started by: anupdas
2 Replies

6. Shell Programming and Scripting

difference between AIX shell scripting and Unix shell scripting.

please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies

7. Solaris

Solaris Partioning scheme

Hi I have a sun server. Recently I have attached a new 80 GB disk. I would like to install the Solaris OS on this disk. Now I would be installing some database on this disk. I have decided to allocate a slice of 20GB or DB2 and one more slice of 20GB for Sybase. The / partition would... (4 Replies)
Discussion started by: RajaRC
4 Replies

8. UNIX for Advanced & Expert Users

Apache authentication scheme

Apache has an authentication scheme using .htaccess and a password file to authenticate people from accessing an area of the site. Is there anyway to set .htaccess to use the Unix password file to authenticate users. Thanks in advance Vu (1 Reply)
Discussion started by: vtran4270
1 Replies
Login or Register to Ask a Question
GOSH(1) 							  Gauche Commands							   GOSH(1)

NAME
gosh - a Scheme script interpreter SYNOPSIS
gosh [-biqV] [-I path ] [-A path ] [-u module ] [-l file ] [-e expr ] [-E expr ] [-f flag ] [--] [ script argument ... ] DESCRIPTION
Gosh is a stand-alone Scheme interpreter built on top of the Gauche Scheme script engine. When script is given, gosh loads the script, evaluating Scheme code in it. Then, if the script defines a procedure named main, gosh calls it with a single argument which is a list of the script name and subsequent arguments. When main returns an integer value, gosh exits with it as an exit code. If main returns non-integer value, or an error is signaled during evaluation, gosh exits with exit code 70 (EX_SOFT- WARE). See SRFI-22 (http://srfi.schemers.org/srfi-22/srfi-22.html) for details. If there's no main procedure defined in the script, gosh exits with code 0 after loading the script file. If no script file is given, gosh goes into an interactive mode. By default, gosh prompts the user to enter a Scheme expression, read and evaluates it, then prints the result, until EOF is read. If the standard input is not a terminal, however, gosh doesn't print a prompt; it allows a user to use gosh as a filter program. This behavior can be controlled by -i or -b option; see below. OPTIONS
Command line options are processed before loading the script file or entering the interactive mode. The options -I, -A, -u, -l, -L, -e and -E are processed in the order of appearance. For example, adding a load path by -I option affects the -l options after it, but not the ones before it. -V Prints gosh version and exits. -b Batch mode. Doesn't print prompt even the standard input is a terminal. Supersedes -i. -i Interactive mode. Forces to print prompt, even the standard input is not a terminal. -q Prevents reading the default initialization file. -Ipath Adds path in front of the load path list. -Apath Appends path to the tail of the load path list. -umodule Loads and imports module, as if "(use module )" is specified in the code. -lfile Loads a Scheme file file. -Lfile Like -l, but doesn't complain if file doesn't exist. -eexpr Evaluates a Scheme expression expr. -Eexpr Same as -e, except that the expr is read as if it is surrounded by parenthesis. -ptype Turns on the profiler. Currently type can only be 'time'. -fflag Sets various flags. case-fold uses case-insensitive reader (as in R5RS) load-verbose report while loading files no-inline don't inline primitive procedures and constants (combined no-inline-globals, no-inline-locals, and no-inline-constants.) no-inline-globals don't inline global procedures. no-inline-locals don't inline local procedures. no-inline-constants don't inline constants. no-post-inline-pass don't run post-inline optimization pass. -Ffeature Makes feature available in cond-expand forms. -- Specifies that there are no more options. If there are more arguments after this, they are taken as script file name and its argu- ments. ENVIRONMENT
GAUCHE_LOAD_PATH A colon separated list of the load paths. The paths are appended before the system default load paths. GAUCHE_DYNLOAD_PATH A colon separated list of the load paths for dynamically loaded objects. The paths are appended before the system default load paths. AUTHORS
Shiro Kawai (shiro @ acm . org) SEE ALSO
gauche-config(1) Gauche Scheme script engine: http://practical-scheme.net/gauche/ For the information about Scheme language, see http://www.schemers.org/ Gauche 0.9.1 GOSH(1)