約1,200件1ページ目

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

  • 最終更新日:1年以内
  • 2023/9/12 -I've run across "X$1" recently and I'm at a loss. Anyone have any ideas what it could be? If you could illustrate your explanation with a simple example, ...

    2023/7/20 -Bashでスクリプトを書く場合のポイントをまとめたBashなどで書くシェル ... ほとんどのLinuxの sh は bash へのリンクとなって ... x$1" = "x-h" ]; then. とわざわざ x を ...

    2023/9/12 -#!/usr/bin/env bash if [[ $1 ]]; then x=$1 else read -p 'Enter a number: ' x fi if ((x % 2 == 0)); then echo "Even" else echo "Odd" fi. Share. Share a link ...

    2024/2/15 -How do I tell whether a program is installed and is executable from within a script? With some programs this works, eg ls > null 2>&1 && echo exists

    2024/1/24 -便利かなと思い、シェルスクリプトの勉強も兼ねスクリプトを書いてみました。シェル ... ファイルを氣輕に暗号化できるスクリプトを書く. Linux ... x "$1" ;; *.gz) gunzip " ...

    2024/4/5 -Explains how to find out current time and store to a shell variable under UNIX / Linux / BSD / macOS (OS X) shell scripting.

    2023/11/19 -It seems that POSIX sh's list of positional arguments has the characteristics of both a stack and a queue. It supports push ( set -- "$x" "$@" ), pop ( x="$1"; ...

    2024/3/28 -Linux text manipulation. Today, I ... Through a quick search, I found a tiny bash script, sp, that does what I need. ... NR==1{x=$1}{print x}. now we can combine ...

    2024/1/17 -Issue description. I'm trying to implement .bashrc content in a declarative manner but if I use its content inside HM Bash module in bashrcExtra or ...

    2023/9/8 -Which of the following shell script functions could help achieve the goal? ... function y() { dig $(dig -x $1 | grep PTR | tail ... linux shell to compare result.

    A.最近何故か cal.sh に関する質問が多いですね。 多分、ある学校で課題として出題されてるのでしょうね。 >x,y,zの値に不適切な入力値がある場合や、引数の数が2つより少ない場合 &...

    A.問題文では「引数をインクリメントする」って書かれているのに、なんで、 >③for文((i=$1 ; i%9 ; i++))の部分を((i=$1 ; i%9 ; i++))の形で使用せず、他の構文や

    A.Cygwinでは改行コードがCR+LFなのですがLinuxではLFのみです。 CR=^Mなのでそれを取り去ればいいわけですね。 取り去る方法としては nkf -Lu bc_last.dat >