The Fold and Fmt utilities Yes I Know IT Ep 24
>> YOUR LINK HERE: ___ http://youtube.com/watch?v=fYhvu1SgArg
📂 Go to https://yesik.it/EP24 to download the files used in this video, so you can practice on your own system. • Links, time markers and a ton more in the description below. ▼ • ==== • THE FOLD AND FMT COMMANDS • ==== • When you use a word processor, formatting text so the lines will fit in the available space on the target device should not be an issue. But when working at the terminal, things are not that easy. Of course, you can always break lines by hand using your favorite text editor, but this is rarely desirable, and it’s even out of the question for automated processing. Hopefully, the POSIX fold utility and the GNU/BSD fmt command can help you to reflow a text so lines will not exceed a given length. • ▶ The Fold and Fmt Commands( • The Fold and Fmt utilities - Yes, I K... ) • • ---- • HOW IS IT RELATED TO OTHER COMMANDS? • ---- • In practice, you will rarely use the fold and fmt commands alone. They often are the final stage of some pipeline involving data extraction or text transformation commands like grep(https://linux.die.net/man/1/grep), awk or sed. If you do not already know those commands, I suggest you take a look at the following videos for an introduction: • • ▶ How to filter data using Grep(https://yesik.it/EP06) • ▶ How to clean up a data file using AWK(https://yesik.it/EP05) • ▶ How to perform basic text editing using Sed(https://yesik.it/EP07) • Some knowledge of Awk and Sed commands will especially be interesting here since they are required to solve to video’s challenge. So review the syntax of those commands if needed, then, once you will have answered the challenge, don’t forget to post your solution in the comment section! • • ---- • HOW CAN I TAKE THE MOST OF THIS VIDEO? • ---- • I encourage you to download the files used on the video(https://static.yesik.it/EP24/Yes_I_Kn...) so you will be able to try the same commands as me on your own system. • The link above will allow you to download a gzipped tar archive of the files used in the video. To extract the content of that archive on your system, you can use the command: • tar xzf Yes_I_Know_IT-EP24.tar.gz • cd EP24 • • ---- • TIME LINKS • ---- • If you don’t have the time to watch the video entirely, here are few links to jump directly to the section that interests you the most: • • ▶ Logical versus physical lines( • The Fold and Fmt utilities - Yes, I K... ) • ▶ The Fold command basic syntax( • The Fold and Fmt utilities - Yes, I K... ) • ▶ Breaking at word boundaries using the Fold command( • The Fold and Fmt utilities - Yes, I K... ) • ▶ Video’s challenge( • The Fold and Fmt utilities - Yes, I K... on a sample file available for download on https://yesik.it/EP24 • ▶ Rewrapping a text with the GNU or BSD Fmt command( • The Fold and Fmt utilities - Yes, I K... ) • • ---- • SHARE TO HELP ME REACH MY NEXT YOUTUBE MILESTONE! • ---- • It’s a lot of work to maintain this channel, and the only thing I can take joy in from what I do is seeing more subscribers and the channel growing. That’s why I’m asking you to recommend and share the following links on your favorite social media and websites. Thanks! • 👍 Subscribe to my YouTube channel: Yes I Know IT (https://yesik.it/youtube?sub_confirma...) • 🎬 Watch the video: The Fold and Fmt Commands ( • The Fold and Fmt utilities - Yes, I K... ) • • #Fold #Fmt #Linewrapping #Linebreaks #Linux #Unix #POSIX #Utility #CLI #CommandLine #CommandLineTools #YesIKnowIT
#############################