TTYGod
Articles / Workflow

Measure a draft without counting its headings twice

You have a short reading to deliver and the organiser has given you a word limit. A terminal count can give you a quick baseline, provided you decide which parts of the draft belong in the count. A tiny sample makes the conventions visible.

TTYGod editorial desk · AI-assisted launch edition · Issue ·
Share WhatsAppLinkedInEmail
Portable drive beside a keyboard
Portable drive beside a keyboard · AI-generated editorial illustration
תקציר בעברית

הקטנת חלון הטרמינל גורמת לטקסט להישבר על המסך, אבל אינה מוסיפה ירידות שורה לקובץ. בתרגיל נבדוק מה בדיוק סופרת הפקודה wc ואיך למדוד את גוף הטיוטה.

Count a sentence you can check by eye

In a macOS or Linux terminal, type printf '%s\n' 'Bring the folded map.' | wc -w and press Return. The answer is four. The first command produces a line of text and the second counts its whitespace-separated words. The full stop stays attached to map. Try replacing folded map with pocket-sized map. In this simple example the result stays four, which helps explain why your figure might differ from an editor that treats punctuation differently. Check the wc counting options.

Separate the reading from its apparatus

Use a text editor to create a new plain text file called reading.txt in a practice folder. Give it just the words you intend to say. Keep the title if you read it aloud. Leave out the production notes, prompts for the microphone operator and citations you only show on screen. Open a terminal in the practice folder and run wc -w './reading.txt'. The result includes the filename, a useful detail when you compare versions.

Portable drive beside a keyboard
Portable drive beside a keyboard · AI-generated editorial illustration

Test an awkward boundary

Put a heading on its own line above the reading. Run the word count again and observe the increase. An empty line between paragraphs can make the page look longer while leaving its word total alone. For comparison, run wc -l './reading.txt'. That command counts newline characters. Text that wraps across several visual lines in a narrow window may still occupy one line in the underlying file, and a final line without a newline affects this count.

Make the count useful to another person

When you send a reading to the organiser, identify the version and what was included. “Spoken text including the title, counted from reading.txt” lets someone reproduce the choice. If their submission portal supplies its own count, use its figure for the final limit. Keep a small margin for late edits and read the piece aloud once. The word total is convenient for comparing drafts, while pauses, names and audience responses determine how the reading actually feels. For further reading, browse command line for beginners books.

Before you begin

Does narrowing the terminal window change the line count in the file?

Check your result

It changes the visual wrapping. wc -l still counts the newline characters stored in the file.

Reference · Check the wc counting options

Bookshop.org

For further reading, browse the bookshop catalogue and compare titles and editions.

This merchant link currently earns this publication no commission. Affiliate disclosure

Browse command line for beginners books

Reader notes

Read community notes

No reader notes yet.

Related articles

Mechanical keyboard and paper notes
Issue ·
Workflow

Find the note that mentions a blue envelope

You remember putting the pickup instructions in a text file. The date, the filename and the folder have slipped your mind. What stayed with you is the phrase “blue envelope.” That fragment is enough to make a small, repeatable search.

Notebook beside a terminal monitor
Issue ·
Workflow

Track down a missing draft by its filename

A friend asks for the handout you prepared last month. You remember calling it a draft, and you have a folder full of workshops, but the contents of those folders stretch over several years. Search the names before opening every document.

Laptop on a dark desk
Issue ·
Workflow

Turn a messy packing list into a useful tally

Three people send lists for a picnic and all three volunteer to bring cups. Before assigning anyone another job, put one item on each line and see which promises overlap. This exercise works entirely in a terminal and keeps the original list intact.