10 Kasım 2017 Cuma

Python - Metin içinde string arama

if word in mystring:
   print 'success'

Bash - Komut çıktısını döngüye input etmek

while read u; do
  echo kullanici:$u
done < <(git shortlog -sn | cut -f2)

Git - Commit logları

git log --committer="Yigit" --oneline --shortstat --after=2017-01-01 --before=2018-01-01

Sed - Dosyanın her satırına prepend etmek

text.txt | sed "s/^/[prepend1] /"

Python - Kabuk komutu çalıştırmak

import os

os.system('dir')

Python - Kabuk komutunun çıktısını kullanmak

import os
p=os.popen('dir /s/b pom.xml')

while 1:
 line = p.readline()
 if not line: break
 print "Satir:" + line


8 Mart 2017 Çarşamba

Powershell versiyon

$PSVersionTable.PSVersion