目前分類:Linux (8)
- Oct 10 Fri 2008 22:51
vim plugin - Tag List
- Oct 09 Thu 2008 00:03
sed
- SED is a stream editor. A stream editor is used to perform basic text transformations on an input stream (a file or input from a pipeline).
- General Syntax of sed:
sed -option 'general expression' [data-file]
- Oct 08 Wed 2008 08:38
awk
- General Syntax of awk: awk -f {awk program file} filename
- The format of awk program looks like:
[pattern] {
Action 1
- Oct 04 Sat 2008 18:03
vim plugin - TabBar
大部分的純文字編輯器都有多視窗編輯的功能,非常的方便,其實vim也有,在www.vim.org可以找到這個好用的plugin,完整的網址如下:
http://www.vim.org/scripts/script.php?script_id=1338
使用起來也很方便,把下載的tabbar.vim放在Linux環境下的$HOME/.vim/plugin或Windows環境下的C:\Program Files\Vim\vimfiles\plugin就可以啦。
- Mar 05 Wed 2008 22:06
Shell script - 3. Advanced Shell Scripting Commands
- /dev/null - Use to send unwanted output of program
Syntax: command > /dev/null
$ls > /dev/null - Normally all our variables are local. Local variable can be used in same shell, if you load another copy of shell (by typing the /bin/bash at the $ prompt) then new shell ignored all old shell's variable.
- Conditional execution
- Mar 03 Mon 2008 13:12
Shell Script - 2. Shells (bash) structured Language Constructs
- if condition
Syntax:
if condition
- Mar 01 Sat 2008 23:03
Shell script - 1. Getting started with Shell Programming
- Shell Script is series of command written in plain text file.
- To find all available shells in your system type following command:
$cat /etc/shells - To find your current shell type following command
$ echo $SHELL - Example:
- Oct 10 Wed 2007 10:10
Compile The Ubuntu Kernel