4,546,952 th visitor since 2017.2.1 ( Today : 3344 )
Computer ???
No. 321
Name. swindler
Subject. shell 에서 single / double quotation mark
Main Cate. Linux
Sub Cate.
Date. 2008-12-09 19:09
Hit. 3815 (211.43.206.101)
File.
shell에서 single quotation mark(''')와 double quotation mark('"')와 back quatation mark('`')는 각각 의미가 다릅니다.
double quotation mark는 안에 $i라는 것이 있으면 i라는 변수의 값을 대치해서 넣어 줍니다. 그리고 하나의 argument(parameter)로 묶어주죠.
single quatation mark는 이와는 다르게 안에 있는 값을 해석하지 않습니다 그냥 $i로 놔두죠. 마지막으로 back quotation mark는 묶여진것을 command로 실행을 하고 그 결과를 그 위치에다 넣습니다.

[바로가기 링크] : http://coolx.net/cboard/computer/321



Name
Password
Comment
Copyright © 1999-2017, swindler. All rights reserved. 367,611 visitor ( 1999.1.8-2004.5.26 ), 2,405,771 ( -2017.01.31)

  2HLAB   2HLAB_Blog   RedToolBox   Omil   Omil_Blog