ex-08-02_cmdsub.sh

来自「Berkely的学生写的」· Shell 代码 · 共 13 行

SH
13
字号
#!/bin/sh -v# Chapter 08 - Section Command Substitution# This script demonstrates the use of command substitutionDATE=`date`USERS=`who | wc -l`UP=`date ; uptime`echo $DATEecho $USERSecho $UPgrep `id -un` /etc/passwd

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?