Sponsored Content
Full Discussion: Delete files using year
Top Forums Shell Programming and Scripting Delete files using year Post 302909047 by SriniShoo on Monday 14th of July 2014 05:43:54 AM
Old 07-14-2014
Code:
rm $(vdir --time-style="+%Y" | awk '$6 == 2013 {print $NF}')

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

delete compressed files from year 2005

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. UNIX for Dummies Questions & Answers

Move files based on year

Hi All, I have a directory which has crores of files since from 2003. I want to move ony the 2003 files to another directory. Please help (9 Replies)
Discussion started by: IHK
9 Replies

3. Solaris

Number of files - in start of year

Is there any way to find "Number of files" that exists on my solaris parition in the starting of 2009 year ? I know ctime or mtime will not help and unix wouldnt store creation time. Only hope i can see ( and i am not sure if that will help ) is that my system is up from last 2 years without... (5 Replies)
Discussion started by: rajwinder
5 Replies

4. Red Hat

Move files of a certain year to other directory

Hi all, I have a massive amount of recording files in .WAV format stored in a directory, files dating back to 2006. It is a huge amount of files as Linux cannot even do a listing of it all, it states: "argument list too long" What I would like to do is the following: Find all the files of... (6 Replies)
Discussion started by: codenjanod
6 Replies

5. UNIX for Dummies Questions & Answers

Delete files by year

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

6. Shell Programming and Scripting

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 ? (5 Replies)
Discussion started by: samsungsamsung
5 Replies

7. Shell Programming and Scripting

Delete files older than 1 year through FTP

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

8. Shell Programming and Scripting

How to find all files for same month and year?

Hi All, I find all files for same month and year lets say there are following files in directory -rwxr-xr-x 1 user userg 1596 Mar 19 2012 c.txt -rwxr-xr-x 1 user userg 1596 Mar 21 2012 d.txt -rwxr-xr-x 1 user userg 1596 Mar 22 2012 f.txt -rwxr-xr-x 1... (8 Replies)
Discussion started by: Makarand Dodmis
8 Replies

9. Shell Programming and Scripting

Merging two year files

Hi All, I need to merge few files as belowABC_NYFWFX.txt ABC_NYFQTFX.txt ABC_NYFMAFX.txt ABC_NYFAVFX.txt ABC_CYFWFX.txt ABC_CYFQTFX.txt ABC_CYFMAFX.txt ABC_CYFAVFX.txt ABC_CYBWFX.txt ABC_NYFWFX.txt & ABC_CYFWFX.txt should be merged into a single file and name should be... (3 Replies)
Discussion started by: Hypesslearner
3 Replies

10. UNIX for Beginners Questions & Answers

Delete all files created in specific year

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
MP3::Tag::Cue(3pm)					User Contributed Perl Documentation					MP3::Tag::Cue(3pm)

NAME
MP3::Tag::Cue - Module for parsing .cue files. SYNOPSIS
my $db = MP3::Tag::Cue->new($filename, $track); # Name of audio file my $db = MP3::Tag::Cue->new_from($record, $track); # Contents of .cue file ($title, $artist, $album, $year, $comment, $track) = $db->parse(); see MP3::Tag DESCRIPTION
MP3::Tag::Cue is designed to be called from the MP3::Tag module. It parses the content of a .cue file. The .cue file is looked for in the same directory as audio file; one of the following conditions must be satisfied: o The "audio" file is specified is actually a .cue file; o There is exactly one .cue file in the directory of audio file; o There is exactly one .cue file in the directory of audio file with basename which is a beginning of the name of audio file. o There is exactly one .cue file in the directory of audio file with basename which matches (case-insensitive) a beginning of the name of audio file. If no .cue file is found in the directory of audio file, the same process is repeated once one directory uplevel, with the name of the file's directory used instead of the file name. E.g., with the files like this Foo/bar.cue Foo/bar/04.wav audio file Foo/bar/04.wav will be associated with Foo/bar.cue. parse() ($title, $artist, $album, $year, $comment, $track) = $db->parse($what); parse_filename() extracts information about artist, title, track number, album and year from the .cue file. $what is optional; it maybe title, track, artist, album, year, genre or comment. If $what is defined parse() will return only this element. Additionally, $what can take values "artist_collection" (returns the value of artist in the whole-disk-info field "PERFORMER", "songwriter". title() $title = $db->title(); Returns the title, obtained from the 'Tracktitle' entry of the file. artist() $artist = $db->artist(); Returns the artist name, obtained from the 'Performer' or 'Albumperformer' entries (the first which is present) of the file. track() $track = $db->track(); Returns the track number, stored during object creation, or queried from the parent. year() $year = $db->year(); Returns the year, obtained from the 'Year' entry of the file. (Often not present.) album() $album = $db->album(); Returns the album name, obtained from the 'Albumtitle' entry of the file. comment() $comment = $db->comment(); Returns the 'REM COMMENT' entry of the file. (Often not present.) genre() $genre = $db->genre($filename); perl v5.14.2 2009-11-28 MP3::Tag::Cue(3pm)
All times are GMT -4. The time now is 11:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy