انجمن‌های فارسی اوبونتو

لطفاً به انجمن‌ها وارد شده و یا جهت ورود ثبت‌نام نمائید

لطفاً جهت ورود نام کاربری و رمز عبورتان را وارد نمائید




نویسنده موضوع: در مورد دستور man  (دفعات بازدید: 513 بار)

0 کاربر و 1 مهمان درحال مشاهده موضوع.

آفلاین abdossamad2003

  • Full Member
  • *
  • ارسال: 157
در مورد دستور man
« : 10 اردیبهشت 1398، 07:52 ب‌ظ »
با سلام خدمت دوستان
به عنوان مثال می خواهم بدونم دستور if چیست؟ در شل کد man if را وارد می کنم خروجی زیر را می دهد که هیچ توضیحاتی در مورد ساختار و آپشن این دستور را نمی دهد آیا راه دیگری برای دسترسی به راهنمای دستورات فوق وجود دارد. همچنین در مورد شکل دستور در دیگر شل ها مانند csh
if(3pm)                Perl Programmers Reference Guide                if(3pm)



NAME
       if - "use" a Perl module if a condition holds

SYNOPSIS
         use if CONDITION, MODULE => ARGUMENTS;

DESCRIPTION
       The construct

         use if CONDITION, MODULE => ARGUMENTS;

       has no effect unless "CONDITION" is true.  In this case the effect is
       the same as of

         use MODULE ARGUMENTS;

       Above "=>" provides necessary quoting of "MODULE".  If not used (e.g.,
       no ARGUMENTS to give), you'd better quote "MODULE" yourselves.

BUGS
       The current implementation does not allow specification of the required
       version of the module.

AUTHOR
       Ilya Zakharevich <mailto:ilyaz@cpan.org>.



perl v5.16.3                      2013-03-04                           if(3pm)

آفلاین M!lad

  • عضو کاربران ایرانی اوبونتو
  • *
  • ارسال: 1757
پاسخ : در مورد دستور man
« پاسخ #1 : 10 اردیبهشت 1398، 09:41 ب‌ظ »
if یک کلمه کلیدی شل هست. اجرا کنید:

help if
..I feel no fault for the fault I feel..

آفلاین abdossamad2003

  • Full Member
  • *
  • ارسال: 157
پاسخ : در مورد دستور man
« پاسخ #2 : 11 اردیبهشت 1398، 04:12 ب‌ظ »
با تشکر
اگر بخواهیم راهنمای دستور if در شل csh را بدانیم چه دستوری وارد کنیم.

آفلاین علی رزم دیده

  • عضو کاربران ایرانی اوبونتو
  • *
  • ارسال: 1244
  • جنسیت : پسر
  • ali76 سابق
پاسخ : در مورد دستور man
« پاسخ #3 : 16 اردیبهشت 1398، 04:56 ق‌ظ »
اگر بخواهیم راهنمای دستور if در شل csh را بدانیم چه دستوری وارد کنیم.

با سلام
می تونین man page خود شلتون رو مطالعه کنین :
$ man tcsh
       if (expr) command
               If expr (an expression, as described under Expressions) evaluates true, then command is executed.  Variable substitution on command happens early, at  the
               same  time  it does for the rest of the if command.  command must be a simple command, not an alias, a pipeline, a command list or a parenthesized command
               list, but it may have arguments.  Input/output redirection occurs even if expr is false and command is thus not executed; this is a bug.

       if (expr) then
       ...
       else if (expr2) then
       ...
       else
       ...
       endif   If the specified expr is true then the commands to the first else are executed; otherwise if expr2 is true then the commands to the second else  are  exe‐
               cuted,  etc.  Any number of else-if pairs are possible; only one endif is needed.  The else part is likewise optional.  (The words else and endif must ap‐
               pear at the beginning of input lines; the if must appear alone on its input line or after an else.)

آفلاین helium

  • Full Member
  • *
  • ارسال: 168
  • جنسیت : پسر
به خدا چنان امیدوار باش که اگر گناه جن و انس را بیاوری به تو رحم کند.

لقمان حکیم