Showing posts with label Unix. Show all posts
Showing posts with label Unix. Show all posts

Wednesday, September 02, 2015

Unix ls command - How to Exclude Certain Patterns using Wildcard?

Let's say you have a directory where there are too many files/folders having similar names and you want to exclude them during an ls operation. The command to use is as follows:

ls --ignore="PATTERN*"

Below is an example where there are folders named run_* and other files. The results obtained after typing plain ls and with the exclude options are shown below:


With the option: (Note the usage of the wildcard)


Saturday, February 19, 2011

Backspace not deleting to the left in Vi(m)

While working with vi(m), backspace may not perform as intended. It may print ^? and progress to the right. To alleviate that problem, simply add the following code into ~/.vimrc file:
:set t_kb=^?
:fixdel
:set bs=2 "Fix Backspace in VIM