manname.1
来自「speech signal process tools」· 1 代码 · 共 151 行
1
151 行
.\" @(#)manname.1 3.1 10/20/87 ESI.TH MAN_NAME 1\-ESPS 10/20/87.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech, Inc..SH NAMEman_name \- normalize names of ESPS manual-page files for use with.I eman.SH SYNOPSIS.B man_name[.B \-r] [.BR filename " . . . ]".SH DESCRIPTION.PPThe arguments.IR filename " . . . ,"if given, should each be of the form.IB name . ext,where.I nameis a manual-page name and.I extconsists of a digit, possibly followed by a letter..I Man_namenormalizes each filename by removing any underscores from.I nameand truncating the result so that.IB name . exthas a maximum of 12 characters.This normalized form is that preferred for use with.IR eman (1\-EPSP)to cope with filename lengthrestrictions on some versions of Unix and to squeeze more significantcharacters into limited space..PPOrdinarily, the modified filenames are written to the standard output,one to a line.But if the.B \-roption is given,.I man_nameassumes that the filenames name files in the current directoryand attempts to rename each such file with the normalized form of its name..PPIf no filename arguments are given on the command line,.I man_namereads filenames from the standard input,separated by whitespace or newlines,and either writes the normalized names to standard output, one to a line,or attempts to rename the named files..SH EXAMPLES.PPThe name of the man page for the functionthat allocates filter-file records is.I allo_filt_rec,and its section number is 3(not followed by.I t,since the page contains no tables).The result of.IPman_name allo_filt_rec.3.PPis.IPallofiltre.3.PPon the standard output.That is the namethat the source file for this man page should have in the ESPS.I mandirectory tree.The user can access the information by giving.IR eman (1\-SPS)an argument of.I allo_filt_recor.I allofiltrecor even.I allofiltre..PPExecuting.IPls dir | man_name > tmpfile.PPwill put a list of the normalized names of all the files in the directory.I dirinto the file .IR tmpfile .Then.IPls dir | diff \- tmpfile.PPwill show whether there are any files in the directory that ought to berenamed..PPThe command.IPman_name -r *.PPwill rename all the files in the current directory; but use caution,and read the Bugs section below before trying this one..SH "ESPS PARAMETERS".PPThis program does not access an ESPS parameter file or the ESPScommon file..SH "ESPS HEADERS".PPThis program is not concerned with ESPS file headers..SH OPTIONS.PPThe following option is supported..TP.B \-rRename files, rather than writing out normalized filenames..SH DIAGNOSTICS.PPThe message.IPman_name: Can't rename.I nameto.I name..PPis given when some normalized name differs from the original name and.IR rename (2)fails. The program then exits immediately..PPThe message.IPman_name: Badly formed input:.I name..PPmeans that a filename does not end with a periodfollowed with a one- or two-character extension.The program exits immediately if.B \-ris in force but continues if merely writing out normalized names..SH "SEE ALSO".PPeman(1\-ESPS), rename(2).SH BUGS.PPWhen renaming, the program does not check whether the normalized fromof a filename is the name of another file or whether two filenameshave the same normalized form. In either case, you lose a file..PPChecking for well-formed names could be stricter than it is..SH AUTHORRodney W. Johnson
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?