跳到主要內容

Bash scripting cheatsheet



Getting started Example #!/usr/bin/env bash NAME="John" echo "Hello $NAME!" Variables NAME="John" echo $NAME echo "$NAME" echo "${NAME}!" String quotes NAME="John" echo "Hi $NAME" #=> Hi John echo 'Hi $NAME' #=> Hi $NAME Shell execution echo "I'm in $(pwd)" echo "I'm in `pwd`" # Same

from Pocket https://ift.tt/2AaMeBD
via IFTTT

留言

這個網誌中的熱門文章

[經驗分享]開源IT資產管理系統 - Open-AudIT

企業營運必定與電腦系統脫離不了關係,每一部電腦散落在各部門、各辦公室,若是較具規模的公司,甚至會有跨好幾個地區的辦公室存在。 from Pocket http://ift.tt/2sI5nuB via IFTTT

Jitsi Meet 視訊會議教學:免費無限人數時間、共享桌面、錄影

想要試試看「 Jitsi Meet 」,在電腦上,直接打開「 」即可。不需註冊帳號,也不需安裝軟體。 「 Jitsi Meet 」的 App 端也不需要註冊帳號,可以直接開啟或加入視訊會議。 那麼如何在「 Jitsi Meet 」上開起一個視訊會議呢? 在視訊 from Pocket https://ift.tt/2wdd3Z1 via IFTTT

Setting up a CUPS server with Docker on a Synology NAS for my Brother printer

I made the unfortunate mistake of purchasing a cheap brother printer, the Brother HL-L2300D, which is USB only. And not only is it a USB printer, it is a Winprinter which makes it very limited in anything other than Windows. from Pocket http://ift.tt/2gbYuYH via IFTTT