登录
首页 » Linux-Unix program » 根据用户输入的命令行选项的不同,来实现三种功能:argc为2时,命令格式为 myfind <pathname> 它要统计出,在常规文件中,...

根据用户输入的命令行选项的不同,来实现三种功能:argc为2时,命令格式为 myfind <pathname> 它要统计出,在常规文件中,...

于 2023-03-19 发布 文件大小:7.86 kB
0 140
下载积分: 2 下载次数: 1

代码说明:

根据用户输入的命令行选项的不同,来实现三种功能:argc为2时,命令格式为 myfind 它要统计出,在常规文件中,文件长度不大于4096字节的常规文件,在所有允许访问的普通文件中所占的百分比。不允许打印出任何路径名。 argc为4且argv[2] == “-comp”时,命令格式为 myfind -comp 输出在目录子树之下,所有与文件内容一致的文件的绝对路径名。不允许输出任何其它的路径名,包括不可访问的路径名。当参数pathname不是绝对路径时,调用getcwd()等函数来取得文件的绝对路径名。 argc 大于等于4且argv[2] == “-name”时,命令格式为myfind -name ……是一个以空格分隔的文件名序列(不带目录)。命令输出目录子树之下,所有与…序列中文件名相同的文件的绝对路径名。不允许输出不可访问的或无关的路径名。

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • smtp客户端工具源代码。
    smtp客户端工具源代码。-smtp customer end tool source code.
    2022-02-21 14:58:12下载
    积分:1
  • Simple shell using pipes on C/C++ Linux
    Simple shell using pipes on C/C++ Linux
    2022-07-15 19:53:15下载
    积分:1
  • 带宽测量算法spruce源代码,能够实现对网络带宽的测量
    带宽测量算法spruce源代码,能够实现对网络带宽的测量-Bandwidth measurement algorithm spruce source code, be able to achieve the measurement of network bandwidth
    2022-11-22 15:30:03下载
    积分:1
  • 非常不错的网管开发包,包含了完整的snmp api
    非常不错的网管开发包,包含了完整的snmp api-very good network management development kit, which includes a complete snmp api
    2022-01-26 05:49:03下载
    积分:1
  • linux下面的一个矢量绘图开发软件源代码
    linux下面的一个矢量绘图开发软件源代码-linux following a vector drawing software source code
    2023-03-28 06:05:04下载
    积分:1
  • 的最新版本
    PHPBB最新版本-PHPBB newest edition
    2022-06-11 19:28:38下载
    积分:1
  • jacobi algorithm pthreads unix
    jacobi algorithm pthreads unix
    2022-04-09 07:38:04下载
    积分:1
  • 用以写的一个简单的扫描器
    用以写的一个简单的扫描器-to write a simple scanner
    2023-05-11 13:55:02下载
    积分:1
  • 应用平台 SCO OpenServer 5 编译命令 cc
    应用平台 SCO OpenServer 5 编译命令 cc -o fget fget.c -lcurses 此程序适用于SCO UNIX主机系统,客户端为任意平台. 以Windows客户为例,以下简要说明其使用方法. 1、直接拨号方式 先进入Windows的终端仿真器, 使用ATDT命令向UNIX主机拨号,当主机连通时, 运行主机的FGET程序,格式为 FGET 下载文件名.然后,从终端仿真器的传输" 菜单选接收二进制文件选项,输入本地文件名后,即可接收文件. 2、internet连接方式 先将FGET文件在主机上编译通过, 然后用Netterm之类的telnet 软件连接到主机上,当主机连通时,运行主机的FGET程序,格式为 FGET 下载文件名. 然后从菜单选接收文件选项,输入本地文件名后,即可接收文件.-application platform SCO OpenServer compiler five orders cc-o fget fget.c- lcurses this procedure applies to SCO UNIX mainframe system, the client platform to be arbitrary. A Windows client for example, the following brief description of their use. A direct dial-up access ahead of Windows Terminal simulator, ATDT order to use UNIX mainframe dial-up, when the mainframe connectivity, FGET mainframe operating procedures, formats FGET to download the file. Then, terminal emulation from the transmission election quot menu option to receive binary files, input from the local paper, the document may be received. 2 , internet connectivi
    2022-09-16 13:40:03下载
    积分:1
  • pthread_t created with input from the standard input of the number N of N thread...
    用pthread_t创建由标准输入端输入个数N的N个线程,分别计算各自的结果,再返回给主进程.-pthread_t created with input from the standard input of the number N of N threads, calculate their results and then back to the main process.
    2022-07-03 04:29:20下载
    积分:1
  • 696518资源总数
  • 106208会员总数
  • 21今日下载