LoginSignup
0
0

More than 5 years have passed since last update.

shellいろいろまとめ

Last updated at Posted at 2017-01-13

test command

例:

[ ! -z STRING ]
[ -f file ]

参考: http://www.computerhope.com/unix/test.htm

Built-in Variables(special variables)

http://johnstowers.co.nz/pages/bash-cheat-sheet.html
https://www.tutorialspoint.com/unix/unix-special-variables.htm
http://www.tldp.org/LDP/abs/html/internalvariables.html

Array

append to file

echo "hello world" | tee -a file

replace content in file

sed -i 's/original/new/g' file.txt
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0