2016-10-28
- 檔案1(f1.txt)
abc 123 def 456
- 檔案2(f2.txt)
0000 1111 2222 3333 4444
- 指令(command) ( -d “,” 以逗號為分隔,預設為 Tab )
abc
123
def
456
0000
1111
2222
3333
4444
abc
123
def
456
awk '{if(NR%2==0){printf $0 "\n"}else{printf "%s:",$0}}' merge.txt
或
awk 'NR%2{printf "%s:",$0;next}{print;}' merge.txt
語言 | 單行註解 | 多行註解 |
---|---|---|
perl | # | =head 多行註解 =cut |
AutoHotKey | ; | |
C | // | /* 多行註解 */ |
C++ | // , # | /* 多行註解 */ |
Java | // , # | /* 多行註解 */ |
C# | // , # | /* 多行註解 */ |
vb | ', REM | 無多行註解 |
php | // , # | /* 多行註解 */ |
jsp | // | /* 多行註解 */ |
pascal | // | { 多行註解 } |
delphi | // | { 多行註解 } |
bash | # | |
Power Language | { 多行註解 } |
sudo visudo
Cmnd_Alias SHUTDOWN_CMDS = /sbin/poweroff, /sbin/halt, /sbin/reboot
%sudo ALL=(ALL:ALL) ALL
sudo aptitude install libimobiledevice-utils gvfs-backends gvfs-bin gvfs-fuse
sudo vim /etc/fuse.conf改成
user_allow_other
rename -v 's/_D/_delete/' *.php
| 01-26 午 ----- | | | | H8 | 70k/12/3s | wide pulldown | | AB7 | 55/12/3s | torso rotation | | PC2b | 55/15/3s | rear delt/pec fly | | PC2 | 90/15/3s | rear delt/pec fly | | lh1 | 50k/15/3s | glute |原始格式
Subject: 01-26 午 -----:: Subject: H8:70k/12/3s:wide pulldown Subject: AB7:55/12/3s:torso rotation Subject: PC2b:55/15/3s:rear delt/pec fly Subject: PC2:90/15/3s:rear delt/pec fly Subject: lh1:50k/15/3s:glute用 perl 程式, 排版改成固定欄寬比較好看..
| 01-26 午 ----- ||| | H8 | 70k/12/3s | wide pulldown | | AB7 | 55/12/3s | torso rotation | | PC2b | 55/15/3s | rear delt/pec fly | | PC2 | 90/15/3s | rear delt/pec fly | | lh1 | 50k/15/3s | glute |
sed -e "s/Subject: //g" 2016mmdd_note_org > 2016mmdd_note_w1 sed -e "s/:/|/g" 2016mmdd_note_w2 > 2016mmdd_note_w3 sed -e "s/^/|/g" 2016mmdd_note_w3 > 2016mmdd_note_w4 sed -e "s/$/|/g" 2016mmdd_note_w4 > 2016mmdd_note_w5
<link href='http://zerouncle.twbbs.org:8000/css/zerouncle /prettify.css' rel='stylesheet' type='text/css' /> <script src='http://zerouncle.twbbs.org:8000/css/zerouncle /prettify.js?autoload=true&skin=sunburst&lang=css' type='text/javascript' /> </head> <body expr:class='&quot;loading&quot; + data:blog.mobileClass' onload="prettyPrint()" >
tar jxvt prettify-4-Mar-2013.tar.bz2 tr -d \\015\\032 < 2016mmdd_note_w1 > 2016mmdd_note_w2 sed -e "s/:/|/g" 2016mmdd_note_w2 > 2016mmdd_note_w3
tar jxvt prettify-4-Mar-2013.tar.bz2
tar jxvt prettify-4-Mar-2013.tar.bz2
AB9:100/15R/3Set:訓練名稱 -> |AB9|100/15R/3Set|訓練名稱|也就是將 ":" 換成 "|", 以及在前後加上 "|" , 即成 Dokuwiki 表格格式