This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
def ilk | |
"giste ilk adim" | |
end | |
puts ilk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <netdb.h> | |
#include <arpa/inet.h> | |
int main(int argc, char *argv[]) | |
{ | |
struct hostent *h; | |
h = gethostbyname(argv[1]); | |
printf("IP AAdresi : %s\n", inet_ntoa(*((struct in_addr *)h->h_addr))); | |
return 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
$cat>bilbakalim | |
echo “Bir deger sayi giriniz” | |
read sayi | |
if [ $sayi -eq 0 ]; then | |
echo “sayi sıfır” | |
elif [ $sayi -gt 0 ]; then | |
echo “Sayi Pozitif” |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PATH=/usr/bin/* | |
for f in $PATH; do | |
if [ -x $f ]; then | |
echo "executable-->$f" | |
fi | |
if [ -h $f ]; then | |
echo "symbolic-->$f" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
PATH=/usr/bin/* | |
yol="/usr/bin/" | |
for f in $PATH; do | |
i=$((${#f}-${#yol})) | |
if [ $i -le 3 ]; then | |
echo $f | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Istediginiz kota sinirini giriniz " | |
read kota | |
echo "Kota sinirini asan kullanicilar" | |
echo " " | |
du -s $(readlink -f $HOME/..)/* 2>/dev/null | while read dosya; do | |
boyut=`echo $dosya | cut -d ' ' -f1` | |
kul=`echo $dosya | cut -d ' ' -f2` | |
if [ $boyut -gt $kota ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while read line; do | |
echo $line | awk -F, '{print $1}' | |
done < foo.txt > ad.txt | |
while read line; do | |
echo $line | awk -F, '{print $2}' | |
done < foo.txt > soyad.txt | |
while read line; do | |
echo $line | awk -F, '{print $3}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
while read line; do | |
echo $line | |
done < numara.txt | grep '^08' > sifirsekiz.txt | |
while read line; do | |
echo $line | |
done < numara.txt | grep '^09' > sifirdokuz.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/awk -f | |
BEGIN { | |
} | |
{ | |
key = $1 | |
dict[key] = $2 | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
VIZE="vize" | |
FINAL=50 | |
ORT=60 | |
GIRDI="isim.csv" | |
calis=$(awk ' | |
BEGIN { | |
FS="," |
OlderNewer