- Aug 09 Fri 2013 13:33
-
Perl-subroutine return array
- Aug 04 Sun 2013 16:34
-
Windows 7-啟用系統管理員 Administrator 帳戶
(1) 在[開始],[附屬應用程式]中,在[命令提示字元]按滑鼠右鍵,選擇[以系統管理員身分執行]
(2) 在命令提示字元中,使用以下命令來啟用 Administrator 帳戶,輸入後按 [Enter] 執行。
"net user administrator /active:yes"
(2) 在命令提示字元中,使用以下命令來啟用 Administrator 帳戶,輸入後按 [Enter] 執行。
"net user administrator /active:yes"
- May 27 Mon 2013 10:44
-
linux-grep
利用 grep 第一個key-word後,再導向搜尋 key-word;只印出檔名
[root@server username]#grep -l '搜尋字串' *.txt|xargs grep -L '符合字串'
[root@server username]#grep -l '搜尋字串' *.txt|xargs grep -L '符合字串'
- Mar 27 Wed 2013 14:42
-
update/copy /delete "-" 開頭檔案名稱
- Oct 31 Wed 2012 20:12
-
windows下合併ISO檔
最近要安裝CentOS 5.6的iso檔,
如下:
CentOS-5.6-i386-bin-DVD-1of2.iso
CentOS-5.6-i386-bin-DVD-2of2.iso。
先將檔名改為 a.iso 及 b.iso,
把這2個檔案放在同一個目錄下
在「開始」-「執行」中鍵入cmd,進入命令提示模式。
copy /b a.iso+b.iso centos.iso,
OK!
在Linux環境下
先解壓縮到各別目錄,再合併
[root@~]# unzip CentOS-5.6-i386-bin-DVD-1of2.zip
[root@~]# unzip CentOS-5.6-i386-bin-DVD-2of2.zip
[root@~]# cat CentOS-5.6-i386-bin-DVD-1of2 CentOS-5.6-i386-bin-DVD-1of2 > CentOS-5.6-i386-bin-DVD.iso
如下:
CentOS-5.6-i386-bin-DVD-1of2.iso
CentOS-5.6-i386-bin-DVD-2of2.iso。
先將檔名改為 a.iso 及 b.iso,
把這2個檔案放在同一個目錄下
在「開始」-「執行」中鍵入cmd,進入命令提示模式。
copy /b a.iso+b.iso centos.iso,
OK!
在Linux環境下
先解壓縮到各別目錄,再合併
[root@~]# unzip CentOS-5.6-i386-bin-DVD-1of2.zip
[root@~]# unzip CentOS-5.6-i386-bin-DVD-2of2.zip
[root@~]# cat CentOS-5.6-i386-bin-DVD-1of2 CentOS-5.6-i386-bin-DVD-1of2 > CentOS-5.6-i386-bin-DVD.iso
- Jan 13 Fri 2012 22:51
-
Perl-設定一個預設值
- Nov 27 Sun 2011 09:29
-
Perl-比較兩個陣列不同
- Oct 19 Wed 2011 13:32
-
DOS_取得日期時間字串
echo %date% 結果為 yyyy/MM/dd
echo %date:~0,4% 結果為 yyyy
echo %date:~5,2% 結果為 MM
echo %date:~8,2% 結果為 dd
echo %date:~0,4% 結果為 yyyy
echo %date:~5,2% 結果為 MM
echo %date:~8,2% 結果為 dd
- Sep 05 Mon 2011 15:38
-
php_str_replace
- Sep 02 Fri 2011 16:54
-
php_string replace match whole word
$text = "abc,abcd,abcdee";
If $text contains UTF-8 text, you'll have to add the Unicode modifier "u", so that non-latin characters are not misinterpreted as word boundaries:
$text = preg_replace('/\babc\b/u', 'ghi', $text);
If $text contains UTF-8 text, you'll have to add the Unicode modifier "u", so that non-latin characters are not misinterpreted as word boundaries:
$text = preg_replace('/\babc\b/u', 'ghi', $text);
- Jul 13 Wed 2011 09:41
-
SQL-colums統計
- Jun 30 Thu 2011 12:49
-
Perl-連結MySQL