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

Programming in Shell

Posted on Oct 22, 2020 in Computer Science • Tagged with Computer Science, Shell, Bash, programming, script

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


Environment Variables in Shell

Posted on Jun 24, 2020 in Computer Science • Tagged with Computer Science, shell, bash, environment variable, export, unset

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.

export

A new child process forked from a parent process does not inherit parent's variables by default. The export command marks an environment variable to be exported with any newly forked child processes and thus it allows a child process to inherit all marked variables.


Continue reading

Bash Programming

Posted on Jun 23, 2020 in Computer Science • Tagged with Computer Science, bash, programming, shell

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.

Environment Variables

export

unset

Tips and Traps

  1. explainshell.com is a great place for learning shell.

  2. Bash-it/bash-it is a great community driven Bash framework.


Continue reading

Parse Arguments in Bash

Posted on Jun 16, 2020 in Computer Science • Tagged with Computer Science, shell, bash, parse, argument, parameter

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.


An Input Bug in Ruby

Posted on Aug 06, 2012 in Computer Science • Tagged with programming, Bash, Ruby, bug, terminal, IO

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

If you run a ruby program though Bash and the ruby program read multiple inputs from the console, all inputs will be the same as the first …


Continue reading