-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
124 lines (116 loc) · 3.45 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CCWC Project</title>
<style>
body {
background-color: black;
color: green;
font-family: 'Courier New', Courier, monospace;
margin: 50px auto;
max-width: 1000px;
padding: 20px;
}
header {
text-align: center;
margin-bottom: 20px;
}
h1, h2 {
border-bottom: 1px solid green;
padding-bottom: 5px;
}
section {
margin-bottom: 20px;
padding: 15px;
border: 1px solid green;
border-radius: 5px;
background-color: #001100;
}
a {
color: lightgreen;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
footer {
text-align: center;
margin-top: 20px;
font-size: 0.8em;
}
pre {
background-color: #003300;
padding: 10px;
border: 1px solid green;
border-radius: 5px;
overflow-x: auto;
}
</style>
</head>
<body>
<header>
<h1>CCWC Project</h1>
<p>Character, Word, Line, and Byte Counter</p>
</header>
<main>
<section>
<h2>Overview</h2>
<p>This project is a command-line utility for counting characters, words, lines, and bytes in a text file.</p>
</section>
<section>
<h2>Features</h2>
<ul>
<li>Counts bytes, characters, words, and lines.</li>
<li>Supports multiple input files.</li>
<li>Customizable command-line options.</li>
</ul>
</section>
<section>
<h2>Usage</h2>
<p>To use the utility, run the following command:</p>
<pre><code>./ccwc [OPTION] [FILE]</code></pre>
<p>Replace [OPTION] with:</p>
<ul>
<li><code>-c</code> to count bytes</li>
<li><code>-l</code> to count lines</li>
<li><code>-w</code> to count words</li>
<li><code>-m</code> to count characters</li>
</ul>
</section>
<section>
<h2>Command Examples</h2>
<p>Here are examples of running the commands:</p>
<div>
<h4>Counting Bytes</h4>
<pre><code>$ ./ccwc -c /test.txt<br>342384 bytes test.txt </code></pre>
</div>
<div>
<h4>Counting Lines</h4>
<pre><code>$ ./ccwc -l test.txt<br>7190 lines test.txt </code></pre>
</div>
<div>
<h4>Counting Words</h4>
<pre><code>$ ./ccwc -w test.txt<br>58164 words test.txt </code></pre>
</div>
<div>
<h4>Counting Characters</h4>
<pre><code>$ ./ccwc -m test.txt<br>342384 characters test.txt</code></pre>
</div>
<div></div>
<h4>Counting All</h4>
<pre><code>$ ./ccwc test.txt<br>342384 bytes 342384 characters 7190 lines 58164 words test.txt</code></pre>
</div>
</section>
<section>
<h2>Get It On GitHub</h2>
<p>Check out the repository for more details and the source code:</p>
<a href="https://github.com/yourusername/yourrepository" target="_blank">GitHub Repository</a>
</section>
</main>
<footer>
<p>© 2024 CCWC Project</p>
</footer>
</body>
</html>