Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
9 Cards in this Set
- Front
- Back
Redirection |
new file (>) append file (>>) stdin (< <<) |
|
pipe (|) |
way to connect the output of oneprogram to the input of anotherprogram without any temporary file |
|
filter |
performs some kind of processon the input and gives output. When a program takes its input from another program, performs some operation on that input, and writes the result to the standard output, |
|
grep regexhere |
The grep program searches a file or files for lines that have a certain pattern. |
|
ambil brsias dari urutan ke-n sampai m |
#head -n 'm' < logs.txt | tail -n 'n' |
|
Syntax while |
while [ condition ] docommand1command2command3.... done |
|
sed |
isi... |
|
awk |
isi... |
|
Special character |
1. \ the backslash escape character, The backslash memberikan arti spesial kepada karakter setelahnya. Misal \n berarti newline. 2. ^ the caret adalah awal dari baris anchor atau simbol negasi. Misal "^a" berarti "a" pada awal baris. 3. $ the dollar is akhir dari baris anchor. Misal "b$" berarti "b" pada akhir baris. 4. { } tanda buka dan tutup dari brackets menandakan rentang bilangan. Misalnya "a{2,3}" berarti "aa" atau "aaa". 5. [ ] the open and close square bracket mendefinisikan sebuah kelas karakter untuk sebuah single karakter yang dihasilkan. Misal "[d-f]" berarti "[def]" maka keluarannya "d", "e" atau "f". 6. ( ) the open and close parenthesis digunakan untuk meng-kelompokan karakter (atau regex lain). Misal "(ab)\1" berarti "abab". 7. . titik menyamakan semua karakter kecuali baris baru. Misal ".a" menyamakan 2 karakter secara konsekutif yang bagian terakhirnya adalah "a". 8. * bintang adalah kuantifier match-zero-or-more. Misak "^.*$" menandakan semual baris 9. | the vertical pipe memisahakan serangkaian alternatif. Misal "(a|b|c)a" berarti "aa" or "ba" or "ca". 10. - minus menandakan rentang kelas karakter ketika dia tidak berada di posisi pertama setelah bracket awal "[" atau posisi akhir bracket penutup "]". Misal "[A-Z]" berarti semua karakter capital. |