Creating test files
Some of my books and articles require you to create some files for testing. This can be done easily from the command line.
- Open a terminal session on your desktop.
- Copy the line below from this post.
- Paste it into the terminal session.
- Press the Enter key.
This Bash program creates 200 files with “Hello world filexxx” in each, where xxx is the file number. You can edit the program and change “200” to any number of files that you need.
for I in `seq -w 200` ; do echo "Hello world file$I" > testfile$I.txt ; done
More Stories
Open source School tools for our adult learners!
Image by: Opensource.com CC-by-SA 4.0 This is an entertaining listicle of what I’ll be covering over the next couple articles...
Regular Expressions #1: Introduction
Regular expressions don’t have to invoke anxiety and fear, although they do for many of us. The function of regular expressions is to provide a highly flexible tool for matching strings of characters in a stream of data. When a match is found, the program’s action can be as simple as to pass the line of data in which it’s found on to STDOUT, or as copmplex as replacing that string with another.
How to upgrade your Fedora Linux system to the latest release with DNF system-upgrade
Upgrading any operating system to a new release version can be time-consuming and fraught with problems. Fedora 40 was released very recently and I used these easy steps to upgrade all twelve of my home systems. It was easy and all went well.
Ansible #2 How to create an Ansible Playbook
In this introduction to Playbook creation, we examine a play that manages updates for a local Ansible controller machine.
Open Source and Music Playback
For me at least, music is an indispensable part of my day; much more so than streaming video or television....
3 things that matter most for a project management tool
Our daily professional lives involve recognizing, prioritizing, and completing tasks. These tasks comprise the larger projects and initiatives that drive company and business success. When you think about it this way, the project management tool and system you choose at work, for yourself or your team, is critical.