11-04-2010
Delete all the files and subdirectories for the year 2006
Hi
I have lot of files and subdirectories inside a directory which are created in the years 2006, 2007, 2008, 2009 and 2010.
I want to delete all the files and subdirectories belonging to the year 2006 alone.
How can I do that ?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to delete files that were created/modified in the year 2005 that we compressed and have the .Z extension on them. I tried using the awk utility but the syntax is incorrect. I don't know how to use a wildcard to capture all the compressed files. Here's the code I used
( ls -lR |... (5 Replies)
Discussion started by: igidttam
5 Replies
2. Shell Programming and Scripting
Hi All,
I am new to UNIX. I will be thankful if some one helps me.
I have to write a shell script for one of the requirement.
I have files created from Jan 2006 to March 2008.
My requirement is to write a script in such a way that
1) To find and copy(not Moving) the files created in the... (2 Replies)
Discussion started by: manas6
2 Replies
3. UNIX for Dummies Questions & Answers
can someone provide a command to delete files by year? I have several files created last year 2009.
Im trying to list first ls -lrt | grep '/2009/ {print $10}' by it returns no result.
Pls advise (2 Replies)
Discussion started by: lhareigh890
2 Replies
4. Shell Programming and Scripting
Hi Experts ,
At a particular dir , How to delete subirectories that are more than 1 day old AND have NO files in them.
PS : -empty option is not working at my Sun OS version.
Thanks,
A (6 Replies)
Discussion started by: ajaypatil_am
6 Replies
5. Shell Programming and Scripting
Hi All,
I want to login to a remote server using FTP command and then check for files older than 1 year and delete those files.
Please let me know how can i achieve this using Unix Commands.
Thanks in Advance, (10 Replies)
Discussion started by: HemaV
10 Replies
6. AIX
how do i remove sub directories of a directory and all files which are older than 7 days by a single command in AIX. pls help me.
I am using command as
#find /gpfs1/home/vinod/hpc/ -depth -type d -mtime +7 -exec rm -rf {} \;
so i want to delete all sub directories and all files from the... (1 Reply)
Discussion started by: vinodkmpal
1 Replies
7. Shell Programming and Scripting
#!/bin/bash
#
name=$1
type=$2
number=1
for file in ./**
do
if
then
filenumber=00$number
elif
then
filenumber=0$number
fi
tempname="$name""$filenumber"."$type"
if (4 Replies)
Discussion started by: TheGreatGizmo
4 Replies
8. Shell Programming and Scripting
Hi All,
how can i delete files from my Unix directory on the basis of year, i have files from 2001 to till 2014, but from their, i have to delete only 2013 file.Below is my file name
rwxrwxrwx 1 guopt users 5169 Jul 12 00:30 grt592_20130712003000.SAP
Thanks
Kki (2 Replies)
Discussion started by: kki
2 Replies
9. Shell Programming and Scripting
Hii,
Could someone help me to append string to the starting of all the filenames inside a directory but it should exclude .zip files and subdirectories.
Eg.
file1: test1.log
file2: test2.log
file3 test.zip
After running the script
file1: string_test1.log
file2: string_test2.log
file3:... (4 Replies)
Discussion started by: Ravi Kishore
4 Replies
10. UNIX for Beginners Questions & Answers
I have more than 200K files created in year 2017 under directory having size of 50GB.
I want to all these files in one shot.
Is there any faster option available with find command to delete all these file ? (6 Replies)
Discussion started by: sp23029
6 Replies
MKCFM(1) General Commands Manual MKCFM(1)
NAME
mkcfm - create summaries of font metric files in CID font directories
SYNOPSIS
mkcfm [CID-font-directory-name]
DESCRIPTION
There is usually only one CID font directory on the X font path. It is usually called /usr/X11R6/lib/X11/fonts/CID. If you do not specify
an argument, mkcfm will try to go through the subdirectories of that directory, and create one summary of font metric files for each CID-
Font (character descriptions) file and each CMap (Character Maps) file it finds. The summaries of font metric files are put in the existing
CFM subdirectory. The CFM subdirectories are created when CID-keyed fonts are installed.
If you specify a CID font directory as an argument, mkcfm will try to go through the subdirectories of that directory, and create one sum-
mary of font metric files for each CIDFont file and each CMap file it finds. mkcfm will calculate the summaries of the font metric files
stored in AFM subdirectories of the CID font directory.
Those summaries are needed by the rasterizer of CID-keyed fonts to speed up the response to X font calls. If those files do not exist, CID
rasterizer will have to go through usually large font metric files, and calculate the summaries itself each time the font is called. You
will notice a substantial wait on a call to a large CID-keyed font.
FILES
.afm files Each CID-keyed font file is supposed to have a font metric file (.afm file). mkcfm creates summary files (.cfm files) of
those font metric files. mkcfm should be run whenever a change is made to the files stored in the subdirectories of the CID
font directory. For example, it should be run when new CID fonts are installed.
.cfm files Summaries of font metric (.afm) files created by mkcfm.
SEE ALSO
The rasterizer for CID-keyed fonts in the directory xc/lib/font/Type1.
CID Fonts Version 1.0 Release 1.0 MKCFM(1)