cut的使用方法
名称:cut 使用权限:所有使用者 用法:cut -cnum1 -num2 filename 说明:显示每行从开头算起 num1 到 num2 的文字。 范例: shell>> cat example test2 this is test1 shell>> cut -c0 -6 example ## print 开头算起前 6 个字节 test2 this i
Category: 未分类
npipe
E:temp>npipe
Usage: npipe [OPTIONS] [INPUT] [OUTPUTS] [FILE FLAGS] [CONVERSIONS]
Input parameters can appear in any order, file flags affect only the next
file/flag/handle/section/object specified on the command line
-t, --tee
Copy INPUT to STDOUT
-s, --stderrtee
Copy INPUT to STDERR
-n handle-num, --handle handle-num
Copy INPUT to handle: handle-num
-e error-file, --error-file error-file
Send errors to file: error-file
-a append-file, --append-file append-file
Append INPUT to file: append-file
-i input-file, --input-file input-file
Read INPUT from file: input-file
-N handle-num, --input-handle handle-num
Read INPUT from handle: handle-num
-D ntapi-file, --device-input ntapi-file
Read INPUT from native api/kernel file: ntapi-file
-d ntapi-file, --device-output ntapi-file
Copy INPUT to native api/kernel file: ntapi-file
-V, -VV, -VVV, -VVVV
Increasing verbosity, by default only parameter error info
-b buffer-length, --buffer-length buffer-length
Set the IO buffer size (default is 64k, unless console handle IO
is taking place, in which case it is 256)
-w, --wait
Wait for all pipes to be connected to before starting transfer
-B, --block-read
Read an entire buffer before writing
Likely only affects pipes or other communication handles
-m max-bytes, --maximum max-bytes
Read a maximum of max-bytes from INPUT
-c conversion-function, --convert conversion-function
Converts the buffer using one of the following functions:
All output commands after this point will be processed after the
conversion, those before will be unaffected.
l ANSI To Lower Case
L Unicode To Lower Case
u ANSI To Upper Case
U Unicode To Upper Case
c Clean non-ASCII to space
c:l Clean non-ASCII to letter l
cnum Clean non-ASCII to ASCII char num
c- Delete non-ASCII
O ANSI to OEM
A OEM to ANSI
w ANSI to Unicode
W ANSI to Unicode, with BOM
a Unicode to ANSI
s[num] Swap order of every num bytes, default 2, where num is a power
of two
hb[+][-]Binary to Hex by byte [with text dump] [without address dump]
hw[+][-]Binary to Hex by word [with text dump] [without address dump]
hd[+][-]Binary to Hex by dword [with text dump] [without address dump]
hr[+] Binary to Hex by byte raw dump [with spaces]
-h, -?, --help
Display this help
-v, --version
Display version info
--credits
Display program credits
-P, --progress
Displays a progress bar on the active console screen buffer (not STDOUT
or STDERR)
-R, --report
Print a status report to the error handle (default STDERR, set with -e)
This is overriden by the progress-bar flag (-P).
-O [queue length], --overlapped [queue length]
Reads from the input file (not file mapping) using asynchronous
overlapped IO.
This will probably improve the overall read/process speed
This is incompatible with the block-read flag (-B), and file mapping
inputs (-F)
'Queue length' defaults to 16, and must be between 1 and 64.
-Q, --overlapped-output
Outputs to the last output handle in the chain using asynchronous
overlapped IO.
This is incompatible with file mapping outputs
This activates overlapped read IO (-O above)
-X, --always-read
Read input even if no output specified
Flags which affect the next file on the command line
-W, --file-share-write
Open with FILE_SHARE_WRITE
-F, --file-mapping
Treat as a named file mapping object (cannot be a pipe)
For best performance: ensure that the buffer size and the skip offset
are a multiple of the page size, usually 4k.
-p, --persistent
Continue writing to next handle, even if write errors occur
Read unmapable/unreadable sections as blank
-S skip-bytes, --skip skip-bytes
Skip the first skip-bytes bytes of the file, (not pipe)
Flags which affect the next file on the command line (pipe only)
-z Force connection to existing pipes rather than create a new pipe
-Z Force creation of new pipes rather than connection to existing pipe
Pipe names must be in the format: .pipe[[path]name]
INPUT defaults to STDIN
/ may be used instead of -
Number may be prefixed with 0x for hexadecimal, and postfixed with the following
SI prefixes: k,M,G,T,P,E
These stand for increasing powers of 2^10 (1024) and can be used to specify kilo
bytes, megabytes, etc.
One letter arguments may be clumped, however only the last argument in the clump
may have an argument.
eg. -V -V -t -s -b64k <--> -VVtsb64k
Example: npipe -tsVVVVwm64k -FpD DevicePhysicalMemory out -chr -a outputfile -
Z .pipepipe1
Outputs to STDOUT,STDERR. Very verbosely. Waits for all pipes. Read max 64kB (65
536 bytes). Opens DevicePhysicalMemory as a ntapi file mapping object and pers
istently reads from it. Outputs to file: 'out'. Converts output to a raw hexdump
, affects following two output commands. Appends to file: 'outputfile'. Always c
reates, and outputs on pipe: 'pipe1'.
E:temp>npipe -c hr+ -i writer.exe outputs
数钱
拷,你们太悠闲了吧 (转载)
标 题: 拷,你们太悠闲了吧
发信站: 水木社区 (Sat Jun 9 11:10:57 2007), 站内
【 以下文字转载自 WorkLife 讨论区 】
发信人: yellowalert (香烧小静静), 信区: WorkLife
标 题: 拷,你们太悠闲了吧
发信站: 水木社区 (Sat Jun 9 11:10:01 2007), 站内
我的一天
7:00 起床
8:00-11:00 数钱
11:00-12:00吃饭、保养指关节
1:00-4:00 数钱
4:00-5:00 发现钱不是自己的,痛苦一小时
TotalCmd支持ftp服务上的搜索了
更新22:在FTP服务器上搜索
OA,MIS,ERP(转载)
转载自[smth]
如果客户随便给点钱,他们把自己的产品称作财务系统
如果钱给得多些,就改名叫OA或者MIS
如果钱给得非常多,就改名叫ERP
其实都是一个东西。
他们的理由很简单,客户反正不懂,能忽悠就忽悠。。
拒绝
[(XYS20070606)]一个充分尊重患者知情权的中医师,不仅要告诉患者自己诊断不了癌
症,也治不了癌症,而且应该要求患者必须拿着现代医学的检验单来看病,否则
就拒绝治疗;如果是确知得了癌症的患者来要求治病,也应拒绝,而不能因为患 者坚决要求采用中医方法治疗就以为自己没有责任、可以放心开药了。教师何尝不应如此?
ACM ICPC的魔鬼训练方案修正案
根据队员要求,[ACM ICPC的魔鬼训练方案]修改如下:
任务模式中,原版本教学模式为每次不过关切手指一个,现改为切手指一节,以延长队员的编程生命和痛苦。
我为你们骄傲
作为教练率队参加ACM ICPC东北地区赛。
两个队都获得了二等奖。
同时,参加吉林省高教厅赛的三个队,两个二等奖,一个三等奖。
我为你们骄傲。
ACM ICPC的魔鬼训练方案
注意,以下内容需要较强心理承受能力,可能导致某些人不舒服。
0.教学关
要求在规定时间内,如5分钟内完成事先告知的题目,包括读题时间。
题目包括语法、常用函数、一般算法、一般数据结构、动态规划、贪心等。
不提供任何参考资料。题目为英文。
不能在规定时间内完成的不能进入正式关--这是为了队员着想,向下看你就明白了。
1.任务模式
要求队员在 规定时间内 完成 一定数量的 指定题目。到规定时间,凡未完成题目的,切手指一个。
直至过关为止。
手指数少于1的队员将光荣退役--这是为了队员着想,向下看你就明白了。
2.PK模式
要求队员两人一组结对。同组内的两人分别完成题目。两台计算机上都连接有枪枝指向对方,先完成全部题目者的枪枝击毙对方。
后完成,不,未完成题目的另一队员自动退役。
3.死斗模式
要求队员十余人一组。同组内的所有计算机共同接有机枪。先完成题目的激活机枪,"突突突突突突...."。
除唯一胜利者外,其余队员自动退役。
我自己也觉得恐怖。
隔直通交,电容(转载)
通常情况下,电脑有源音箱采用的2分频方式,即音频信号的高频成分和低频成分,分别由高音扬声器和低频扬声器来表现。这是由扬声器的分工决定的,高频扬声器适合重放较高频率的声音成分,而低频扬声器则适合于重放低频率的声音成分。低档的有源音箱中,往往只采用一个分频电容来进行分频,由于分频电容具有"阻低通高"的特性,因此高音扬声器往往串联着一个分频电容,造成低音与高音混在一起,效果令人难以接受。