Tuesday, August 18, 2015

stdout ciktisini ters cevirerek yazdirmak

tac - concatenate and print files in reverse

[root@node1 basic-setup]# cat /etc/resolv.conf
# Generated by NetworkManager

[root@node1 basic-setup]# cat /etc/resolv.conf | tac
# Generated by NetworkManager

sed: delete a line containing a specific string using gnu sed

sed -i '/pattern to match/d' ./infile

Monday, August 17, 2015

git archive ile branch export islemi

git archive <branch_name> | gzip > file.tgz


git archive beta | gzip > beta.tgz