Sponsored Content
Full Discussion: know about :
Top Forums Shell Programming and Scripting know about : Post 302423481 by clx on Friday 21st of May 2010 06:32:47 AM
Old 05-21-2010
This probably does the following:

1. check if $1 ( first argument) is available, if yes assign its value to C_id, if not, assign -1 to C_id.
2. if case one executed successfully. check if $2 ( second argument) is available, if yes assign its value to f_id, if not, assign -1 to f_id.
3. if case 2 executed successfully, compare value if C_id with -1, if its equal to -1, execute the Sintaxis function.

---------- Post updated at 04:02 PM ---------- Previous update was at 03:37 PM ----------

And regarding "&&",

&& and || are the shell construct. which applies the action based on the success or failure of the previous commands.

Code:
cd abc && echo "change dir successfully" || echo "failed to change dir"

In the above code,
if "cd" si successful to change i.e exit code is zero. this will execute the command after "&&". if it failed to change dir, the commands after "||" will be executed.
 
PAPS(1) 						      General Commands Manual							   PAPS(1)

NAME
paps - UTF-8 to PostScript converter using Pango SYNOPSIS
paps [options] files... DESCRIPTION
paps reads a UTF-8 encoded file and generates a PostScript language rendering of the file. The rendering is done by creating outline curves through the pango ft2 backend. OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. --landscape Landscape output. Default is portrait. --columns=cl Number of columns output. Default is 1. Please notice this option isn't related to the terminal length as in a "80 culums terminal". --font=desc Set the font description. Default is Monospace 12. --rtl Do right to left (RTL) layout. --paper ps Choose paper size. Known paper sizes are legal, letter and A4. Default is A4. Postscript points Each postscript point equals to 1/72 of an inch. 36 points are 1/2 of an inch. --bottom-margin=bm Set bottom margin. Default is 36 postscript points. --top-margin=tm Set top margin. Default is 36 postscript points. --left-margin=lm Set left margin. Default is 36 postscript points. --right-margin=rm Set right margin. Default is 36 postscript points. --gutter-width=gw Set gutter width. Default is 40 postscript points. --help Show summary of options. --header Draw page header for each page. --markup Interpret the text as pango markup. --lpi Set the lines per inch. This determines the line spacing. --cpi Set the characters per inch. This is an alternative method of specifying the font size. --stretch-chars Indicates that characters should be stretched in the y-direction to fill up their vertical space. This is similar to the texttops behaviour. AUTHOR
paps was written by Dov Grobgeld <dov.grobgeld@gmail.com>. This manual page was written by Lior Kaplan <kaplan@debian.org>, for the Debian project (but may be used by others). April 17, 2006 PAPS(1)
All times are GMT -4. The time now is 03:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy