1. New a windown in vertical
{{
screen
# new a screen in bottom
contral + a
shift +s
# Move to below
controal + tab
# new a scrren
contral + a -> c
}}}
Reference:
http://go-linux.blogspot.com/search?q=screen
http://magazine.redhat.com/2007/09/27/a-guide-to-gnu-screen/
2011年7月14日 星期四
Compress and InCompress
tar
1. Compress a file using
{{{
tar -czv -f /tmp/454_2_6.tar.gz doc/*
}}}
2. Incompress
{{{
tar -xzf xxx.tar.gz
}}}
1. Compress a file using
{{{
tar -czv -f /tmp/454_2_6.tar.gz doc/*
}}}
2. Incompress
{{{
tar -xzf xxx.tar.gz
}}}
2011年6月20日 星期一
System execute
1. using `` symbol
2. using system function
Case 1: grep need the escape in search
{{{
#!/usr/bin/perl
use strict;
use warnings;
my $r = `grep "\\w" FGSH_TIR.gff.GOA.overlap.entries.Annotation_2`;
#my $r = `echo hello`;
print $r;
system ("cat FGSH_TIR.gff.GOA.overlap.entries.Annotation_2 | grep"."\'\\w\'"."> tt");
}}}
2. using system function
Case 1: grep need the escape in search
{{{
#!/usr/bin/perl
use strict;
use warnings;
my $r = `grep "\\w" FGSH_TIR.gff.GOA.overlap.entries.Annotation_2`;
#my $r = `echo hello`;
print $r;
system ("cat FGSH_TIR.gff.GOA.overlap.entries.Annotation_2 | grep"."\'\\w\'"."> tt");
}}}
2011年5月25日 星期三
Element article
1. http://www.uic.edu/depts/accc/software/unixgeneral/email101.html
2. vi http://vimregex.com/
http://www.softpanorama.org/Editors/Vimorama/vim_regular_expressions.shtml
3.
2. vi http://vimregex.com/
http://www.softpanorama.org/Editors/Vimorama/vim_regular_expressions.shtml
3.
2011年5月18日 星期三
Show Method and Member and enum
Show method
http://www.java2s.com/Code/Java/Reflection/ClassReflectionshowmethods.htm
#############################################################
show enum
Reference: http://download.oracle.com/javase/1,5.0/docs/guide/language/enums.html
for (Rank rank : Rank.values())
protoDeck.add(new Card(rank, suit))
http://www.java2s.com/Code/Java/Reflection/ClassReflectionshowmethods.htm
#############################################################
show enum
Reference: http://download.oracle.com/javase/1,5.0/docs/guide/language/enums.html
for (Rank rank : Rank.values())
protoDeck.add(new Card(rank, suit))
訂閱:
文章 (Atom)