echo [9876543210] displays 1 4 5 6 … why?

Please explain why 1 4 5 6 is displayed for the last four echo statements? I hit this by accident once, but I am now curious as to why this behavior occurs. These statements work as expected (for me). $ echo [ 9876543210 ] [ 9876543210 ] $ echo [237890] [237890] These echo statements consistently … Read more

What is the .gitignore pattern equivalent of the regex (Big|Small)(State|City)-[0-9]*\.csv

I have a regex I stuck in my .gitignore similar to: (Big|Small)(State|City)-[0-9]*\.csv It didn’t work so I tested it against RegexLab.NET. I then found the gitignore man page which led me to learn that gitignore doesn’t use regexes, but rather fnmatch(3). However, fnmatch it doesn’t seem to have an equivalent of the capture groups. Is … Read more

How do we specify multiple ignore patterns for `tree` command?

I need to print the directory structure of our production system and I would like to remove some specific directories from the tree? How do we specify multiple ignore patterns for tree command? Answer You simply provide all the patterns to the -I command, separated by |. From the manpage: -P pattern List only those … Read more

Where to find subtle border patterns? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 8 years ago. Improve this question Is there any border pattern version to the website http://subtlepatterns.com/? What I mean is that … Read more

How to create the illusion of depth with repeating patterns? [duplicate]

This question already has answers here: Illustrator CS5 brick pattern with perspective (3 answers) Closed 7 years ago. How do I create perspective with repeating patterns? I am very much a beginner level, as noted by my first attempt to create a illustration in illustrator. However, my attempt has provided me with various questions and … Read more