parallel desktops 安装。
软件可以从主页上下载,序列号用GNE747-B2KJ82-8GAW8F-0TTB0H-SWE0BJ ( for 4.0)。
日文版序列号(Serial):LF9I6-9489-7201111
软件可以从主页上下载,序列号用GNE747-B2KJ82-8GAW8F-0TTB0H-SWE0BJ ( for 4.0)。
macbook pro屏幕亮度会根据周围环境亮度变化。解决办法是在display里去掉 automatically adjust the brightness...
http://www.chimoosoft.com/products/apgrapher/#downloads
http://merkel.zoneo.net/Latex/natbib.php
The optional argument is the character preceding a post-note, default is a comma plus space. In redefining this character, one must include a space if one is wanted.
Example 1, \bibpunct{[}{]}{,}{a}{}{;} changes the output of
\citepjon90,jon91,jam92into [Jones et al. 1990; 1991, James et al. 1992].
Example 2, \bibpunct[; ]{(}{)}{,}{a}{}{;} changes the output of
\citep[and references therein]{jon90}into (Jones et al. 1990; and references therein).
http://www.hantang.org.cn/CTM/XSLW/200708/1433.htm
真正正统中医学在治疗感冒时,最常使用的处方我帮大家归纳一下,让大家都好记,也都会使用。中医治疗感冒是依据不同的感冒症状来开立处方,不是依据西医区分为那类病毒来开方子的。
1.桂枝汤 : 处方内容是桂枝
2.麻黄汤 : 处方内容是麻黄
3.葛根汤 :处方内容是葛根
4.大青龙汤 :处方内容是麻黄
5.小青龙汤 : 处方内容是麻黄
6.小柴胡汤 : 处方内容是柴胡
大家在使用上方治疗感冒的同时, 请注意一点就是当你服药后的第二天中午时,你感到肚子很饿,这就是证据,证明了你的感冒完全已经好了,如果第二天中午病人仍然没有胃口,就必须继续吃药直 到好为止,上面的六剂处方是我国用之千年的经典之方,使用至今仍然不需要更改内容,而且效果是一剂就知,药物又非常廉价,人人都可以负担得起,同时又是真 正可以将感冒治好的处方,西洋人至今仍然连个感冒都无法治好,所以西医差中医有千年以上的距离,这才是真正的中医学,而你们现在周围的中医都是温病派中 医,这些中医不是真正正统的中医,所以跟西医一样都无法治疗感冒,而上面处方中我开的麻黄,桂枝等等,对你们这里的中医来说是非常之恐惧,他们一生都未使 用过这些药物,而这就是他们之所以无法治病的原因所在,因此当你拿这药单去药房抓药时,如果药房刁难你,这不足为奇,因为你们那边从未有一位中医敢如此开 药的,请大家安心使用,我保证绝对是效果迅速,又完全无副作用,请大家将此篇论文到处去贴,同时如果有湖南乡亲看到这篇时,请将这篇打印出来,分送给亲友 们,大家如果都知道感冒可以照这样处理,相信整个湖南省乡亲们都必将更健康更富足,而且更快乐的过日子,最后祝福大家身体健康,万事如意。
附带一小插曲 : 一位你们的湖南长沙人士,女,44岁, 她是我一位美国病人的姐姐,当时我在长沙需要待上一晚,于是我的病人就来看我,同时将其姐也一起带来,希望我能提供一点意见给她,她因为右乳房有很大的硬 块,照过片子后被发现其中有阴影在,于是你们当地得西医就要她做切片,她的妹妹是我的病人,所以深知这种切片会让病情更坏,于是强力阻止她去做,坚持要等 我来看后再做决定,我一望其面,第一句话就是问她,妳几岁? 她回答说44岁,我一看她的鼻子就已经知道此女离婚了,我为了确认病因所在,所以要追根就底问,于是我再问妳的先生好吗? 她居然说她跟她的子女们很好,真是鸡同鸭讲,于是我只好直接问她,那妳跟先生的相处好吗? 此时她妹妹已经知道我要找什么? 于是替她回答说她姐姐已经离婚了,然后我问她是何时离的? 她说是2005年离婚,我再问她妳何时发现妳的乳房有硬块? 她回答说是2006年, 也就是离婚后才有的,湖南乡亲们请注意,直到目前为止西方医学尚未了解到乳癌的成因,它们连奶水就是月经也不知道,而中医知道乳癌的病因是心脏引起奶水无 法完全下达子宫后,停留在乳房中过久所造成的病,所以病人的心理很重要,当她失去婚姻后,她必然非常难过伤心,于是造成奶水停积在右乳房中,这就是乳房硬 块的来源,而西医的病理检查方式是无法查到病人已经离婚,所以他们不知道真正病因在此,只是一昧的要求病人做切片,这不但无济于事,病人一旦切片后病情必 然会更恶化,这样只会造成我施治上的困难,完全无助于治疗,希望所有湖南乡亲都要了解乳癌对中医而言是可以治疗的,如果不做任何中西医的治疗,平均也可以 活14年, 但是如果妳给西医治疗,经过切片,开刀,化疗后,妳最多只能活十年,有时五年都不到就走了,也就是说妳不治疗可以活得比给西医治疗还长还有生活质量的,当 然妳如果找到好中医来治,效果必将更好,存活率必然上升,希望大家告诉大家有癌症时要找真正中医来治疗,不要给这些西医与温病派中医来治,同时希望大家都 远离西药,因为许多癌症就是因为长期吃西药后才造成的后果,我们一起预祝这位多情的湘女,平安健康,心想事成。
生活上的小点滴,在湖南时我的学生吃了你们超市中购买的甜头之后,牙齿立刻有紧缩的反应,这是人工白砂糖造成的,请湖南乡亲们不要去买任何甜食中有加入人工白砂糖的食物,因为这种白砂糖就是胃癌与胰脏癌的来源,吃甜食可以,但是一定要吃使用蔗糖或是红糖制造的甜食,这种甜食不但好吃,甚而对牙齿跟肠胃都很好的,请大家注意一下。
腰经常酸痛有好的按摩方法吗?
按尺泽,手腰痛点或第二掌骨全息腰.每穴5分钟.
字号 7pt 8pt 9pt 10pt 12pt 15pt 18pt 20pt 25pt 30pt 肩痛,大腿外侧痛两穴一次治愈
患者,男,瓦工,四十岁,主诉半月前肩部疼痛,大腿外侧疼痛,医院就诊为肩周炎,坐骨神经痛,吃药半月仍疼痛不止,行走困难,右臂活动受限不能上抬,花医药费六百多圆,从两百公里外乘车来我处就诊,我为其点按尺泽穴,足四五趾缝间痛点各五分钟,大腿不再疼痛,行走如常,手臂活动正常,只是原来贴膏药处还有点痛,第二天早晨已如常人,嘱其自按一次巩固疗效高兴而去.第三天我电话联系,说已好了,如此疗效,我也惊奇.按摩原理:1,大腿外侧痛,大部分原因是胆经淤积寒气过多,尺泽穴属肺经,胆属木,肺属金,五行中金克木,故有此疗效.<人体工作手册>中有阐述.2,足四五趾缝间压痛点是治肩周炎特效点.凡肩部疾病都可治疗,按摩一族不可不知,我的按摩方法不讲什么手法,属于难登大雅之堂一类的,故认同感较差,发出来请同道评议.(原想不再发帖,但看到坛里求助之人不少,而有些病我恰好又能治,固忍不住再次发帖,让更多的病人知道方便快捷的治病方法一直是我追求的目标)
http://ngotcm.com/forum/viewthread.php?tid=32210&extra=page%3D1
http://www.mathinfo.u-picardie.fr/asch/f/MeCS/courseware/users/help/general/unix/redirection.html
http://hi.baidu.com/sanshan/blog/item/98e4c3ce3313690593457e69.html
http://www.linuxdevcenter.com/pub/a/linux/lpt/13_01.html (this is the best link I have seen)
Table 1: Common Standard I/O Redirections
| Function | csh | sh |
| Send stdout to file | prog > file | prog > file |
| Send stderr to file | prog 2> file | |
| Send stdout and stderr to file | prog >& file | prog > file 2>&1 |
| Take stdin from file | prog < file | prog < file |
| Send stdout to end of file | prog >> file | prog >> file |
| Send stderr to end of file | prog 2>> file | |
| Send stdout and stderr to end of file | prog >>& file | prog >> file 2>&1 |
| Read stdin from keyboard until c | prog <<c | prog <<c |
| Pipe stdout to prog2 | prog | prog2 | prog | prog2 |
| Pipe stdout and stderr to prog2 | prog |& prog2 | prog 2>&1 | prog2 |
The C shell doesn't give you an easy way to redirect standard output without redirecting standard error. A simple trick will help you do this. To put standard output and standard error in different files, give a command like:
% ( prog > output ) >& errors
http://topic.csdn.net/t/20020906/15/1002026.html
http://bbs.chinaunix.net/viewthread.php?tid=749535
check this link for the device usage.
1 - denotes stdout ( standard output )
2 - denotes stderr ( standard error )
/dev/null . apparently is null , nothing , empty , zero etc , etc .
2>/dev/null - redirect stderr to nothing , it turns stderr off.
>/dev/null 2>&1 also can write as 1>/dev/null 2>&1 - stdout redirect to /dev/null (no stdout) ,and redirect stderr to stdout (stderr gone as well) . end up it turns both stderr and stdout off
a little practice may help to undstand above .
#ls /usr /nothing
#ls /usr /nothing 2>/dev/null
#ls /usr /nothing >/dev/null 2>&1
Usually only one statement can be used. However, if one would like to use more than one statement, one will have to use the logical operator "and" combining with the open parathesis " ( )"instead of the semicolon ";"
Here is my example to create a new perl file:
#!/usr/bin/perl -w
#use strict
### create a perl script template.
$created_filename=$ARGV[0];
if(-e "$created_filename\.pl"){
print "The created file has already existed. To override, input Y(y) or N(n), then press Enter\n";
rep2: $_=
/^n(o)?/i ? print "The same named file has already existed and file creation is given up.\n"
:/^ye+s?/i ? print "The file will be created\n"
: (print "input wrong, please input Ye(s) or N(o)!!" and print " here is a test\n" and goto rep2);
# if (/^n(o)?/i){
# print "The same named file has already existed and file creation is given up.\n";
# }elsif(/^ye+s?/){
# print "The file will be created\n";
# }else{
#
# print "input wrong, please input Yes or No!!\n";
# goto rep2;
# #redo;
}
local *TR; open TR, ">$created_filename\.pl";
print TR "\#\!\/usr\/bin\/perl \-w\n";
print TR "\#use strict\n";
$mode=0777;
chmod $mode, "$created_filename\.pl";
I found one way to get it work.
The text file (rsp3.txt):
-----
(blank)
(blank)
p2_xe_1996-02-16.rsp
p2_xe_1996-03-08.rsp
p2_xe_1996-04-18.rsp
(blank)
(blank)
p2_xe_1996-05-20.rsp
p2_xe_1996-06-20.rsp
p2_xe_1996-06-20.rsp
------------------------
script:
#!/usr/bin/perl -w
$response_file=`cat rsp3.txt`;
$length1=length($response_file);
print "$response_file";
print "$length1\n";
$response_file=~s/^\n//gm;
print "$response_file";
$length2=length($response_file);
print "$length2\n";
command line options for perl:
http://perldoc.perl.org/perlrun.html
http://www.perl.com/pub/a/2004/08/09/commandline.html?page=2
install my own perl module:
http://servers.digitaldaze.com/extensions/perl/modules.html
how to convert the UT time to MJD
http://coding.derkeiler.com/Archive/Perl/comp.lang.perl.misc/2008-02/msg00699.html
the package for the conversion between MJD and UT
http://search.cpan.org/~cphil/Astro-0.69/
I have written one script which convert the MJD into UT time using the module above:
---------------------------------------------------------------------------------------
#!/usr/bin/perl -w
#### input file: (1) mjd.txt which contains all the mjd dates. please make sure the file existing
#### in the working direcotory before the run.
#### output: the converted mjd numbers.
#### usage: ./mjd_conv.pl
use lib qw(/data/lgou/perl/module/lib/perl5/site_perl /data/lgou/perl/module/lib/perl5/);
use Astro::Time;
my ($day, $month, $dayno, $year, $ut, $mjd);
$inputfile=$ARGV[0];
@mjd_array=`cat $inputfile`;
for $mjd (@mjd_array){
($day, $month, $year, $ut) = mjd2cal($mjd);
printf("mjd2cal: MJD %.5f ==> $year/%02d/%02d (%s)\n", $mjd,
$month, $day, turn2str($ut, 'H', 0));
}
http://www.math.umn.edu/~aoleg/latex_tips/latex_tips.shtml
http://www.athabascau.ca/html/depts/compserv/webunit/HOWTO/find.htm
The find command allows the Unix user to process a set of files and/or directories in a file subtree.
You can specify the following:
find . -name "rc.conf" -print
This command will search in the current directory and all sub directories for a file named rc.conf.
Note: The -print option will print out the path of any file that is found with that name. In general -print wil print out the path of any file that meets the find criteria.
find . -name "rc.conf" -exec chmod o+r '{}' \;
This command will search in the current directory and all sub directories. All files named rc.conf will be processed by the chmod -o+r command. The argument '{}' inserts each found file into the chmod command line. The \; argument indicates the exec command line has ended.
The end results of this command is all rc.conf files have the other permissions set to read access (if the operator is the owner of the file).
find /usr/src -not \( -name "*,v" -o -name ".*,v" \) '{}' \; -print
This command will search in the /usr/src directory and all sub directories. All files that are of the form '*,v' and '.*,v' are excluded. Important arguments to note are:
The above example is shows how to select all file that are not part of the RCS system. This is important when you want go through a source tree and modify all the source files... but ... you don't want to affect the RCS version control files.
find . -exec grep "www.athabasca" '{}' \; -print
This command will search in the current directory and all sub directories. All files that contain the string will have their path printed to standard output.
If you want to just find each file then pass it on for processing use the -q grep option. This finds the first occurrance of the search string. It then signals success to find and find continues searching for more files.
find . -exec grep -q "www.athabasca" '{}' \; -print
This command is very important for process a series of files that contain a specific string. You can then process each file appropriately. An example is find all html files with the string "www.athabascau.ca". You can then process the files with a sed script to change those occurrances of "www.athabascau.ca" with "intra.athabascau.ca".
On the main setup page the ""Internet Connection Type"" should be
on ""Obtain IP Automatically - DHCP “. Click on the Save Settings
button.
Now click on the sub tab ""MAC address clone"".
- Click on enable
Click Clone & click save settings
Check WAN Ip on Status page of router ....
If getting Valid Ip .... try going online
If not ... power cycle for 4-5 minutes & then agian check the WAN Ip address .....
Colortbl and xcolor packages support the color in latex. However, it can be used with the class file "article". It doesn't support the emulateapj class, which is a pity. The reason why I prefer emulateapj class is that the emulateapj has a good-looking table.
Here are some basic examples for the usage of colortbl and xcolor:
colortbl:
\begin{table}[ht]
%\scriptsize
%\rowcolors[\hline]{2}{rgb:red!50,2;green!50,2;blue!0,1}{}
\caption{rxte data for Model phabs(simpl(kerrbb2)) with nH fixed at 0.46e22$\rm cm^{-2}$ (3.0-8.0 keV) }
\centering
\begin{tabular}{c c c c c c>{\columncolor[gray]{.8}} c>{\columncolor[gray]{.5}} c c c c c}
\begin{tabular}{c c c c c c c c c c c c c c}
\hline\hline
\hline\hline
.......
\end{table}
Xcolor:
\begin{table}[ht]
\caption{rxte data for Model phabs(simpl(kerrbb2)) with nH fixed at 0.46e22$\rm cm^{-2}$ (3.0-20.0 keV) }
\centering
\rowcolors[\hline]{2}{rgb:red!50,2;green!50,2;blue!0,1}{}
\begin{tabular}{c c c c c c c c c c c c}
\hline\hline
.........
\end{table}
http://bbs.chinaunix.net/archiver/?tid-596912.html
use the command "prompt" before use the command "mget". The purpose of "prompt" is to turn off the interactive mode.
"get" is getting one single file.
"mget" is getting multiple files.
ftp command collection:
http://www.computerhope.com/software/ftp.htm
http://lifehacker.com/393296/read-full-magazines-for-free-with-or-without-an-iphone
here is the tutorial:
http://paininthetech.com/2007/10/03/fake-iphone-user-agent/
the easy tool is the browser Konqueror.
http://www.cyberciti.biz/faq/open-chm-file-under-linuxfreebsd/
http://www.ats.ucla.edu/stat/fileman/unix_cmds.htm
head [-n] [files]
Print the first few lines of one or more files. It is a shell-command and has to be issued at shell prompt.
For usage, use head --help.
Example:
C:\wbin\examples>sh
$head unix_cmd.txt
agrep.exe
ansi2knr.exe
basename.exe
bc.exe
bison.exe
bunzip2.exe
bzip2.exe
bzip2recover.exe
cat.exe
chgrp.exe
Example: Output the first three line of ASCII data file fixed.txt to fixed_small.txt.
C:\wbin\examples>more fixed.txt
123456
234445
334566
456577
534345
676767C:\wbin\examples>sh
$head -3 fixed.txt >fixed_small.txt
C:\wbin\examples>wc -l fixed_small.txt
3 fixed_small.txt
tail [options] [file]
Print the last ten lines of the names file.
For usage, use tail --help.
Example:
C:\wbin\examples>tail unix_cmd.txt
uuencode.exe
wc.exe
wget.exe
wget.hlp
which.exe
whoami.exe
xargs.exe
yes.exe
zcat.exe
zip.exe
wc [options] [files]
Print a character, word, and line count for files.
For usage, use wc --help.
Example 1: Count the number of rows in the file.
C:\wbin\examples>more fixed.txt
123456
234445
334566
456577
534345
676767C:\wbin\examples>wc -l fixed.txt
6 fixed.txt
Example 2: Print the length of the longest line.
E:\temp>more odd.txt
1 2 3 4 5 6 7
1 2 3 4 5 6 7 8 9 0
11 22 3 3 444 555 6 77 88
222 444 55E:\temp>wc -L odd.txt
25 odd.txt
cut options [files]
Select a list of columns or fields from one or more files. Option -c or -f must be specified.
For usage, use cut --help.
Example1: Free format
C:\wbin\examples>more f2.txt
john b a
tina b aC:\wbin\examples>cut -d" " -f2 grade.txt
b
b
Example 2: Fixed format
C:\wbin\examples>more fixed.txt
123456
234445
334566
456577
534345
676767C:\wbin\examples>cut -c2-3 fixed.txt
23
34
34
56
34
76
join [options] file1 file2
Join the common lines of sorted file1 and sorted file2 (merge two files).
For usage, use join --help.
Example 1:
C:\wbin\examples>more score.txt
john 81 91
mark 82 93
tina 88 92C:\wbin\examples>more grade.txt
john b a
tina b aC:\wbin\examples>join score.txt grade.txt > final.txtC:\wbin\examples>more final.txt
john 81 91 b a
tina 88 92 b a
Example 2: Pair each score with its grade.
C:\wbin\examples>join -o 1.1 1.2 2.2 1.3 2.3 score.txt grade.txt
john 81 b 91 a
tina 88 b 92 a
paste [options] files
Merge corresponding lines of one or more files into vertical columns, separated by tab.
For usage, use paste --help.
Example:
C:\wbin\examples>more c1.txt
1
2
3
4
5
6C:\wbin\examples>more c23.txt
23
34
34
56
34
76C:\wbin\examples>paste c1.txt c23.txt
1 23
2 34
3 34
4 56
5 34
6 76
cat [options] [file] ...
Concatenate and write files.
For usage, use cat --help.
Example 1: Write a file to the screen (standard out).
C:\>cat file1.txt
a1 a2 a3
1 3 4
2 9 0
3 10 2
4 11 2
Example 2: Concatenating (stacking) two files.
C:\>cat file1.txt
a1 a2 a3
1 3 4
2 9 0
3 10 2
4 11 2
C:\>cat file2.txt
5 12 0
6 9 1
7 8 3
C:\>cat file1.txt file2.txt > whole.txt
C:\>cat whole.txt
a1 a2 a3
1 3 4
2 9 0
3 10 2
4 11 2
5 12 0
6 9 1
7 8 3
Example 3: Stacking multiple files with the same file extension
C:\>cat file1.txt
a1 a2 a3
1 3 4
2 9 0
3 10 2
4 11 2
C:\>cat file2.txt
5 12 0
6 9 1
7 8 3
C:\>cat file3.txt
9 12 7
10 12 0
11 23 34
C:\>cat *.txt
a1 a2 a3
1 3 4
2 9 0
3 10 2
4 11 2
5 12 0
6 9 1
7 8 3
9 12 7
10 12 0
11 23 34
C:\>cat *.txt > big
C:\>cat big
a1 a2 a3
1 3 4
2 9 0
3 10 2
4 11 2
5 12 0
6 9 1
7 8 3
9 12 7
10 12 0
11 23 34
Remark: Notice that the file big does not have extension .txt. This is to avoid an infinite loop due to the use of wild card '*'.
sort [options] [files]
Sort the lines of the named files, typically in alphabetical order.
For usage, use sort --help.
Example 1:
beta (124) % cat hsbfew.txt
id female race ses schtyp prog read write math science socst
70 0 4 1 1 1 57 52 41 47 57
121 1 4 2 1 3 68 59 53 63 61
86 0 4 3 1 1 44 33 54 58 31
141 0 4 3 1 3 63 44 47 53 56
172 0 4 2 1 2 47 52 57 53 61
113 0 4 2 1 2 44 52 51 63 61
50 0 3 2 1 1 50 59 42 53 61
11 0 1 2 1 2 34 46 45 39 36
84 0 4 2 1 1 63 57 54 58 51
48 0 3 2 1 2 57 55 52 50 51
75 0 4 2 1 3 60 46 51 53 61
60 0 4 2 1 2 57 65 51 63 61beta(125)% sort -n hsbfew.txt
id female race ses schtyp prog read write math science socst
11 0 1 2 1 2 34 46 45 39 36
48 0 3 2 1 2 57 55 52 50 51
50 0 3 2 1 1 50 59 42 53 61
60 0 4 2 1 2 57 65 51 63 61
70 0 4 1 1 1 57 52 41 47 57
75 0 4 2 1 3 60 46 51 53 61
84 0 4 2 1 1 63 57 54 58 51
86 0 4 3 1 1 44 33 54 58 31
113 0 4 2 1 2 44 52 51 63 61
121 1 4 2 1 3 68 59 53 63 61
141 0 4 3 1 3 63 44 47 53 56
172 0 4 2 1 2 47 52 57 53 61
fgrep [options] [pattern] [files]
Search one or more files for lines that match a literal, text-string pattern. Because fgrep does not support regular expressions, it is faster than grep.
For usage, use fgrep --help.
Example 1: Search for lines that contains "john". The option -i is used to ignore uppercase and lowercase distinction.
C:\wbin\examples>more score.txtjohn 81 91
mark 82 93
tina 88 92
C:\wbin\examples>fgrep "john" score.txt
john 81 91C:\wbin\examples>fgrep -i "JOHN" score.txt
john 81 91
grep [options] regexp [files]
Search one or more files for lines that match a regular expression regexp.
For usage, use grep --help.
Example 1: Search for lines that contain a particular character.
C:\wbin\examples>more problem.txt
123456
23?445
334566
456x77
534345
676767C:\wbin\examples>grep "?" problem.txt
23?445
Example 2:
C:\wbin\examples>grep "[x?]" problem.txt
23?445
456x77
Example 3:
gawk [options] -f script_file input_file(s)
gawk [options] 'script' file(s)
A pattern-matching program for processing files, especially when files are databases.
For usage, use gawk --help.
Example1: Print the maximal record length of a file.
C:\wbin\examples>cat reclength.awk
BEGIN {len = 0}
{
test = length($0)
if ( test > len) len = test
}
END {print "The maximal record length is " len}C:\wbin\examples>gawk -f reclength.awk score.txt
The maximal record length is 10
Example 2: Print the second column of a file.
C:\wbin\examples>more score.txt
john 81 91
mark 82 93
tina 88 92C:\wbin\examples>gawk '{print $2}' score.txt
81
82
88
Example 3: Print the number of records of each line.
Example 4: Deleting the first line of a file. The first line of file test.txt has variable names. Sometimes, it may be useful to delete the first line, or multiple lines.C:\wbin\examples>more temp
1 70 0 4 1 1 1 57 52 41 47 57
2 121 1 4 2 1 3 68 59 53 63 61
3 86 0 4 3 1 1 44 33 54 58 31
4 141 0 4 3 1 3 63 44 47 53 56
5 172 0 4 2 1 2 47 52 57 53 61
6 113 0 4 2 1 2 44 52 51 63 61
7 50 0 3 2 1 1 50 59 42 53 61
8 11 0 1 2 1 2 34 46 45 39 36
9 84 0 4 2 1 1 63 57 54 58 51
10 48 0 3 2 1 2 57 55 52 50 51
11 75 0 4 2 1 3 60 46 51 53 61C:\wbin\examples>gawk '{print NF}' temp
12
12
12
12
12
12
12
12
12
12
12
E:\awk_stuff>more test.txt
a b c
1 2 3
2 3 5
3 5 7
1 2 3
2 3 4
4 5 5
2 4 6E:\awk_stuff>sh
$ gawk 'NR >1'noname.txt
$ cat noname.txt
1 2 3
2 3 5
3 5 7
1 2 3
2 3 4
4 5 5
2 4 6
seq [options] first increment last
Generate a sequence of integers, with a user-selected increment.
For usage, use seq --help.
Example 1: Use the default for first (1) and increment (1).
C:\wbin>seq 5
1
2
3
4
5
Example 2:
C:\wbin>seq 0 10 100
0
10
20
30
40
50
60
70
80
90
100
od [options] [file]
Octal dump; produce a dump (normally octal) of the named file.
For usage, use od --help.
sum [option] file
Calculate and print a checksum and the number of (512-byte) blocks for file.
For usage, use sum --help.
Example:
beta (119) % sum hsb2.sas7bdat
27863 25 hsb2.sas7bdat
fold [options] [files]
Break the lines of the named files so that they are no wider than the specified width.
For usage, use fold --help.
Example:
C:\wbin\examples>more score.txt
john 81 91
mark 82 93
tina 88 92
C:\wbin\examples>fold -w 5 score.txt
john
81 91
mark
82 93
tina
88 92
Example : Convert an input file to all uppercase:
D:\temp>more score.txt
john 81 91
mark 82 93
tina 88 92D:\temp>dd if=score.txt of=score_up.txt conv=ucase
0+1 records in
0+1 records outD:\temp>more score_up.txt
JOHN 81 91
MARK 82 93
TINA 88 92
tr [options][string1][string2]
Performing substitution of characters from string1 to string2 or deletion of characters in string1.
For usage, use tr --help.
Example1: Change uppercase to lowercase in a file:
D:\temp>more score.txt
john 81 91
mark 82 93
tina 88 92D:\temp>tr '[a-z]' '[A-Z]' <> score1.txtD:\temp>more score1.txt
JOHN 81 91
MARK 82 93
TINA 88 92
Example 2: Delete ^M character appended to the end of each line:
Let's say we have a file called test.csv that has an extra character ^M at the end of each line as illustrated below.
18,307,130,3504,12,70,1,8,0
15,350,165,3693,12,70,1,8,0
18,318,150,3436,11,70,1,8,0
16,304,150,3433,12,70,1,8,0
17,302,140,3449,11,70,1,8,0
15,429,198,4341,10,70,1,8,0
We can do use tr command as follows.
tr -d "\015"test1.csv
The new file test1.csv will look like this:
18,307,130,3504,12,70,1,8,0
15,350,165,3693,12,70,1,8,0
18,318,150,3436,11,70,1,8,0
16,304,150,3433,12,70,1,8,0
17,302,140,3449,11,70,1,8,0
15,429,198,4341,10,70,1,8,0
Note: 1) Place to download the Unix utilities for Windows: http://unxutils.sourceforge.net/
2) See more complete document: http://www.gnu.org/manual/manual.html
wd will output the plot into one data file without saving the figure properties, e.g. scale of the axies, label of the axises, etc (the file extension is .qdp).
we, besides outputing the data, also output the figure properties into a separate file (whose extension is .pco).
http://www-h.eng.cam.ac.uk/help/tpl/textprocessing/squeeze.html
http://www.mackichan.com/index.html?techtalk/501.htm~mainFrame
http://www.mackichan.com/index.html?techtalk/501.htm~mainFrame
close in: verb: advance or converge on
put one finger on: identify
getaway car:
A getaway car is a car used to make a getaway, i.e. one used flee the scene of a crime. Getaway cars are prevalent especially in bank robberies as the criminals need to avoid apprehension by law enforcers such as police. Often stolen cars are used. In some cases the criminals discard the getaway car to hide their tracks by dumping it in a river or setting the car on fire.
ftp://ftp.xray.mpe.mpg.de/xmm/service/data_analysis/EPIC_PN/spectral/spec_bin.html
input files: source.fits, backgr.fits
output file: source_grp.fits.fits
instrument: EPIC PN and MOS, IMAGING mode