Books
in black and white
Main menu
Home About us Share a book
Books
Biology Business Chemistry Computers Culture Economics Fiction Games Guide History Management Mathematical Medicine Mental Fitnes Physics Psychology Scince Sport Technics
Ads

Linux for dummies - Klimas M.

Klimas M. Linux for dummies - Wiley publishing , 2002. - 169 p.
Download (direct link): linuxfordummies2002.pdf
Previous << 1 .. 102 103 .. 104105 106 107 < 108 > 109 110 111 112 113 114

Dec Hex Char Dec Hex Char Dec Hex Char Dec Hex Cha
0 00 NUL 'XG' 32 20 SPACE 64 40 @ 96 60 -
1 01 SOH 33 21 І 65 41 A 97 61 a
2 02 STX 34 22 " 66 42 B 98 62 b
3 03 ETX 35 23 # 67 43 C 99 63 c
4 04 EOT 36 24 $ 68 44 D 100 64 d
5 05 ENQ 37 25 69 45 E 101 65 e
6 06 ACK 38 26 & 70 46 F 102 66 f
7 07 BEL 'Xa' 39 27 ' 71 47 G 103 67 g
8 08 BS 'Xb' 40 28 ( 72 48 H 104 68 h
9 09 HT 'Xt' 41 29 ) 73 49 I 105 69 i
10 GA LF 'Xn' 42 2A * 74 4A J 106 6A j
11 GB VT 'Xv' 43 2B + 75 4B K 107 6B k
12 GC FF 'Xf' 44 2C 76 4C L 108 6C l
13 GD CR 'Xr' 45 2D - 77 4D M 109 6D m
14 GE SO 46 2E 78 4E N 110 6E n
15 GF SI 47 2F / 79 4F O 111 6F o
16 10 DLE 48 30 0 80 50 P 112 70 p
17 11 DC1 49 31 1 81 51 Q 113 71 q
18 12 DC2 50 32 2 82 52 R 114 72 r
19 13 DC3 51 33 3 83 53 S 115 73 s
20 14 DC4 52 34 4 84 54 T 116 74 t
21 15 NAK 53 35 5 85 55 U 117 75 u
22 16 SYN 54 36 6 86 56 V 118 76 v
23 17 ETB 55 37 7 87 57 W 119 77 w
24 18 CAN 56 38 8 88 58 X 120 78 x
Part 7: Learning with Linux
146
wc
Linux Newbie Guide by Stan, Peter and Marie Klimas
01/08/2003
25 19
26 1A
27 1B
28 1C
29 1D
30 1E
31 1F
uniq
(=unique) Eliminate duplicate lines in sorted input. Example: sort myfile l uniq fold -w 30 -s my_file.txt > new_file.txt
Wrap the lines in the text file my_file.txt so that there is 30 characters per line. Break the lines on spaces. Output goes to new_file.txt.
fmt -w 75 my_file.txt > new_file.txt
Format the lines in the text file to the width of 75 characters. Break long lines and join short lines as required, but don't remove empty lines.
nl myfile > myfile_lines_numbered
Number the lines in the file myfile. Put the output to the file myfiles_lines_numbered. indent -kr -i8 -ts8 -sob -l80 -ss -bs -psl "$@" *.c
Change the appearance of "C" source code by inserting or deleting white space. The formatting options in the above example conform to the style used in the Linux kernel source code (script /usr/src/linux/scripts/Lindent). See man indent for the description of the meaning of the options. The existing files are backed up and then replaced with the formatted ones.
rev filename > filename1
Print the file filename, each line in reversed order. In the example above, the output is directed to the file filename1. shred filename
Repeatedly overwrite the contents of the file filename with garbage, so that nobody will ever be able to read its original contents again. paste filel file2 > file3
Merge two or more text files on lines using <Tab> as delimiter (use option "d=" to specify your own delimiter(s).
Example. If the content of filel was:
1
2 3
and file2 was:
a
b
c
d
the resulting file3 would be:
1 a
2 b
3 c
EM 57 З9 9 89 59 Y 121 79 y
SUB 58 ЗА : 9О 5A Z 122 7A z
ESC 59 3B ; 91 5B [ 12З 7B I
FS 6О ЗС < 92 5C \ '\\' 124 7C |
GS 61 3D = 9З 5D ] 125 7D I
RS 62 3E > 94 5E 126 7E
US 6З 3F ? 95 5F 127 7F DEL
If you wondered about the control characters, here is the meaning of some of them on the console (Source: man console_codes). Each line below gives the code mnemonics, its ASCII decimal number, the key combination to produce the code on the console, and a short description:
BEL (7, <Ctrl>G) bell (=alarm, beep).
BS (8, <Ctrl>H) backspaces one column (but not past the beginning of the line).
HT (9, <Ctrl>I) horizonal tab, goes to the next tab stop or to the end of the line if there is no earlier tab stop.
LF (10, <Ctrl>J), VT (11, <Ctrl>K) and FF (12, <Ctrl>L) all three give a linefeed.
CR (13, <Ctrl>M) gives a carriage return.
50 (14, <Ctrl>N) activates the G1 character set, and if LF/NL (new line mode) is set also a carriage return.
51 (15, <Ctrl>O) activates the G0 character set.
CAN (24, <Ctrl>X) and SUB (26, <Ctrl>Z) interrupt escape sequences.
ESC (27, <Ctrl>[) starts an escape sequence.
DEL (127) is ignored.
CSI (155) control sequence introducer.
Part l: Learning with Linux
14l
Linux Newbie Guide by Stan, Peter and Marie Klimas
d
01/08/2003
join file1 file2 > file3
Join lines of two files on a common field. join parallels the database operation "join tables", but works on text tables. The default is to join on the first field of the first table, and the default delimiter is white space. To adjust the defauls, I use options which I find using man join).
Example. if the content of file1 was:
1 Barbara
2 Peter
3 Stan
4 Marie
and file2 was:
2 Dog 4 Car 7 Cat
the resulting file3 would be:
2 Peter Dog 4 Marie Car
des -e plain_file encrypted_file
(="Data Encryption Standard") Encryptplain_file. You will be ask for a key that the program will use for encryption. Output
goes to encrypted_file. To decrypt use
des -d encrypted_file decrypted_file.
gpg
"Gnu Privacy Guard"-- a free equivalent of PGP ("Pretty Good Privacy"). gpg is more secure than PGP and does not use any patented algorithms. gpg is mostly used for signing your e-mail messages and checking signatures of others. You can also use it to encrypt/decrypt messages. http://www.gnupg.org/ contains all the details, including a legible, detailed manual.
Previous << 1 .. 102 103 .. 104105 106 107 < 108 > 109 110 111 112 113 114