-
Notifications
You must be signed in to change notification settings - Fork 0
/
alias.bash
41 lines (37 loc) · 1.14 KB
/
alias.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
alias x='ls -lat *.txt'
alias g='grep -c "^Going" 1.txt | sed -e "s,^,Going ,"'
alias f='grep -c "^=Fetching=" 1.txt| sed -e "s,^,Fetch ,"'
alias r='grep -c " Gos: " 2.txt'
alias e='grep -c "^REJECT" 1.txt | sed -e "s,^,Rejects ,"'
alias so='. ./alias.bash'
alias run='/bin/rm -f 1.txt 2.txt && go test -test.v 1>1.txt 2>2.txt &'
alias k='kill %go'
alias 2='cat 2.txt'
alias 1='less 1.txt'
function creep () {
egrep 'Creeping:' 1.txt
egrep 'Current Domain: ' 2.txt
x
g
f
e
grep -w NIL *.txt
grep -c '^=ENDING' 1.txt | sed -e 's,^,Ending ,'
grep -c 'Too many urls fetched' 1.txt | sed -e 's,^,Too many urls: ,'
grep -c 'Test got result' 1.txt | sed -e 's,^,Test got result: ,'
egrep '^Waited:|Test Done|Test Closed| go Status: |StatusCode | Test killed: ' 1.txt
grep -n DONE *.txt
grep 'Test ending after' 2.txt
grep -i -w error *.txt
}
function scan () {
#There's a better way to do this.
grep -h routineStatus *.go | grep -v 'strings.Join' | sed -r -e 's,^[ \t]+,,' | sort
}
install () {
go install -v -x
}
remove () {
/bin/rm ../../pkg/linux_amd64/creep.a
#/bin/rm /home/ricky/Projects/Go/own/pkg/linux_amd64/creep.a
}