

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


The first of these languages, named sh (for shell) began as a small collection of commands that were interpreted as calls to system subprograms that performed utility functions such as file management and simple file filtering.
AWK
Awk is a full-featured text processing language.
Awk breaks each line of input passed to it into fields. By default, a field is a string of consecutive characters delimited by white space, though there are options for changing this. Awk parses and operates on each separate field.
Client Side Scripting done by VB Script or Java Script.
Server Side Scripting PERL, PHP, ASP, JSP PERL
Perl is a general-purpose programming language originally developed for text manipulation and now used for a wide range of tasks including system administration, web development, network programming, GUI development, and more.
The language is intended to be practical (easy to use, efficient, complete) rather than beautiful (tiny, elegant, minimal). Its major features are that it's easy to use, supports both procedural and object-oriented (OO) programming, has powerful built-in support for text processing.
Example program
Renaming Files #!/usr/local/bin/perl
if ($#ARGV != 3) { print "usage: rename old new start stop\n"; exit; }
$old = $ARGV[0]; $new = $ARGV[1]; $start = $ARGV[2]; $stop = $ARGV[3];
for ($i=$start; $i <= $stop; $i++) {
$num = $i; if($i<10) {$num = "00$i"; } elsif($i<100) { $num = "0$i"; } $cmd = "mv $old.$num $new.$num"; print $cmd."\n"; if(system($cmd)) { print "rename failed\n"; } }
PHP scripts are always enclosed in between two PHP tags. This tells your server to parse the information between them as PHP. The three different forms are as follows: