|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
|
2008-9-14 21:26 |
|
|
dragonamd
中级用户
  
积分 209
发帖 100
注册 2008-8-1
状态 离线
|
『第 17 楼』:
使用 LLM 解释/回答一下
和批处理放一起使用不了,。这个还没用过,具体怎么使用,能教一下吗
It doesn't work when used together with batch processing. I haven't used this yet. How exactly to use it? Can you teach me?
|
|
2008-9-14 21:45 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 18 楼』:
使用 LLM 解释/回答一下
还没用过如何知道和批处理放一起使用不了?
先看看帮助吧:
gawk --help
Usage: gawk -f progfile file ...
Usage: gawk "program" file ...
POSIX options: GNU long options:
-f progfile --file=progfile
-F fs --field-separator=fs
-v var=val --assign=var=val
-m val
-W compat --compat
-W copyleft --copyleft
-W copyright --copyright
-W dump-variables --dump-variables
-W gen-po --gen-po
-W help --help
-W lint --lint
-W lint-old --lint-old
-W non-decimal-data --non-decimal-data
-W profile --profile
-W posix --posix
-W re-interval --re-interval
-W source=program-text --source=program-text
-W traditional --traditional
-W usage --usage
-W version --version
To report bugs, see node `Bugs' in `gawk.info', which is
section `Reporting Problems and Bugs' in the printed version.
How do you know it can't be used with batch files if you haven't used it yet?
First, take a look at the help:
gawk --help
Usage: gawk -f progfile file ...
Usage: gawk "program" file ...
POSIX options: GNU long options:
-f progfile --file=progfile
-F fs --field-separator=fs
-v var=val --assign=var=val
-m val
-W compat --compat
-W copyleft --copyleft
-W copyright --copyright
-W dump-variables --dump-variables
-W gen-po --gen-po
-W help --help
-W lint --lint
-W lint-old --lint-old
-W non-decimal-data --non-decimal-data
-W profile --profile
-W posix --posix
-W re-interval --re-interval
-W source=program-text --source=program-text
-W traditional --traditional
-W usage --usage
-W version --version
To report bugs, see node `Bugs' in `gawk.info', which is
section `Reporting Problems and Bugs' in the printed version.
|

 |
|
2008-9-14 21:53 |
|
|
dragonamd
中级用户
  
积分 209
发帖 100
注册 2008-8-1
状态 离线
|
『第 19 楼』:
使用 LLM 解释/回答一下
gawk "{for (i=1;i<=NF;i++) { if($i~/^5-[0-9]/){ split($i,a,/-/); if(a[2]>max) max=a[2]; }}} END{print max}" your_file
和gawk放一起使用不正常啊,。
gawk "{for (i=1;i<=NF;i++) { if($i~/^5-/){ split($i,a,/-/); if(a>max) max=a; }}} END{print max}" your_file
And the gawk doesn't work properly when used together, 。
|
|
2008-9-14 22:01 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 20 楼』:
使用 LLM 解释/回答一下
VBS慢因为它排序了,你只要最大的。。。时间复杂度是1
VBS is slow because it sorts, you just want the largest... The time complexity is 1
|

S smile 微笑,L love 爱,O optimism 乐观,R relax 放松,E enthusiasm 热情...Slore |
|
2008-9-14 23:11 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 21 楼』:
使用 LLM 解释/回答一下
"不正常"的具体表现是?
What are the specific manifestations of "abnormal"?
|

 |
|
2008-9-15 00:27 |
|
|
dragonamd
中级用户
  
积分 209
发帖 100
注册 2008-8-1
状态 离线
|
『第 22 楼』:
使用 LLM 解释/回答一下
谁能解决一下。
表现的错误是
gawk:cmd. line:2:fatal: cannot open file 'your_file for reading <no such file or directory>
Who can solve this.
The error shown is
gawk:cmd. line:2:fatal: cannot open file 'your_file for reading <no such file or directory>
|
|
2008-9-15 00:37 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 23 楼』:
使用 LLM 解释/回答一下
gawk:cmd. line:2:fatal: cannot open file 'your_file for reading <no such file or directory> 你有 your_file 这个文件吗?
把 your_file 替换成你自己的数据文件!
gawk:cmd. line:2:fatal: cannot open file 'your_file for reading <no such file or directory> Do you have the file 'your_file'?
Replace 'your_file' with your own data file!
|
|
2008-9-15 07:08 |
|
|
dragonamd
中级用户
  
积分 209
发帖 100
注册 2008-8-1
状态 离线
|
『第 24 楼』:
使用 LLM 解释/回答一下
根本用不了,。斑竹这代码你可以正常使用 ?
It simply doesn't work. Moderator, can you use this code normally?
|
|
2008-9-15 10:01 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 25 楼』:
使用 LLM 解释/回答一下
“根本用不了”的具体表现又是什么?
What are the specific manifestations of "simply not working"?
|

 |
|
2008-9-15 11:18 |
|
|
dragonamd
中级用户
  
积分 209
发帖 100
注册 2008-8-1
状态 离线
|
『第 26 楼』:
使用 LLM 解释/回答一下
在这里其他的gawk可以用,就我的不能用
Other gawks here can be used, but mine can't
|
|
2008-9-15 12:48 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 27 楼』:
使用 LLM 解释/回答一下
报错信息贴出来看看?
Post the error message to have a look?
|

 |
|
2008-9-15 13:00 |
|
|
dragonamd
中级用户
  
积分 209
发帖 100
注册 2008-8-1
状态 离线
|
『第 28 楼』:
使用 LLM 解释/回答一下
你们运行正常,我运行不正常,郁闷
You run normally, but I don't run normally. So depressed
|
|
2008-9-16 02:00 |
|
|
HAT
版主
       
积分 9023
发帖 5017
注册 2007-5-31
状态 离线
|
『第 29 楼』:
使用 LLM 解释/回答一下
运行不正常,总得有什么现象吧?
There is no normal operation, there must be some phenomenon, right?
|

 |
|
2008-9-16 10:01 |
|
|
dragonamd
中级用户
  
积分 209
发帖 100
注册 2008-8-1
状态 离线
|
『第 30 楼』:
使用 LLM 解释/回答一下
表现的错误是
gawk:cmd. line:2:fatal: cannot open file 'your_file for reading <no such file or directory>
还是这样,我不知道你们为什么能正常,
The error shown is:
gawk:cmd. line:2:fatal: cannot open file 'your_file for reading <no such file or directory>
Still like this, I don't know why you can be normal.
|
|
2008-9-16 20:59 |
|