From 7b4484fce4c5e7f88778a9d94edd13174d00083c Mon Sep 17 00:00:00 2001 From: Puneeth Chaganti Date: Fri, 18 Sep 2009 16:06:59 +0530 Subject: Minor changes in ULT-sessions 4,5 and LaTeX handout for Sphinx build. --- ult/Section_5.rst | 30 +++++++++++++++--------------- ult/session4.rst | 2 +- 2 files changed, 16 insertions(+), 16 deletions(-) (limited to 'ult') diff --git a/ult/Section_5.rst b/ult/Section_5.rst index 4dc09e7..6fa8562 100644 --- a/ult/Section_5.rst +++ b/ult/Section_5.rst @@ -594,7 +594,21 @@ Say we wish to write a simple program that takes user input and prints it back, done exit 0 -Now lets try and use these above mentioned options provided by shell to write a utility. Until now, when we try find or locate it looks through directories and files for result. But they wont search through tar archives and zipped files. Lets create a shell script for especially looking through these files: :: +``until`` +~~~~~~~~~ + +The ``until`` loop is similar to the ``while`` loop, except that it executes until the conditional command does not execute properly. + +The infinite loop changes to the following, when ``until`` is used. +:: + + until false + do + echo "True" + done + +Now lets try and use these above mentioned options provided by shell to write a utility. Until now, when we try find or locate it looks through directories and files for result. But they wont search through tar archives and zipped files. Lets create a shell script for especially looking through these files +:: #!/bin/sh @@ -628,18 +642,6 @@ Now lets try and use these above mentioned options provided by shell to write a done done -``until`` -~~~~~~~~~ - -The ``until`` loop is similar to the ``while`` loop, except that it executes until the conditional command does not execute properly. - -The infinite loop changes to the following, when ``until`` is used. -:: - - until false - do - echo "True" - done Functions --------- @@ -699,5 +701,3 @@ Further Reading: * http://tldp.org/LDP/abs/html/ * http://tldp.org/LDP/Bash-Beginners-Guide/html/Bash-Beginners-Guide.html - -.. LocalWords: allfiles txt cvf vf tf regex mkdir cp cd xvf gzip gz stdout diff --git a/ult/session4.rst b/ult/session4.rst index 84aa019..70ddb01 100644 --- a/ult/session4.rst +++ b/ult/session4.rst @@ -402,7 +402,7 @@ Searching and Replacing +-----------------------------------------+---------+ +---------------------------------------+------------------+ -| Finding and Replacing | +| Finding and Replacing | Commands | +=======================================+==================+ | Replace the first instance of ``old`` |``:s/old/new`` | | with ``new`` in the current line. | | -- cgit