-
-
Notifications
You must be signed in to change notification settings - Fork 72
Birmingham | 2026-MAR-SDC | Joy Opachavalit | Sprint 1 | Individual Shell Tools #338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
9f42f02
356eba3
41c5828
a4d7333
7c898bc
523cf81
42d8ef3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,3 +8,4 @@ set -euo pipefail | |
| # 1 7 39 ../helper-files/helper-2.txt | ||
| # 3 19 92 ../helper-files/helper-3.txt | ||
| # 5 30 151 total | ||
| wc -lwc ../helper-files/*.txt | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What will happen with character count if encoding of our file is non ascii (in ascii each byte equals to a character), but, for example, UTF-8 with exotic characters?
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. When a file uses non-ASCII encoding like UTF-8, the relationship between bytes and characters changes: ASCII: Each character = 1 byte. wc -m: Counts characters. Hello 😊 → 9 bytes (5 for Hello, 4 for 😊), 6 characters. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct choice to start from 3, like!