The Curious Engineer

All blogs / Python

learnbyexample

learnbyexample.github.io

Learn Python, Regex, Linux, Scripting, Vim, Ebooks, Self-Publishing and Interesting Tech Nuggets.

PythonLinux / UnixDev tools / editors / IDEs

Posts
171 from 6 Mar 2019 to 21 Nov 2025
Posting
now and then (1 in the last year)
Kind
personal blog
Feed
https://learnbyexample.github.io/atom.xml

2025 11

  1. Festive offers for books on Python, Linux, Regular Expressions, Vim and more!
  2. Connect Four game with a twist
  3. Python regular expression cheatsheet and examples
  4. Better bindings for command line history search
  5. Customizing pandoc to generate beautiful pdf and epub from markdown
  6. Everything you need to know about sed substitution
  7. CLI text processing with GNU awk book announcement
  8. awk idioms explained
  9. OS installation woes
  10. Understanding Python re(gex)? book announcement
  11. Coloring matched portions with GNU grep, sed and awk

2024 11

  1. 100 Page Python Intro book announcement
  2. Festive offers for books on Python, Linux, Regular Expressions, Vim and more!
  3. Interactive Python Exercises and Quiz
  4. Vim Reference Guide book announcement
  5. Basic examples for the Linux date command
  6. Linux Command Line Computing book announcement
  7. Interactive GNU awk tutorial
  8. CLI computation with GNU datamash
  9. CLI text processing with GNU Coreutils book announcement
  10. Ruby One-Liners Guide book announcement
  11. Understanding Ruby Regexp book announcement

2023 50

  1. 2023: year in perspective
  2. Festive offers for books on Python, Linux, Regular Expressions and more
  3. Understanding JavaScript RegExp book announcement
  4. CLI text editing with ed
  5. Perl One-Liners Guide book announcement
  6. Vim tip 33: editing with text objects
  7. Vim tip 32: text and indent settings
  8. CLI tip 33: manipulating string case with GNU sed
  9. Python tip 33: sorting iterables based on multiple conditions
  10. Vim tip 31: mark frequently used locations
  11. CLI tip 32: text processing between two files with GNU awk
  12. Interactive exercises for GNU grep, sed and awk (TUI apps)
  13. Python tip 32: positive lookarounds
  14. Vim tip 30: some general Vim settings
  15. CLI tip 31: concatenate files column wise
  16. Python tip 31: next() function
  17. Vim tip 29: greedy quantifiers
  18. CLI tip 30: extract only the matching portions
  19. Python tip 30: zip() function
  20. CLI text processing with GNU sed book announcement
  21. Vim tip 28: miscellaneous motion and reposition commands
  22. CLI tip 29: define fields using FPAT in GNU awk
  23. Python tip 29: negative lookarounds
  24. Vim tip 27: regexp anchors
  25. CLI tip 28: substitute specific occurrence with GNU sed
  26. Python tip 28: string concatenation and repetition
  27. Vim tip 26: executing shell commands
  28. CLI text processing with GNU grep and ripgrep book announcement
  29. CLI tip 27: reverse text line wise with tac
  30. Python tip 27: enumerate() function
  31. Vim tip 25: substitute flags
  32. CLI tip 26: removing duplicate lines with GNU awk
  33. Python tip 22: possessive quantifiers
  34. Python tip 26: atomic grouping
  35. Vim tip 24: movement commands within the current file
  36. CLI tip 25: get file properties using the stat command
  37. Python tip 25: split and partition string methods
  38. 100+ Interactive Python Regex Exercises
  39. Vim tip 23: editing lines filtered by a pattern
  40. Python Regular Expressions Playground
  41. CLI tip 24: inserting file contents one line at a time
  42. Python tip 24: modifying list using insert and slice
  43. CLI tip 23: recursive filename matching with globstar
  44. Vim tip 22: word and WORD motions
  45. Python tip 23: map, filter and reduce
  46. Vim tip 21: working with tabs
  47. CLI tip 22: grep options to suppress stdout and stderr
  48. Python Regex Surprises
  49. Vim tip 20: character based motions within the current line
  50. CLI tip 21: inplace file editing with GNU awk

2022 68

  1. 2022: year in perspective
  2. Python tip 21: sorting iterables based on a key
  3. Vim tip 19: working with buffers
  4. CLI tip 20: expand and unexpand
  5. Interactive Linux CLI Text Processing Exercises
  6. Python tip 20: saving and loading json
  7. Vim tip 18: moving within long lines
  8. CLI tip 19: extended globs
  9. Festive deals for books on Python, Linux, JavaScript, Regular Expressions and more
  10. Python tip 19: manipulating string case
  11. Building TUIs with textual: first impressions
  12. Computing from the Command Line: sales report
  13. Vim tip 17: setting options
  14. CLI tip 18: inserting file contents using GNU sed
  15. Python tip 18: arbitrary number of arguments
  16. Vim tip 16: terminal mode
  17. CLI tip 17: common and unique lines
  18. Python tip 17: counting frequency of items
  19. Vim tip 15: moving within current line
  20. CLI tip 16: transpose tables
  21. Python tip 16: delete list elements using index or slice
  22. Vim tip 14: horizontal and vertical splits
  23. CLI tip 15: text generation with printf and brace expansion
  24. Python tip 15: string transliteration
  25. Vim tip 13: repeat last change
  26. Programming ebooks by Sundeep Agarwal
  27. CLI tip 14: specify permissions during directory creation
  28. Python tip 14: sequence unpacking
  29. Vim tip 12: save and restore sessions
  30. CLI tip 13: join lines of two files based on the first field
  31. Python tip 13: formatting numbers with underscore separation
  32. Vim tip 11: replace characters in Normal mode
  33. CLI tip 12: squeeze empty lines
  34. Python tip 12: negate a regex grouping
  35. Vim tip 10: Undo and Redo
  36. CLI tip 11: longest line length
  37. Bash compound commands and redirection
  38. Python tip 11: capture external command output
  39. Vim tip 9: named registers
  40. Debug woes 3: matching uppercase letters
  41. CLI tip 10: version sort
  42. Python tip 10: removeprefix and removesuffix string methods
  43. Python 3.11: possessive quantifiers and atomic grouping added to re module
  44. Vim tip 8: join lines
  45. CLI tip 9: awk paragraph mode
  46. Python tip 9: applying set-like operations for dictionaries
  47. Vim tip 7: changing case in Normal mode
  48. CLI tip 8: extract from start of file until matching line
  49. Vim Reference Guide: two week sales report
  50. Python tip 8: dict.fromkeys() method
  51. Vim tip 6: search word nearest to the cursor
  52. CLI tip 7: limiting number of filtered lines
  53. Python tip 7: creating a deepcopy of collections
  54. Vim tip 5: jumping back and forth in Normal mode
  55. CLI tip 6: filtering lines based on multiple conditions
  56. Python tip 6: inplace file editing
  57. Vim tip 4: reposition current line in Normal mode
  58. PyDev of the Week
  59. CLI tip 5: aligning columns
  60. Python tip 5: random choice and sample
  61. Brag post: Hacker News Front Page entries
  62. Removing duplicates irrespective of field order
  63. Vim tip 3: autocomplete words and lines in Insert mode
  64. Regexp gotcha 1: grouping common portions
  65. CLI tip 4: serialize file contents to a single line
  66. Automating Excel with Python - book review
  67. Vim prank: alias vim='vim -y'
  68. Python tip 4: comparison chaining

2021 23

  1. 2021 was a wild ride
  2. Vim tip 2: indent/unindent lines
  3. CLI tip 3: place backups in another directory with GNU sed
  4. Counting nested braces
  5. Python tip 3: expression and result with f-string
  6. Vim tip 1: increment/decrement numbers
  7. Improve your Python regex skills with 75 interactive exercises
  8. CLI tip 2: counting number of matches
  9. Programming deals
  10. Numeric Palindrome
  11. Python tip 2: membership operator
  12. CLI tip 1: remove metadata from images
  13. Python tip 1: tuple argument for startswith/endswith methods
  14. Announcing learnbyexample weekly newsletter
  15. The Indie Python Extravaganza
  16. Practice Python Projects book announcement
  17. Escaping madness to get literal field separators in awk
  18. Debug woes 2: unexpected array in replacement string
  19. Dreaming solutions
  20. GNU BRE/ERE cheatsheet and differences between grep, sed and awk
  21. Debug woes 1: multiple substitutions on the same line
  22. Perl one-liner articles
  23. Paying my bills with 'free' ebooks

2020 5

  1. Multiline fixed string search and replace with CLI tools
  2. Emulating regexp lookarounds in GNU sed
  3. Search and replace tricks with ripgrep
  4. I know Python basics, what next?
  5. JavaScript regular expressions cheatsheet and examples

2019 3

  1. Creating GUI Applications with wxPython - book review
  2. Python for maths
  3. A short and satisfying bug hunt