|
| |
| | Shell script - Wikipedia, the free encyclopedia |
 | | Others, such as AppleScript, add scripting capability to computing environments lacking a command-line interface. |  | | Also, a shell's internal variables are often integrated with the operating system's notion of per-process or per-session environment variables. |  | | Most shells implement basic pattern matching capabilities like this, which allow them to perform commands on groups of items with similar names and sometimes parse simple strings of text. |
|
http://en.wikipedia.org/wiki/Shell_script
(737 words)
|
|
| |
| | Linux Shell Scripting Tutorial - A Beginner's handbook |
 | | Shell script to determine whether given file exist or not. |  | | Shell script to gathered useful system information such as CPU, disks, Ram and your environment etc. |  | | Shell script to print given numbers sum of all digit |
|
http://www.freeos.com/guides/lsst
(271 words)
|
|
| |
| | CTC Tutorial on Shell Scripts |
 | | Shell scripts are ASCII files that contain Unix and shell commands. |  | | Shell commands are commonly used for branching, looping, decision making, etc. They are similar to the commands in programming languages, particularly C. Popular shells include the Bourne (sh), C (csh), and Korn (ksh) shells. |  | | To create some example files, you must run the script creator first. |
|
http://www.pdc.kth.se/training/Tutor/Basics/shell
(734 words)
|
|
| |
| | Bash Reference Manual: |
 | | Shells may be used interactively or non-interactively: they accept input typed from the keyboard or from a file. |  | | More complex shell commands are composed of simple commands arranged together in a variety of ways: in a pipeline in which the output of one command becomes the input of a second, in a loop or conditional construct, or in some other grouping. |  | | Shell functions are executed in the current shell context; no new process is created to interpret them. |
|
http://www.gnu.org/software/bash/manual/bashref.html
(7331 words)
|
|
| |
| | How to write a shell script |
 | | Shell scripts are simple text files created with an editor. |  | | Shell scripts should be located in your search path and ~/bin should be in your search path. |  | | On the first line of an interpreter script, following the "#!", is the name of a program which should be used to interpret the contents of the file. |
|
http://www.tinker.ncsu.edu/LEGO/shell_help.html
(1910 words)
|
|
| |
| | Shells and Shell Scripts |
 | | Once you learn to create and use them, you should see that shell scripts are useful Unix tools that might save you a lot of time in your day-to-day computing. |  | | This sets the shell apart from other command interpreters, because it is just another user program at the same time that it functions almost exclusively as a mechanism for invoking other programs. |  | | That is, the contents of the script file will be read as standard input to the process until a input line matching the name following the redirection symbol. |
|
http://www.washington.edu/computing/unix/shell.html
(1492 words)
|
|
| |
| | Bash - Wikipedia, the free encyclopedia |
 | | The only Unix command shells capable of this are Korn Shell (1993 version) and zsh (starting at version 4.0). |  | | Bash is a Unix command shell written for the GNU project. |  | | The exit status of the above command is 0 if the regex matches the string, 1 if it does not match. |
|
http://en.wikipedia.org/wiki/Bash
(1365 words)
|
|
| |
| | Unix Shell Scripts |
 | | Values of shell variable are all character-based: A value is formally defined to be a list of zero or more elements, and an element is formally defined to be a character string. |  | | The shell script language, like other programming languages, has constructs for conditional execution (if-then-else; while), iterative execution (for loop), a switch statement, and a goto statement: |  | | Such a file is known as a shell script file. |
|
http://heather.cs.ucdavis.edu/~matloff/UnixAndC/Unix/CShellII.html
(1371 words)
|
|
| |
| | UNIX Shell Programming |
 | | Shell scripting involves chaining several UNIX commands together to accomplish a task. |  | | I quickly wrote a shell script that uses /bin/tar to create an archive of the entire subdirectory and then copy it to one of our backup systems at my computer center and store it under a subdirectory named according to today's date. |  | | For example, I recently wrote a script to make a backup of one of the subdirectories where I was developing a project. |
|
http://research.imb.uq.edu.au/~ksteube/Bshell
(4286 words)
|
|
| |
| | An introduction to the Bash Shell |
 | | Shell scripts are just files that have the execute bit turned on (they must also have the read bit turned on too). |  | | A function does have one special thing it can do that a shell script cannot: A script cannot change the environment of your current shell; it can only change the environment of the subshell it runs in. |  | | In the second case, by the time the shell gets to >& 2, stderr is going, not to the screen, but to the file errors, so this example works. |
|
http://www.hlug.org/presentations/bash1/present.html
(4098 words)
|
|
| |
| | Unix Shells - csh, ksh, bash, zsh, ... |
 | | This shell, written by David Korn, of Bell Labs, is now the defacto-standard shell for Unix systems, available on virtually any Unix-like system sold in the 1990's and beyond. |  | | If your needs aren't that abstruse, then even relatively advanced script programmers should be able to learn a few things from the book... |  | | shell written, configured, and operated entirely in Perl. |
|
http://linuxfinances.info/info/unixshells.html
(761 words)
|
|
| |
| | useful (shell) scripts by Karl Voit |
 | | The reason is, that those (indeed simple) scripts have functionality or an idea behind, that should be made public in order to simplify someones computer-life. |  | | This script checks the structure of directories and files below the current directory and reports, if certain files and subdirectories exists (or not). |  | | This script manages it all automatically via rsync using a very comfortably machanism: just add to a list in a textfile, which directories you want to have synchronized, mount the other computer (via Samba, nfs,...) onto your machine and do_rsync.sh will do the rest for you ;-) |
|
http://www.karl-voit.at/scripts
(2259 words)
|
|
| |
| | Wicked Cool Shell Scripts: Unix, Linux, Mac OS X, Bash, Bourne Shell, scripting -- by Dave Taylor |
 | | The Unix shell is the main scripting environment of every Linux, Mac OS X and Unix system, whether a rescued laptop or a million-dollar mainframe. |  | | This cookbook of useful, customizable, and fun scripts gives you the tools to solve common Linux, Mac OS X and Unix problems and personalize your computing environment. |  | | An enthused Unix user since 1980, he was an official contributor to BSD 4.4 Unix, and his software is included in many major Unix distributions. |
|
http://www.intuitive.com/wicked
(555 words)
|
|
| |
| | The Shell Script |
 | | A Shell Script is similar to a WIN batch file, it is a file commonly created using any text editor such as GnomePad. |  | | This script which will actually create the crash log file described in the text above (it will append the date and time to a file every time the server starts up): We are going to call it UTstart.sh (original heh? |  | | It can then restart your server automatically, if your computer is still working :-). |
|
http://www.planetunreal.com/TheAdminPage/ShellScript.htm
(434 words)
|
|
| |
| | What is a shell script |
 | | The program is started, and then the script file is given to it as an argument. |  | | Any file can be used as input to a shell by using the syntax: |  | | Any program which can read commands from a file can be started up this way, as long as it recognizes the |
|
http://www.dartmouth.edu/~rc/classes/ksh/what.html
(202 words)
|
|
| |
| | PHP: shell_exec - Manual |
 | | Shell scripts that start with #!/usr/bin/bash return their output properly. |  | | However, if the command fails and the DOS-shell returns an error the result is no longer availiable in the variable but is passed directly to the page. |  | | This doesn't do any error checking, the reason for that is I do not know how to cd to a directory and then execute another command unless they are in the same shell. |
|
http://us3.php.net/shell_exec
(2483 words)
|
|
| |
| | Korn Shell (ksh) Programming |
 | | Then, when you have been using the prototype happily for a while, and you have evolved the behaviour your end users are happiest with, you can go back and code a faster, more robust solution in a lower-level language. |  | | This is the top level of my "Intro to Korn shell programming" tree. |  | | Which is why ksh has a few more things "built in" to it than the older 'sh'. |
|
http://www.bolthole.com/solaris/ksh.html
(549 words)
|
|
| |
| | LinuxCommand.org: Writing shell scripts. |
 | | The real power of the computer is its ability to do the work for you. |  | | A script gathers up all the files (over 2200) in this site on my computer and transmits them to my web server. |  | | Every Friday night, all my computers copy their files to a "backup server" on my network. |
|
http://linuxcommand.org/writing_shell_scripts.php
(278 words)
|
|
| |
| | Revised Archie shell script |
 | | script and make changes to the block which defines the environment variables: |  | | Error handling has been fixed so that a server timeout is now trapped correctly and notified to the user. |  | | However, to avoid overloading the author's host, the script and associated tables are being made |
|
http://www.ucc.ie/info/net/archiedoc.html
(725 words)
|
|
| |
| | [No title] |
 | | The shell expands a string containing a * to all filenames that "match". |  | | The test command needs to be in the form "operand1operatoroperand2" or operatoroperand2, in other words you really need these spaces, since the shell considers the first block containing no spaces to be either an operator (if it begins with a '-') or an operand (if it doesn't). |  | | In this example, the expression expands to [ -n "" ] which returns false, since the string enclosed in inverted commas is clearly empty. |
|
http://pegasus.rutgers.edu/~elflord/unix/bash-tute.html
(1736 words)
|
|
| |
| | GFMorris.org » Blog Archive » WordPress Backup Shell Script |
 | | I also use FTP Voyager’s scheduler to do a Move Down on the backups to a local machine. |  | | This comes recommended if you don’t have access to a computer [as I do] that stays on 24/7 and can do once-night… |  | | It’ll take far longer to write this entry than it did to make the update. |
|
http://gfmorris.org/archives/2004/04/29/wordpress-backup-shell-script
(798 words)
|
|
| |
| | Example Shell Script write-n in Bourne Shell for portability |
 | | Control # is returned to the while loop (main body of script) fi if [ -z "$NAME" ]; then # Checks to see if $NAME (a variable) echo "You didn't enter a name!" # has a value. |  | | This script contains 2 functions and a main while loop. |  | | It has happened to me! The Bourne Shell is on every single Unix machine |
|
http://www.ece.vill.edu/~doug/Unix/Script/pbookc.html
(959 words)
|
|
| |
| | The best Shell Scripting links on the net!!!!!! |
 | | - Development page for psh, a native perl shell for Windows 95/98/2000 and POSIX operating systems. |  | | - Guide to programming in the Korn shell environment. |  | | - Portable unix shell, supporting the scheme programming language. |
|
http://www.codebox.8m.com/shellscripting.htm
(516 words)
|
|
| |
| | Creating commands and programs using the shell |
 | | The use of the Bourne shell (sh) is illustrated as this is available on all UNIX systems. |  | | You can put commands into a file - known as a shell script - and then execute that file as you would a command or program. |  | | The C and TC shells use a programming language which is similar to the C programming language. |
|
http://www.mcsr.olemiss.edu/unixhelp/scrpt
(106 words)
|
|
| |
| | Advanced Bash-Scripting Guide |
 | | This book is suitable for classroom use as a general introduction to programming concepts. |  | | This tutorial assumes no previous knowledge of scripting or programming, but progresses rapidly toward an intermediate/advanced level of instruction |  | | Saving the results of a code block to a file |
|
http://www.tldp.org/LDP/abs/html
(407 words)
|
|
| |
| | Automating backups with tar |
 | | This script is designed to run on any computer by changing only the four variables: |  | | In our example below we do the backup to a directory on the local server BACKUPDIR, but you could modify this script to do it to a tape on the local server or via an NFS mounted file system. |  | | The following example below is our backup script, called |
|
http://www.faqs.org/docs/securing/chap29sec306.html
(485 words)
|
|
| |
| | [No title] |
 | | csh -nv script -- to find syntax errors. |  | | csh -x script -- to find semantic errors Advanced Use of alias. |  | | to redirect input from the shell script itself, i.e., from `here`. |
|
http://doc.ece.uci.edu/~klefstad/s/54/shell_scripts.txt
(1144 words)
|
|
| |
| | shell script - The macosxhints Forums |
 | | I do not know how to apply this, despite instructions from another forum user ("It's a simple shell script that blocks port 2222 UDP and 3464 TCP. |  | | Please note that I know nothing about UNIX, so not knowing the basics I may have a hard time to understand (supposedly known) instructions. |  | | In which program (Apple script ???) does this have to be made ? |
|
http://forums.macosxhints.com/showthread.php?t=1269
(220 words)
|
|
| |
| | JavaScript Shell |
 | | Ted Mielczarek added the tab completion feature in 1.1, Edward Lee added the multiline input feature in 1.2, and Jesper Rønn-Jensen fixed a few bugs for 1.4. |  | | Multiline input (Shift+Enter to insert a line break). |  | | If the shell is opened using a bookmarklet, JavaScript typed into the shell runs in the context of the original window. |
|
http://www.squarefree.com/shell
(261 words)
|
|
| |
| | SHELLdorado - Shell Scripts |
 | | They may serve as shell script programming examples, or just as some nice new programs to use with his UNIX desktop. |  | | Scripts classified into categories like File Conversion, or Text Utilities. |  | | This list is incomplete, unclassified scripts are not listed. |
|
http://www.shelldorado.com/scripts
(145 words)
|
|
| |
| | LSST v1.05 > Chapter 8 > Examples of Shell Scripts |
 | | If you want to become the good programmer then your first habit must be to see the good code/samples of programming language then practice lot and finally implement the your own code (and become the good programmer!!!). |  | | Q.7.Write script to print given numbers sum of all digit, For eg. |  | | Q.3.Write script to print nos as 5,4,3,2,1 using while loop. |
|
http://www.freeos.com/guides/lsst/ch08.html
(724 words)
|
|
| |
| | Shell Script Writing |
 | | Most of the time the # indicates that everything that follows it (to the end-of-line character) is a comment to be ignored by the shell interpreting the file. |  | | After, we will go to other shells to compare environments. |  | | There are many different ways to run a shell script. |
|
http://www.cs.umd.edu/class/fall2002/cmsc107/shellprog1.htm
(1144 words)
|
|
| |
| | C-shell script |
 | | The difference between this one and the previous one is that the previous script (Perl) allowed you to gather several statistics, and would determine automatically the name of the stats file according to the rule we defined: >>Architecture is in: /VIRTUALLIB/arch.html >>so the stat file would be: /VIRTUALLIB/stat.arch.html >>Lan. |  | | --> I would advise you to use this script rather than the perl one I wrote --> before if you just want the statistics of one document. |  | | Here, you have to define the name of your stats file, just as in Dave's script. |
|
http://lists.w3.org/Archives/Public/www-vlib/msg00230.html
(241 words)
|
|
| |
| | ThinkGeek :: Go away or I will replace you with a very small shell script |
 | | You should pay more attention to the creative possibilities of shell scripts, especially in relation to human resources. |  | | Shell scripts don't require salaries and don't complain about yesterdays coffee. |  | | Black T-shirt with the phrase "Go away or I will replace you with a very small shell script" in white on front. |
|
http://www.thinkgeek.com/tshirts/frustrations/374d
(134 words)
|
|
| |
| | R2 org uk UNIX Shell Tutorial |
 | | If you would like to know more about how to use and create your own functions in a UNIX Shell Scripting environment, just come on in and browse around at your leisure. |  | | This site was created by webmaster@r2.org.uk and is hosted by Demon Internet using the 20Mb free web space offered as part of the standard Dial-Up account. |  | | Don't do it twice when you can create a function once and use it twice. |
|
http://www.injunea.demon.co.uk
(140 words)
|
|
| |
| | Linux Shell Script |
 | | Whether you're a software developer, web developer, IT professional, or just a computer hobbyist, here you'll find everything Information Technology related all in one convenient place. |  | | If the name does already exist the script should prompt the user for a decision about whether the file should be overwritten. |  | | I have been given the task of writing a small shell script which does the following: |
|
http://www.daniweb.com/techtalkforums/thread18933.html
(409 words)
|
|
| |
| | BASH - GNU Project - Free Software Foundation (FSF) |
 | | BASH - GNU Project - Free Software Foundation (FSF) |  | | Bash is the shell, or command language interpreter, that will appear in the GNU operating system. |  | | It offers functional improvements over sh for both programming and interactive use. |
|
http://www.gnu.org/software/bash/bash.html
(196 words)
|
|
| |
| | BASH Programming - Introduction HOW-TO |
 | | I decided to write this because I'll learn a lot and it might be useful to other people. |  | | This article intends to help you to start programming basic-intermediate shell scripts. |  | | It does not intend to be an advanced document (see the title). |
|
http://www.tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
(135 words)
|
|
| |
| | shell renaming script - LinuxQuestions.org |
 | | They can't handle files with spaces in them like so: |  | | The question does not have to be directly related to Linux and any language is fair game. |  | | Without knowing the scripts it's difficult to know the problem exactly but try setting $IFS to a newline first: |
|
http://www.linuxquestions.org/questions/showthread.php?threadid=366617
(311 words)
|
|
| |
| | UNIX/Linux Bourne / Bash Shell Scripting Tutorial [ steve-parker.org ] |
 | | Amazon have a good number of books on the Unix Shell |  | | A Bourne Shell Programming/Scripting Tutorial for learning about using the Unix shell. |  | | All the content, available offline, no adverts, fully pagignated, and in a conveninent format to print. |
|
http://steve-parker.org/sh/sh.shtml
(208 words)
|
|
| |
| | shell script - LinuxQuestions.org |
 | | As well you will need to do #chmod +x /path/to/file on the scipt so it will run after clicking it. |  | | If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |  | | Shell Scripting: Getting a pid and killing it via a shell script |
|
http://www.linuxquestions.org/questions/showthread.php?threadid=367279
(388 words)
|
|
| |
| | The GNU Bourne-Again Shell |
 | | For more information on the features of Bash that are new to this type of shell, see the reference manual. |  | | Bash is the GNU Project's Bourne Again SHell, a complete implementation of the IEEE POSIX and Open Group shell specification with interactive command line editing, job control on architectures that support it, csh-like features such as history substitution and brace expansion, and a slew of other features. |  | | Bash is the standard shell on GNU/Linux systems. |
|
http://cnswww.cns.cwru.edu/~chet/bash/bashtop.html
(806 words)
|
|
| |
| | Tower Floor -- Shell Scripts |
 | | The upward stairs has a sign reading Tower Entrance and Reading Room while the stairs leading further down read Perl Scripts. |  | | A spiral staircase leading both up and down is to one side of the room. |  | | Just to the left of the staircase is another of the white marble circle. |
|
http://www.cit.gu.edu.au/~anthony/info/shell
(121 words)
|
|
|