Skip to content

Unix-like Operating Systems. Linux. Bash & Z shell. C. Synchronization Problems & Theory.

Notifications You must be signed in to change notification settings

andy489/Linux_Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UNIX/Linux/Bash shell, C

"vi has 2 modes. One that beeps at you, and another that ruins everything."

Subdomain Theme Link
Theory Unix-like Operating Systems – Theory Theory (main)
Theory (additional)
The Little Book of Semaphores
FMI>Tasks All tasks included in 2020 FMI longlist Longlist 2020
FMI>Cheat sheets Good coders code, great coders reuse Bash Redirection Cheat Sheets
vi Reference Card
Makefile
FMI>Project Image editor crop [ipoint median_faces rect_faces].sh
crop_all.sh

FMI Tasks

N Subdomain Task Solution
131 FMI>C>Processes Exam 2020-07-12 Task 2 foo.c
bar.c
130 FMI>C>Processes Exam 2020-07-12 Task 1 Examples
Solution.c
129 FMI>C>Processes Additional Task 2.md Solution.c
128 FMI>C>Processes Additional Task 1.md Solution.c
127 FMI>C>Processes cat a.txt / sort / uniq.c Solution 1 (long).c
Solution 2 (short).c
126 FMI>C>Processes cat passwd.txt / cut -d ':' -f 7 / sort / uniq.c Solution.c
125 FMI>C>Processes Task P03.c Solution.c
124 FMI>C>Processes Task P02.c Solution.c
123 FMI>C>Processes Task P01.c Solution 1.c
Solution 2.c
121 FMI>C>Processes Task 13.c Solution 1.c
Solution 2.c
120 FMI>C>Processes Task 12.c Solution.c
119 FMI>C>Processes Task 11.c Solution.c
118 FMI>C>Processes Task 10.c Solution.c
117 FMI>C>Processes Task 09.c Solution.c
116 FMI>C>Processes Task 08.c Solution 1.c
Solution 2(more precise).c
115 FMI>C>Processes Task 07.c Solution.c
114 FMI>C>Processes Task 06.c Solution.c
113 FMI>C>Processes Task 05.c Solution.c
112 FMI>C>Processes Task 04.c Solution.c
111 FMI>C>Processes Task 03.c Solution.c
110 FMI>C>Processes Task 02.c Solution.c
109 FMI>C>Processes Task 01.c Solution.c
108 FMI>C>Processes Task 48 Solution 1.c
Solution 2.c
test cmd for 2nd sol.sh
107 FMI>C>Processes Task 47 Solution.c
106 FMI>C>Processes Task 46 Solution.c
105 FMI>C>Processes Task 45 Solution.c
104 FMI>C>Processes Prompt with arguments.md Solution 1.c
Solution 2.c
103 FMI>C>Processes Task 44 Solution 1.c
Solution 2.c
102 FMI>C>Processes Task 43 Solution.c
101 FMI>C>Processes classic deadlock example deadlock.c
100 FMI>C>Processes fork-loop fork-loop.c
99 FMI>C>Read/Write 41. sort max 65535 uint16_t elements Solution 1 (counting sort).c
Solution 2 (heapsort).c
98 FMI>C>Read/Write 40. cut Solution.c
97 FMI>C>Read/Write 39. equivalent to 33 Solution (qsort + merge).c
96 FMI>C>Read/Write 38. tr [OPTION] SET1 [SET2] Solution 1.c
Solution 2 (strchr, strrchr).c
Solution 3 (goto).c
95 FMI>C>Read/Write 37. <patch.bin> <f1.bin> <f2.bin> Solution.c
94 FMI>C>Read/Write 36. cat with args Solution 1.c
Solution 2 (more precise).c
93 FMI>C>Read/Write 35. <f1.bin> <f2.bin> <patch.bin> Solution 1.c
Solution 2.c
92 FMI>C>Read/Write 34. <f1.dat> <f1.idx> <f2.dat> <f2.idx> Solution 1.c
Solution 2.c
91 FMI>C>Read/Write 33. sort big binary file Solution (qsort + merge).c
90 FMI>C>Read/Write 32. pairs extract from file Solution 1.c
Solution 2.c
89 FMI>C>Read/Write 31. sort file.bin inplace Solution.c
88 FMI>C>Read/Write overflow testing with counting sort Solution.c
87 FMI>C memory management struct padding.c
86 FMI>C>Read/Write 11. counting sort Solution 1 (<file.bin> <sorted.bin>).c
Solution 2 (inplace).c
85 FMI>C>Read/Write 10. [--print --min --max] binfile Solution.c
84 FMI>C>Read/Write 09. passwd with '?' separator Solution.c
83 FMI>C>Read/Write 08. cp with multiple args Solution 1.c
Solution 2.c
Solution 3.c
82 FMI>C>Read/Write 07. cat with multiple args Solution.c
81 FMI>C>Read/Write 06. cp with 2 args Solution.c
80 FMI>C>Read/Write 05. sort binary file Solution.c
79 FMI>C>Read/Write 04. wc Solution.c
78 FMI>C>Read/Write 03. head without options Solution.c
77 FMI>C>Read/Write 02. swap files Solution 1 (read and write).c
Solution 2 (renameat2).c
76 FMI>C>Read/Write 01. append Solution 1 (O_APPEND).c
Solution 2 (lseek).c
75 FMI>C>Read/Write paste with 2 files.md Solution.c
74 FMI>Scripts Longet Filename Search Solution.sh
73 FMI>Scripts ./chfext Solution.sh
72 FMI>Scripts Task 29 Solution.sh
71 FMI>Scripts Task 28 Solution (A) cycle.sh
Solution 1 (B) extract last digit.sh
Solution 2 (B) smart sed + bc.sh
70 FMI>Scripts Task 27 Solution 1 (sorted).sh
Solution 2 (input order).sh
69 FMI>Scripts Task 26 Solution.sh
68 FMI>Scripts Task 25 Solution.sh
67 FMI>Scripts Task 23 Solution 1 (sort -V).sh
Solution 2 (multiple fields sort).sh
66 FMI>Scripts Task 24 Solution.sh
65 FMI>Scripts Task 22 Solution.sh
64 FMI>Scripts Task 21 Solution.sh
63 FMI>Scripts Task 20 Solution.sh
62 FMI>Scripts Task 19 Solution.sh
61 FMI>Scripts Task 18 Solution.sh
60 FMI>Scripts Task 17 Solution.sh
59 FMI>Scripts Task 16 Solution 1.sh
Solution 2.sh
58 FMI>Scripts Task 15 Solution.sh
57 FMI>Scripts Task 14 Solution.sh
56 FMI>Scripts Task 13 Solution 1.sh
Solution 2.sh
55 FMI>Shell 05-b-9600 Solution.sh
54 FMI>Shell 05-b-9501 Solution.sh
53 FMI>Shell 05-b-9200 Solution.sh
52 FMI>Shell 05-b-9100 Solution.sh
51 FMI>Shell 05-b-8000 Solution.sh
50 FMI>Shell 05-b-7800 Solution.sh
49 FMI>Shell 05-b-7700 Solution 1 (awk -v).sh
Solution 2 (-size).sh
48 FMI>Shell 05-b-7550 Solution 1 (one by one - polite).sh
Solution 2 (all at once).sh
47 FMI>Shell 05-b-7500 Solution.sh
46 FMI>Shell 05-b-7200 Solution 1 (find by -size).sh
Solution 2 (awk -v).sh
45 FMI>Shell 05-b-7100 Solution.sh
44 FMI>Shell 05-b-7000 Solution.sh
43 FMI>Shell 05-b-6800 Solution.sh
42 FMI>Shell 05-b-6600 Solution 1 (pipe).sh
Solution 2 (process substitution).sh
41 FMI>Shell 05-b-5500 Solution.sh
40 FMI>Shell 05-b-4800 Solution.sh
39 FMI>Shell 05-b-4700 Solution 1 (for loop).sh
Solution 2 (xargs).sh
Solution 3 (sed).sh
38 FMI>Shell 05-b-4600 Solution.sh
37 FMI>Shell 05-b-4400 Solution.sh
36 FMI>Shell 05-b-4301 Solution.sh
35 FMI>Shell 05-b-4300 Solution.sh
34 FMI>Shell 05-b-4200 Solution 1.sh
Solution 2.sh
Solution 3.sh
33 FMI>Shell 05-b-3400 Solution.sh
32 FMI>Shell 05-b-3300 Solution.sh
31 FMI>Shell 05-b-3200 Solution 1.sh
Solution 2.sh
30 FMI>Shell 05-b-3100 Solution.sh
29 FMI>Shell 05-b-2800 Solution 1 (bashism).sh
Solution 2 (pipe).sh
Solution 3 (process substitution).sh
28 FMI>Shell 05-b-2000 Solution.sh
27 FMI>Shell 04-b-9000 Solution 1.sh
Solution 2.sh
26 FMI>Processes 04-b-8000 Solution.sh
25 FMI>Processes 04-b-7000 Solution.sh
24 FMI>Processes 04-a-6300 Solution.sh
23 FMI>Processes 04-b-6200 Solution.sh
22 FMI>Processes 04-b-6100 Solution.sh
21 FMI>Processes 04-a-6000 Solution.sh
20 FMI>Processes 04-b-5000 Solution.sh
19 FMI>Processes 04-a-5000 Solution.sh
18 FMI>Shell Draw Pyramid Solution.sh
17 FMI>File Processing E 12 Solution.sh
16 FMI>Text Processing E 11 Solution.sh
15 FMI>Text Processing E 10 Solution.sh
14 FMI>File Processing E 09 Solution.sh
13 FMI>File Processing E 08 Solution.sh
12 FMI>Text Processing E 07 Solution.sh
11 FMI>File Processing E 06 Solution.sh
10 FMI>File Processing E 05 Solution.sh
9 FMI>Text Processing E 04 Solution.sh
8 FMI>Text Processing E 02 Solution.sh
7 FMI>Text Processing E 01 Solution.sh
6 FMI>Text Processing T_02 Solution.sh
5 FMI>Text Processing T 01 Solution.sh
4 FMI>Text Processing 03-b-7500 Solution.sh
3 FMI>Text Processing T_06 Solution.sh
2 FMI>Text Processing T_05 Solution.sh
1 FMI>Text Processing T_04 Solution.sh

Warm up with Hackerrank

N Subdomain Challenge Points Solution
64 Text Processing Sort Command #1 1 Solution.sh
63 Text Processing Sort Command #2 1 Solution.sh
62 Text Processing Sort Command #3 1 Solution.sh
61 Text Processing Sort Command #4 1 Solution 1.sh
Solution 2.sh
60 Text Processing Sort Command #5 1 Solution.sh
59 Text Processing Sort Command #6 1 Solution.sh
58 Text Processing Sort Command #7 1 Solution.sh
57 Text Processing 'Uniq' Command #1 1 Solution.sh
56 Text Processing 'Uniq' Command #2 1 Solution 1.sh
Solution 2.sh
55 Text Processing 'Uniq' Command #3 1 Solution 1.sh
Solution 2.sh
54 Text Processing 'Uniq' Command #4 1 Solution 1.sh
53 Text Processing 'Grep' A 2 Solution 1.sh
Solution 2.sh
52 Text Processing 'Grep' B 2 Solution 1.sh
Solution 2.sh
51 Text Processing 'Grep' #1 2 Solution 1.sh
Solution 2.sh
50 Text Processing 'Grep' #2 2 Solution.sh
49 Text Processing 'Grep' #3 2 Solution.sh
48 Text Processing 'Sed' Command #1 2 Solution 1.sh
Solution 2.sh
47 Text Processing 'Sed' Command #2 2 Solution.sh
46 Text Processing 'Sed' Command #3 2 Solution 1.sh
Solution 2.sh
45 Text Processing 'Sed' Command #4 2 Solution 1.sh
Solution 2.sh
44 Text Processing 'Sed' Command #5 2 Solution 1.sh
Solution 2.sh
43 Text Processing 'Awk' #1 2 Solution 1.sh
Solution 2.sh
42 Text Processing 'Awk' #2 2 Solution 1.sh
Solution 2.sh
41 Text Processing 'Awk' #3 2 Solution 1.sh
Solution 2.sh
40 Text Processing 'Awk' #4 2 Solution 1.sh
Solution 2.sh
39 Text Processing Cut #1 1 Solution.sh
38 Text Processing Cut #2 1 Solution.sh
37 Text Processiing Cut #3 1 Solution.sh
36 Text Processing Cut #4 1 Solution 1.sh
Solution 2.sh
35 Text Processing Cut #5 1 Solution 1.sh
Solution 2.sh
34 Text Processing Cut #6 1 Solution.sh
33 Text Processing Cut #7 1 Solution.sh
32 Text Processing Cut #8 1 Solution.sh
31 Text Processing Cut #9 1 Solution.sh
30 Text Processing Paste #1 2 Solution.sh
29 Text Processing Paste #2 2 Solution.sh
28 Text Processing Paste #3 2 Solution.sh
27 Text Processing Paste #4 2 Solution 1.sh
Solution 2.sh
26 Text Processing Head of a Text File #1 2 Solution.sh
25 Text Processing Head of a Text File #2 1 Solution.sh
24 Text Processing Tail of a Text File #1 2 Solution.sh
23 Text Processing Tail of a Text File #2 2 Solution.sh
22 Text Processing Middle of a Text File 3 Solution 1.sh
Solution 2.sh
Solution 3.sh
21 Text Processing 'Tr' Command #1 1 Solution 1.sh
Solution 2.sh
20 Text Processing 'Tr' Command #2 1 Solution.sh
19 Text Processing 'Tr' Command #3 1 Solution 1.sh
Solution 2.sh
Solution 3.sh
Solution 4.sh
18 Bash Let's Echo 1 Solution.sh
17 Bash A Personalized Echo 1 Solution.sh
16 Bash Looping with Numbers 2 Solution 1.sh
Solution 2.sh
Solution 3.sh
Solution 4.sh
15 Bash The World of Numbers 2 Solution 1.sh
Solution 2.sh
14 Bash Looping and Skipping 2 Solution 1.sh
Solution 2.sh
Solution 3.sh
Solution 4.sh
13 Bash Comparing Numbers 3 Solution 1.sh
Solution 2.sh
12 Bash Getting started with conditionals 3 Solution 1.sh
Solution 2.sh
11 Bash More on Conditionals 3 Solution.sh
10 Bash Arithmetic Operations 3 Solution.sh
9 Bash Compute the Average 4 Solution.sh
8 Arrays in Bash Filter an Array with Patterns 1 Solution 1.sh
Solution 2.sh
7 Arrays in Bash Read in an Array 1 Solution 1.sh
Solution 2.sh
6 Arrays in Bash Slice an Array 1 Solution 1.sh
Solution 2.sh
5 Arrays in Bash Concatenate an array with itself 1 Solution.sh
4 Arrays in Bash Display an element of an array 1 Solution.sh
3 Arrays in Bash Count the number of elements in an Array 1 Solution.sh
2 Arrays in Bash Remove the First Capital Letter from Each Element 1 Solution 1.sh
Solution 2.sh
Solution 3.sh
Solution 4.sh
1 Arrays in Bash Lonely Integer - Bash! 10 Solution 1.sh
Solution 2.sh

About

Unix-like Operating Systems. Linux. Bash & Z shell. C. Synchronization Problems & Theory.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages