Sponsored Content
Top Forums Shell Programming and Scripting Find directories only and delete them created 3 days before Post 302439877 by jmathew99 on Saturday 24th of July 2010 12:02:42 PM
Old 07-24-2010
Delete all files in a directory which starts with "SWT*"

Hi,

Can you please let me know the code after correction.
 

10 More Discussions You Might Find Interesting

1. HP-UX

Command for delete the directories which are older than 7 days

Hi, My requirement is need to delete the directories (Including files also) which are older than 7 days. So I used below command in one script (script takes 2 input parameters) #$1 - Path of the directory from where we have to delete the directories.# #$2 - Number of days older... (1 Reply)
Discussion started by: sridhar sivakot
1 Replies

2. Shell Programming and Scripting

Delete files from sub-directories over 7 days

Can any one please help me in deleting all the Files over 7 days from sub-directories A, B, C... Top-Directory Sub-Directory-A File-1 File-2 ..... File-n Sub-Directory-B File-1 File-2 ..... File-n Sub-Directory-C File-1 ... (1 Reply)
Discussion started by: sureshcisco
1 Replies

3. Red Hat

Find files older than 30 days in directories and delete them

Hi, I have dummies questions: My script here can find the files in any directories older than 30 days then it will delete the files but not the directories. I would like to also be able to delete the directories that hold old files more than 30 days not just the files itself. find . -type f... (2 Replies)
Discussion started by: lamoul
2 Replies

4. Shell Programming and Scripting

Using cron to delete directories 90 days old

We use Solaris 10 x86 and I want to use a cron job to remove directories +90 old. Currently I have the command below but it only cleans the files and keeps the directory. What am I doing wrong? /opt/tesk/batch/kit/archive/* -mtime +90 -exec rm -r {} \: Thank you (3 Replies)
Discussion started by: oh-daa
3 Replies

5. Shell Programming and Scripting

Find the directory modified/created before 4 days

Hi, I have an application which creates some directories while running. I want to delete these directories which are 4 days older. i tried find . type d -mtime +1 -print And it is working fine.. but find . type d -mtime +4 -print is not giving any results which are 4 days... (6 Replies)
Discussion started by: Tuxidow
6 Replies

6. UNIX for Dummies Questions & Answers

How to find files created some days before?

HI, I have 2 questions. 1> Is there any code to see files that created some day or some time before in a directory??? 2> how or where i will find the last exit status of a process?? thanks (6 Replies)
Discussion started by: jyotidas
6 Replies

7. Shell Programming and Scripting

Find unix file created how many days ago?

i want to find unix file created how many days ago? (4 Replies)
Discussion started by: utoptas
4 Replies

8. Shell Programming and Scripting

what is the find to command to find the files created last 30 days

what is the find to command to find the files created last 30 days (5 Replies)
Discussion started by: rajkumar_g
5 Replies

9. Shell Programming and Scripting

Find directories that are not used for 500 days

How to list the directories that are not acessed for more than 500 days? i used find in the following way find . -type d -atime +500 -exec du -sh {} \; but it is listing all the sub direcories of the parent directories which satisfy above condiion.I would like to get just name of the... (1 Reply)
Discussion started by: sajuatl
1 Replies

10. Shell Programming and Scripting

Find the sum of files created 5 days before

Hi, I want to find the sum of all the files created 5 days ago and store it in a variable. (os is HP-UX) can this be extracted from ls -l Is there any other way of getting the sum of all the files created (4 Replies)
Discussion started by: bang_dba
4 Replies
AFMTODIT(1)						      General Commands Manual						       AFMTODIT(1)

NAME
afmtodit - create font files for use with groff -Tps SYNOPSIS
afmtodit [ -nsv ] [ -ddesc_file ] [ -eenc_file ] [ -in ] [ -an ] afm_file map_file font DESCRIPTION
afmtodit creates a font file for use with groff and grops. afmtodit is written in perl; you must have perl version 3 or newer installed in order to run afmtodit. afm_file is the AFM (Adobe Font Metric) file for the font. map_file is a file that says which groff character names map onto each PostScript character name; this file should contain a sequence of lines of the form ps_char groff_char where ps_char is the PostScript name of the character and groff_char is the groff name of the character (as used in the groff font file). The same ps_char can occur multiple times in the file; each groff_char must occur at most once. Lines starting with # and blank lines are ignored. font is the groff name of the font. If a PostScript character is in the encoding to be used for the font but is not mentioned in map_file then afmtodit will put it in the groff font file as an unnamed character, which can be accessed by the N escape sequence in troff. The groff font file will be output to a file called font. If there is a downloadable font file for the font, it may be listed in the file /usr/share/groff/1.18.1/font/devps/download; see grops(1). If the -i option is used, afmtodit will automatically generate an italic correction, a left italic correction and a subscript correction for each character (the significance of these parameters is explained in groff_font(5)); these parameters may be specified for individual characters by adding to the afm_file lines of the form: italicCorrection ps_char n leftItalicCorrection ps_char n subscriptCorrection ps_char n where ps_char is the PostScript name of the character, and n is the desired value of the corresponding parameter in thousandths of an em. These parameters are normally needed only for italic (or oblique) fonts. OPTIONS
-v Print version. -n Don't output a ligatures command for this font. Use this with constant-width fonts. -s The font is special. The effect of this option is to add the special command to the font file. -ddesc_file The device description file is desc_file rather than the default DESC. -eenc_file The PostScript font should be reencoded to use the encoding described in enc_file. The format of enc_file is described in grops(1). -an Use n as the slant parameter in the font file; this is used by groff in the positioning of accents. By default afmtodit uses the negative of the ItalicAngle specified in the afm file; with true italic fonts it is sometimes desirable to use a slant that is less than this. If you find that characters from an italic font have accents placed too far to the right over them, then use the -a option to give the font a smaller slant. -in Generate an italic correction for each character so that the character's width plus the character's italic correction is equal to n thousandths of an em plus the amount by which the right edge of the character's bounding is to the right of the character's origin. If this would result in a negative italic correction, use a zero italic correction instead. Also generate a subscript correction equal to the product of the tangent of the slant of the font and four fifths of the x-height of the font. If this would result in a subscript correction greater than the italic correction, use a subscript correction equal to the italic correction instead. Also generate a left italic correction for each character equal to n thousandths of an em plus the amount by which the left edge of the character's bounding box is to the left of the character's origin. The left italic correction may be negative. This option is normally needed only with italic (or oblique) fonts. The font files distributed with groff were created using an option of -i50 for italic fonts. FILES
/usr/share/groff/1.18.1/font/devps/DESC Device description file. /usr/share/groff/1.18.1/font/devps/F Font description file for font F. /usr/share/groff/1.18.1/font/devps/download List of downloadable fonts. /usr/share/groff/1.18.1/font/devps/text.enc Encoding used for text fonts. /usr/share/groff/1.18.1/font/devps/generate/textmap Standard mapping. SEE ALSO
groff(1), grops(1), groff_font(5), perl(1) Groff Version 1.18.1 02 March 2002 AFMTODIT(1)
All times are GMT -4. The time now is 08:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy