1
edit
Changes
Dev/null
,→Assignment 1
131 137 139 149 151 157 163 167 173 179
181 191 193 197 199 211 223 227 229 233
==== String search ====
A simple program that searches for a string inside a text file and prints every line where it is found.
<pre>
./find kari text.txt
no half-tones, but using techniques called meri and kari, in which the blowing
The string kari was found in the file text.txt at line 6 and column 52
./find is text.txt
which is called a "fipple"—and thus has limited pitch control, the shakuhachi
The string is was found in the file text.txt at line 2 and column 6
angle is adjusted to bend the pitch downward and upward, respectively,
The string is was found in the file text.txt at line 7 and column 6
./find is text.txt
which is called a "fipple"—and thus has limited pitch control, the shakuhachi
The string is was found in the file text.txt at line 2 and column 6
angle is adjusted to bend the pitch downward and upward, respectively,
The string is was found in the file text.txt at line 7 and column 6
yjghitisduque@matrix:~/c++/GPUA1> ./find is text.txt text2.txt
which is called a "fipple"—and thus has limited pitch control, the shakuhachi
The string is was found in the file text.txt at line 2 and column 6
angle is adjusted to bend the pitch downward and upward, respectively,
The string is was found in the file text.txt at line 7 and column 6
which is called a "fipple"—and thus
The string is was found in the file text2.txt at line 3 and column 6
angle is adjusted to bend the pitch
The string is was found in the file text2.txt at line 13 and column 6
</pre>
The increase in time spent searching is linear and depends on the size of the file or files. This can take much longer when it comes to extremely large files.
=== Assignment 2 ===
=== Assignment 3 ===