Linux Command Line Tutorial - Text Processing

Learn the commands used to manipulate and edit text on the Unix Command Line. We will go over commands such as cat, sort, uniq, cut, paste, join, expand, unexpand, column, colrm, tr, cmp, comm, diff, patch, aspell and lookup.

  1. Cat Revisited

    Here, we'll take another look at cat and use this command to see non-printing characters. Additionally, we'll look at converting between UNIX and DOS file formats, viewing line numbers and suppressing blank lines.

  2. Sorting

    Take a deeper look into the sort command, with its various ways of sorting and specifying fields. Learn the options used to sort multiple files at once, merging pre-sorted files, specifying delimiters, fields, subfields, and ignoring blank spaces.

  3. Finding Unique or Duplicate elements

    After a quick sort, we can use the uniq command to find duplicates or unique items. We can also find the occurrence of each record.

  4. Cutting, Pasting and Joining

    Learn how to cut from columns, paste two segments together, and join relations with a common attribute.

  5. Spaces to Tabs, Tabs to Spaces

    Learn how to go from spaces to tabs and vice versa with the expand and unexpand commands.

  6. Column Formatting and Pretty Printing

    Learn the commands essential for pretty printing. We'll go over the column command, which converts an input into a nice, columnated table, the colrm command, which removes any unwanted columns, and the fold command, which allows you to control how wide ea

  7. Transliterating text

    Learn how to replace all characters from standard in with a single two-lettered command - tr.

  8. Comparing text

    Learn the various ways that you can compare text on the Linux Command Line. Use cmp and comm to compare and see differences, and use the patch command to update a text file.

  9. Finding differences with diff

    Learn how to find changes between two files on the Unix Command Line with the diff command.

  10. Patching from a diff file

    Learn how to update a file with a simple patch command.

  11. Spell checking and dictionary lookup

    Learn how to run a spell check on your text files, and look up works in a dictionary with the aspell and lookup commands.