Skip to content

Instantly share code, notes, and snippets.

View ersoyugur's full-sized avatar

Ugur Ersoy ersoyugur

  • Garanti Tech.
  • Istanbul
View GitHub Profile
@ersoyugur
ersoyugur / Notepad++AdvancedSearch.txt
Created July 28, 2018 09:28 — forked from ramons03/Notepad++AdvancedSearch.txt
Notepad++ Advanced search and replace. Null, Enter char, Tab, Regular Expressions, Etc.
Open the find/replace dialog.
At the bottom will be some Search mode options. Select "Extended (\n \r \t \0 \x...)"
In either the Find what or the Replace with field entries, you can use the following escapes:
\n new line (LF)
\r carriage return (CR)
\t tab character
\0 null character
\xddd special character with code ddd
@ersoyugur
ersoyugur / bash-cheatsheet.sh
Created December 31, 2017 08:54 — forked from LeCoupa/bash-cheatsheet.sh
Bash CheatSheet for UNIX Systems --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
#!/bin/bash
#####################################################
# Name: Bash CheatSheet for Mac OSX
#
# A little overlook of the Bash basics
#
# Usage:
#
# Author: J. Le Coupanec
# Date: 2014/11/04
@ersoyugur
ersoyugur / expecting.md
Created December 30, 2017 18:04 — forked from ksafranski/expecting.md
Basic principles of using tcl-expect scripts

Intro

TCL-Expect scripts are an amazingly easy way to script out laborious tasks in the shell when you need to be interactive with the console. Think of them as a "macro" or way to programmaticly step through a process you would run by hand. They are similar to shell scripts but utilize the .tcl extension and a different #! call.

Setup Your Script

The first step, similar to writing a bash script, is to tell the script what it's executing under. For expect we use the following:

#!/usr/bin/expect