variable etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
variable etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster

12 Mart 2018 Pazartesi

Bash - Değişkenin bir kısmını yazdırmak

variable="bu sozcuk Turkce"

echo ${variable%sozcuk*}
bu (sozcuk'ten öncesi)

echo ${variable#*sozcuk}

Turkce (sozcuk'ten sonrası)

21 Haziran 2013 Cuma

Linux kabuk değişkenleri

$$ = The PID number of the process executing the shell.
$? = Exit status variable.
$0 = The name of the command you used to call a program.
$1 = The first argument on the command line.
$2 = The second argument on the command line.
$n = The nth argument on the command line.
$* = All the arguments on the command line.
$# The number of command line arguments.