約66,300件1ページ目

条件を指定して検索しています。すべての条件を解除する

  • 最終更新日:6か月以内
  • 2024/3/6 -exprコマンドで正規表現の比較ができる. ただし,exprコマンドは拡張正規表現が使えない.例えば, (Apple|Orange) は扱えない.bashやzshは ...

    2024/3/24 -シェルスクリプトで使える比較演算子一覧 · 数値比較演算子 · 文字列比較演算子 · ファイルチェック演算子 · 条件式の結合 ...

    シェルスクリプトで使える比較演...-ファイルチェック演算子

    2024/3/18 -By using the length option of expr, we can extract the length of a string. ... The value of $(expr length “$str ... The varlen.sh script contains a simple case ...

    2023/12/9 -[ や test コマンドは引数に演算子を渡すと、文字列や数値の比較をしたり、ファイルの存在を判定してくれたりします。そして、判定の結果が真であれば 0、偽であれば 1 を ...

    2024/1/30 -シェルスクリプトのif文 if文は、シェルスクリプトにおいて条件分岐を行うための構文です。条件に応じて異なる処理を実行する際に使用されます。条件が真の場合は一連 ...

    2024/1/17 -Let's start with my first Google result — expr . #!/bin/sh a=1 b=2 c ...

    2024/5/6 -ここではシェルスクリプトで使用するif文について以下の内容で解説していきます。 ・if文とは・if文で使用できる演算子・if文で文字列の比較・if文で数値の比較 ...

    2024/3/29 -if 文を使って、年齢が18歳以上かどうかを判定し、結果に応じてメッセージを表示します。 ・1から5までのカウントをしていきます。 for ループを使って、1から5までの数値 ...

    2024/3/18 -Importantly, while test can diverge from the POSIX standard with comparisons like ==, we can use sh or a service like ShellCheck to ensure compliance, if ...

    2024/2/5 -Want to do some simple calculations in Linux? Just use the expr command. This command can perform various operations, such as evaluating expressions, ...