Skip to content

Commit f12da37

Browse files
committed
Shell files ##head to ## head
1 parent bd8f336 commit f12da37

19 files changed

+359
-359
lines changed

awk.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
# For even more sanity, use Python.
1414

15-
##variables
15+
## variables
1616

1717
#same as c
1818

@@ -22,7 +22,7 @@
2222
#$\n: fields
2323
#last field: $(NF-1)
2424

25-
##FS
25+
## FS
2626
#field (column) separator
2727
#FS=':' FS=/[[:space:]]/ -F'/[[:space:]]/'
2828
#OFS: output field separator
@@ -40,7 +40,7 @@
4040

4141
#- if else for while: like C
4242

43-
##general syntax
43+
## general syntax
4444

4545
#A general awk program is of the type:
4646

@@ -57,13 +57,13 @@
5757
echo '0.5 0.5' | awk '{print $1+$2}'
5858
#1
5959

60-
##string num conversion
60+
## string num conversion
6161

6262
awk 'BEGIN{print "1"+1}'
6363
awk 'BEGIN{print " 1"+1}'
6464
#2
6565

66-
##print
66+
## print
6767

6868
awk 'BEGIN{print "a", 1}'
6969
#'a 1'
@@ -74,7 +74,7 @@
7474
awk '{print}'
7575
#cat
7676

77-
##applications
77+
## applications
7878

7979
#Print second field of all entries if first field equals:
8080

chat.sh

+16-16
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
# Chat utilities, specially command line ones.
44

5-
##mseg write wall
5+
## mseg write wall
66

77
# Write messages to other users on the system.
88

9-
##mseg
9+
## mseg
1010

1111
# Enable/disable messages:
1212

@@ -17,7 +17,7 @@
1717
mseg
1818
#y
1919

20-
##write
20+
## write
2121

2222
# Write to a user in a TTY:
2323

@@ -34,7 +34,7 @@
3434
h=
3535
sudo write $h@$u tty2
3636

37-
##wall
37+
## wall
3838

3939
# Write to all:
4040

@@ -57,15 +57,15 @@
5757
#go to tty3
5858
#your message is there!
5959

60-
##talk
60+
## talk
6161

6262
# Commandline chat program.
6363

6464
# POSIX.
6565

6666
sudo aptitude install -y talk
6767

68-
##IRC
68+
## IRC
6969

7070
#internet relay chat
7171

@@ -83,42 +83,42 @@
8383

8484
#it is also possible to send files to people
8585

86-
##commands
86+
## commands
8787

8888
#intro: <http://www.irchelp.org/irchelp/irctutorial.html>
8989

9090
#full list: <http://en.wikipedia.org/wiki/List_of_Internet_Relay_Chat_commands>
9191

9292
#/connect <server>
9393

94-
##ubuntu channel
94+
## ubuntu channel
9595

96-
##register
96+
## register
9797

9898
xdotool type "/msg nickserv register $password $email"
9999

100-
##verify registration
100+
## verify registration
101101

102102
#go to your email and get the registration code
103103

104104
regcode=
105105
xdotool type "/msg nickserv verify register $uname $regcode"
106106

107-
##clients
107+
## clients
108108

109-
##pidgin
109+
## pidgin
110110

111111
#good because integrates with other ims
112112

113-
##create account
113+
## create account
114114

115115
#irc server + username on that server == a pidgin account
116116

117117
#add account > irc
118118

119119
#enter server username and pass
120120

121-
##join/create channel:
121+
## join/create channel:
122122

123123
#an irc channel == a pidgin chat
124124

@@ -133,14 +133,14 @@
133133

134134
#if you close the chat window, it will not be on your buddy list anymore
135135

136-
##add channel to buddy list permanently:
136+
## add channel to buddy list permanently:
137137

138138
#buddies > add a group. name it "irc".
139139

140140
#buddies > show > empty groups
141141

142142
#buddies > add a chat. choose type irc, server, channel.
143143

144-
##irssi
144+
## irssi
145145

146146
#ncurses

chroot.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# The root of a process is a Linux concept: every process descriptor has a root field,
44
# and system calls issued from that process only look from under the root (known as `/` to that process).
55

6-
##application
6+
## application
77

88
# You have a partition that contains a linux system,
99
# but for some reason you are unable to run it.

cut.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env sh
22

3-
##cut
3+
## cut
44

55
# POSIX 7: <http://pubs.opengroup.org/onlinepubs/9699919799/utilities/cut.html#tag_20_28>
66

env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
[ "$(a='c' bash -c 'echo "$a"')" = 'c' ] || exit 1
2222
[ "$a" = 'b' ] || exit 1
2323

24-
##i
24+
## i
2525

2626
# Run command in a clean environment without inheriting exports
2727
# except those explicitly given.

eval.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
[ `eval echo a` = a ] || exit 1
1111

12-
##applications
12+
## applications
1313

1414
# Make varname from var>
1515

guake.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#It is possible for example to open new tabs or toogle visibility from other shells.
1616

17-
##yakuake
17+
## yakuake
1818

1919
#KDE alternative.
2020

info.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@
1010
# - ?: help
1111
# - x: close help
1212

13-
##page
13+
## page
1414

1515
# - <space>: down one page. May change nodes.
1616
# - <backspace>: up one page. May change nodes.
1717
# - b, e: beginning/end of current node.
1818
# - s, /: search string
1919
# - {, }: repeat search back/forward
2020

21-
##menu
21+
## menu
2222

2323
# - <arrows>: move cursor
2424
# - <enter>: go to link under cursor
@@ -28,7 +28,7 @@
2828
# can tab complete.
2929
# even without tab complete, goes to first match on enter.
3030

31-
##node
31+
## node
3232

3333
# - u: parent node
3434
# - t: top node
@@ -37,7 +37,7 @@
3737
# - l: go to last viewed node. can be used several times.
3838
# - g: like m, but search all nodes
3939

40-
##search
40+
## search
4141

4242
# - /: regex
4343
# - {: next match of previous search

jobs.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
jobs -p
1212

13-
##jobspecs
13+
## jobspecs
1414

1515
# Local job id, found by using <#jobs>
1616

make/rule/timestamp/test.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
##in out
3+
## in out
44

55
#create `in`:
66
make change_in
@@ -13,7 +13,7 @@ make change_in
1313
make out
1414
make clean
1515

16-
##nodep
16+
## nodep
1717

1818
#runs:
1919
make nodep
@@ -22,7 +22,7 @@ make change_nodep
2222
make nodep
2323
make clean
2424

25-
##phony
25+
## phony
2626

2727
#runs:
2828
make phony

man.sh

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# POSIX 7 specifies only the option `-k` and nothing about pages,
66
# those are Linux concepts.
77

8-
##pages
8+
## pages
99

1010
# The manual is organized into 7 pages.
1111

@@ -97,7 +97,7 @@
9797
man 8 grub-install
9898
man 8 mount
9999

100-
##GNU command line options
100+
## GNU command line options
101101

102102
# Exact search on title. Shows only first page found match:
103103

@@ -119,7 +119,7 @@
119119

120120
# May be slow:
121121

122-
##--regex
122+
## --regex
123123

124124
# Whatever you were searching search with ERE now.
125125

@@ -139,7 +139,7 @@
139139

140140
man -k .
141141

142-
##linux man-pages project
142+
## linux man-pages project
143143

144144
# <https://www.kernel.org/doc/man-pages/>
145145

@@ -149,15 +149,15 @@
149149

150150
# It is not a part of the kernel tree, and does not seem to be mentioned in the LSB.
151151

152-
##whatis
152+
## whatis
153153

154154
# Non POSIX
155155

156156
# Show man short description of ls
157157

158158
whatis ls
159159

160-
##manpath
160+
## manpath
161161

162162
# Man search path
163163

@@ -177,12 +177,12 @@
177177

178178
ls /usr/share/man/man1 | less
179179

180-
##GUI front-ends
180+
## GUI front-ends
181181

182182
# There is one single and drastic advantage to it:
183183
# clickable references to other manpages
184184

185-
##yelp
185+
## yelp
186186

187187
# Ubuntu default documentation front-end. Also does other formats.
188188

0 commit comments

Comments
 (0)