Extended Globbing in Bash

Posted on Jun 04, 2022 in Computer Science • Tagged with Computer Science, programming, bash, shell, glob, globbing, extended

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

Fish Shell is preferred to Bash/Zsh. The following content is for Bash/Zsh only.

Enable Extended Globbing

shopt -s extglob

Or you can run bash with …


Continue reading

Regular Expression in Bash

Posted on Apr 28, 2019 in Computer Science • Tagged with programming, Bash, regular expression, regex

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

Fish Shell is preferred to Bash/Zsh. The following content is for Bash/Zsh only.

It is suggested that you use Python script instead of Shell script …


Continue reading

Use fselect to Find Files

Posted on Apr 05, 2021 in Computer Science • Tagged with Computer Science, programming, fselect, Rust, find, locate

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

It is suggested that you use Python (the pathlib module) instead of the fselect command to find files.

Tips and Traps

  1. is_* columns supporting comparing with 1, true and yes, etc.

  2. where name like '%.markdown'


Continue reading

R for Numerical Analysis

Posted on Nov 21, 2012 in Computer Science • Tagged with optimization, programming, numerical analyis, R

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

  1. Usually when we check whether two double values equal or not, we would check whether they're close enough or not. This is due to possible information loss …


Continue reading

Configure Terminal for PyCharm on Windows

Posted on Mar 05, 2019 in Computer Science • Tagged with programming

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

** Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement! **

I personally think it is better to develop …


Continue reading

Set Operations on Lines of Files

Posted on Jun 14, 2015 in Computer Science • Tagged with programming, set operations, file, lines, sort, uniq, comm, shell

Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives.

** Things under legendu.net/outdated are outdated technologies that the author does not plan to update any more. Please look for better alternatives. **

It is suggested that …


Continue reading