Sponsored Content
Top Forums Shell Programming and Scripting what i do wrong, find grep rm, help me plz Post 302189992 by djdes22 on Monday 28th of April 2008 11:18:15 AM
Old 04-28-2008
Quote:
Originally Posted by danmero
Why you need grep ? Read man find
Code:
find /path/to/dir/-07/ -type d -name "2006"  -exec rm -rf {} \;

doesnt workSmilie not deleted.

root@des:/media/2008-04-26/des# ls
Deepslauter-Rock_Em_All-(Reissue)-2007-VERiTAS Enjae-Enjae-2006-SMO

root@des:/media/2008-04-26/des# find /media/2008-04-26/des/ -type d -name "2006" -exec rm -rf {} \;

root@des:/media/2008-04-26/des# ls
Deepslauter-Rock_Em_All-(Reissue)-2007-VERiTAS Enjae-Enjae-2006-SMO

Last edited by djdes22; 04-28-2008 at 12:26 PM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

plz Help How should I configure cc compiler output file plz help???

i.e configuration of C compiler :confused: (4 Replies)
Discussion started by: atiato
4 Replies

2. UNIX for Dummies Questions & Answers

find command - Urgent Plz.

Hi, In my current directory, i have the following files: x1.dat x2.dat.gz x3.dat I want to use the find command and display only files which has *.dat and NOT *.gz extension files. Please help me out. Thanks, Kris Kart. (2 Replies)
Discussion started by: Kris_Kart_101
2 Replies

3. UNIX for Dummies Questions & Answers

what is wrong in this awk or grep ....

hi champs, i have a strange problem, let , i have a array1, whose 1st character is ${array1}=h let i want to search test.txt by awk/grep where the 1st character is the ${array1}.... if i am seraching by awk/grep by using variable..it return no rows from test.txt... awk -v find=${array1}... (2 Replies)
Discussion started by: manas_ranjan
2 Replies

4. Shell Programming and Scripting

Shell script to find out 2 last modified files in a folder..PLZ HELP!!!!!!!!!

hi all, I need to find out the last 2 modified files in a folder.There is some way by which,we can check the timestamp and find out..??please help this is urgent. Thanks in Advance Anju (3 Replies)
Discussion started by: anju
3 Replies

5. Linux

Plz Help me to find GNU C++ Runtime Library

Hi, I am working with red hat Linux and i want to install one program but I am getting the error This product requires the GNU C++ Runtime Library (libstdc++-libc6.2-2.so.3) or later. Your system must be upgraded before installation can proceed. So please tell me how can i remove this... (2 Replies)
Discussion started by: smartgupta
2 Replies

6. UNIX for Advanced & Expert Users

what is wrong with this find command

i am trying to find the files which are more than 100MB and it was created 10 days ago. find /lola/loaded -size +102400 -mtime -10 -print | xargs ls -ltr -rw-rw-r-- 1 lola_adm gdrmp 82054170 Jun 23 06:17 /lola/loaded/ILMEMBER20090622.txt -rw-rw-r-- 1 lola_adm gdrmp 652080494 Jun 24... (3 Replies)
Discussion started by: sudhiroracle
3 Replies

7. Shell Programming and Scripting

Grep command showing wrong output in Linux

Hi All I am trying to run a script in linux wherein i have a command like this grep ^prmAttunityUser= djpHewr2XFMAttunitySetup_ae1_tmp djpHewr2XFMAttunitySetup_ae1_tmp is a temporary file in which the user value is stored but this command in the script returns me balnk value whereas it has a... (4 Replies)
Discussion started by: vee_789
4 Replies

8. Shell Programming and Scripting

Need some Help for file filteration and saving the output in other directory using grep....plz ...

Hi all........ Plss do help me.......in a big trouble... :wall::wall::wall: I have 3 directories named as :1. /home/shuchi/source 2./home/shuchi/destination 3./home/shuchi/filter now the problem is /home/shuchi/source has say 2 files with extension .txt as given below : A.txt Code: ... (0 Replies)
Discussion started by: ektubbe
0 Replies

9. Shell Programming and Scripting

what's wrong with my -exec in find

find ./ -name *Kconfig -exec cat {} \; but it won't work with find ./ -name *Kconfig -exec cat {} |grep CONFIG_MTD |grep depend \; how could I handle this (14 Replies)
Discussion started by: yanglei_fage
14 Replies

10. Shell Programming and Scripting

what's wrong with my regex using find

#ls json-* json-lexer.c json-lexer.h json-parser.c json-parser.h json-streamer.c json-streamer.h #find . -regex '^(json-)+.' return nothing (3 Replies)
Discussion started by: yanglei_fage
3 Replies
DateTime::Locale::nb(3pm)				User Contributed Perl Documentation				 DateTime::Locale::nb(3pm)

NAME
DateTime::Locale::nb - DateTime locale package for "nb" SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'nb' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Norwegian Bokmaal. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) mandag tirsdag onsdag torsdag fredag lordag sondag Abbreviated (format) man. tir. ons. tor. fre. lor. son. Narrow (format) M T O T F L S Wide (stand-alone) mandag tirsdag onsdag torsdag fredag lordag sondag Abbreviated (stand-alone) man. tir. ons. tor. fre. lor. son. Narrow (stand-alone) M T O T F L S Months Wide (format) januar februar mars april mai juni juli august september oktober november desember Abbreviated (format) jan. feb. mars apr. mai juni juli aug. sep. okt. nov. des. Narrow (format) J F M A M J J A S O N D Wide (stand-alone) januar februar mars april mai juni juli august september oktober november desember Abbreviated (stand-alone) jan. feb. mars apr. mai juni juli aug. sep. okt. nov. des. Narrow (stand-alone) J F M A M J J A S O N D Quarters Wide (format) 1. kvartal 2. kvartal 3. kvartal 4. kvartal Abbreviated (format) K1 K2 K3 K4 Narrow (format) 1 2 3 4 Wide (stand-alone) 1. kvartal 2. kvartal 3. kvartal 4. kvartal Abbreviated (stand-alone) K1 K2 K3 K4 Narrow (stand-alone) 1 2 3 4 Eras Wide f.Kr. e.Kr. Abbreviated f.Kr. e.Kr. Narrow f.Kr. e.Kr. Date Formats Full 2008-02-05T18:30:30 = tirsdag 5. februar 2008 1995-12-22T09:05:02 = fredag 22. desember 1995 -0010-09-15T04:44:23 = lordag 15. september -10 Long 2008-02-05T18:30:30 = 5. februar 2008 1995-12-22T09:05:02 = 22. desember 1995 -0010-09-15T04:44:23 = 15. september -10 Medium 2008-02-05T18:30:30 = 5. feb. 2008 1995-12-22T09:05:02 = 22. des. 1995 -0010-09-15T04:44:23 = 15. sep. -10 Short 2008-02-05T18:30:30 = 05.02.08 1995-12-22T09:05:02 = 22.12.95 -0010-09-15T04:44:23 = 15.09.-10 Default 2008-02-05T18:30:30 = 5. feb. 2008 1995-12-22T09:05:02 = 22. des. 1995 -0010-09-15T04:44:23 = 15. sep. -10 Time Formats Full 2008-02-05T18:30:30 = kl. 18.30.30 UTC 1995-12-22T09:05:02 = kl. 09.05.02 UTC -0010-09-15T04:44:23 = kl. 04.44.23 UTC Long 2008-02-05T18:30:30 = 18.30.30 UTC 1995-12-22T09:05:02 = 09.05.02 UTC -0010-09-15T04:44:23 = 04.44.23 UTC Medium 2008-02-05T18:30:30 = 18.30.30 1995-12-22T09:05:02 = 09.05.02 -0010-09-15T04:44:23 = 04.44.23 Short 2008-02-05T18:30:30 = 18.30 1995-12-22T09:05:02 = 09.05 -0010-09-15T04:44:23 = 04.44 Default 2008-02-05T18:30:30 = 18.30.30 1995-12-22T09:05:02 = 09.05.02 -0010-09-15T04:44:23 = 04.44.23 Datetime Formats Full 2008-02-05T18:30:30 = tirsdag 5. februar 2008 kl. 18.30.30 UTC 1995-12-22T09:05:02 = fredag 22. desember 1995 kl. 09.05.02 UTC -0010-09-15T04:44:23 = lordag 15. september -10 kl. 04.44.23 UTC Long 2008-02-05T18:30:30 = 5. februar 2008 18.30.30 UTC 1995-12-22T09:05:02 = 22. desember 1995 09.05.02 UTC -0010-09-15T04:44:23 = 15. september -10 04.44.23 UTC Medium 2008-02-05T18:30:30 = 5. feb. 2008 18.30.30 1995-12-22T09:05:02 = 22. des. 1995 09.05.02 -0010-09-15T04:44:23 = 15. sep. -10 04.44.23 Short 2008-02-05T18:30:30 = 05.02.08 18.30 1995-12-22T09:05:02 = 22.12.95 09.05 -0010-09-15T04:44:23 = 15.09.-10 04.44 Default 2008-02-05T18:30:30 = 5. feb. 2008 18.30.30 1995-12-22T09:05:02 = 22. des. 1995 09.05.02 -0010-09-15T04:44:23 = 15. sep. -10 04.44.23 Available Formats d (d.) 2008-02-05T18:30:30 = 5. 1995-12-22T09:05:02 = 22. -0010-09-15T04:44:23 = 15. EEEd (EEE d) 2008-02-05T18:30:30 = tir. 5 1995-12-22T09:05:02 = fre. 22 -0010-09-15T04:44:23 = lor. 15 HHmmss (HH.mm.ss) 2008-02-05T18:30:30 = 18.30.30 1995-12-22T09:05:02 = 09.05.02 -0010-09-15T04:44:23 = 04.44.23 Hm (HH.mm) 2008-02-05T18:30:30 = 18.30 1995-12-22T09:05:02 = 09.05 -0010-09-15T04:44:23 = 04.44 hm (h.mm a) 2008-02-05T18:30:30 = 6.30 PM 1995-12-22T09:05:02 = 9.05 AM -0010-09-15T04:44:23 = 4.44 AM Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h.mm.ss a) 2008-02-05T18:30:30 = 6.30.30 PM 1995-12-22T09:05:02 = 9.05.02 AM -0010-09-15T04:44:23 = 4.44.23 AM M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (d.M.) 2008-02-05T18:30:30 = 5.2. 1995-12-22T09:05:02 = 22.12. -0010-09-15T04:44:23 = 15.9. MEd (E d.M) 2008-02-05T18:30:30 = tir. 5.2 1995-12-22T09:05:02 = fre. 22.12 -0010-09-15T04:44:23 = lor. 15.9 MMdd (dd.MM) 2008-02-05T18:30:30 = 05.02 1995-12-22T09:05:02 = 22.12 -0010-09-15T04:44:23 = 15.09 MMM (LLL) 2008-02-05T18:30:30 = feb. 1995-12-22T09:05:02 = des. -0010-09-15T04:44:23 = sep. MMMd (d. MMM) 2008-02-05T18:30:30 = 5. feb. 1995-12-22T09:05:02 = 22. des. -0010-09-15T04:44:23 = 15. sep. MMMEd (E d. MMM) 2008-02-05T18:30:30 = tir. 5. feb. 1995-12-22T09:05:02 = fre. 22. des. -0010-09-15T04:44:23 = lor. 15. sep. MMMMd (d. MMMM) 2008-02-05T18:30:30 = 5. februar 1995-12-22T09:05:02 = 22. desember -0010-09-15T04:44:23 = 15. september MMMMEd (E d. MMMM) 2008-02-05T18:30:30 = tir. 5. februar 1995-12-22T09:05:02 = fre. 22. desember -0010-09-15T04:44:23 = lor. 15. september ms (mm.ss) 2008-02-05T18:30:30 = 30.30 1995-12-22T09:05:02 = 05.02 -0010-09-15T04:44:23 = 44.23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (M yyyy) 2008-02-05T18:30:30 = 2 2008 1995-12-22T09:05:02 = 12 1995 -0010-09-15T04:44:23 = 9 -010 yMEd (EEE d.M.yyyy) 2008-02-05T18:30:30 = tir. 5.2.2008 1995-12-22T09:05:02 = fre. 22.12.1995 -0010-09-15T04:44:23 = lor. 15.9.-010 yMMM (MMM y) 2008-02-05T18:30:30 = feb. 2008 1995-12-22T09:05:02 = des. 1995 -0010-09-15T04:44:23 = sep. -10 yMMMEd (EEE d. MMM y) 2008-02-05T18:30:30 = tir. 5. feb. 2008 1995-12-22T09:05:02 = fre. 22. des. 1995 -0010-09-15T04:44:23 = lor. 15. sep. -10 yMMMM (MMMM y) 2008-02-05T18:30:30 = februar 2008 1995-12-22T09:05:02 = desember 1995 -0010-09-15T04:44:23 = september -10 yQ (Q yyyy) 2008-02-05T18:30:30 = 1 2008 1995-12-22T09:05:02 = 4 1995 -0010-09-15T04:44:23 = 3 -010 yQQQ (QQQ y) 2008-02-05T18:30:30 = K1 2008 1995-12-22T09:05:02 = K4 1995 -0010-09-15T04:44:23 = K3 -10 yyMM (MM.yy) 2008-02-05T18:30:30 = 02.08 1995-12-22T09:05:02 = 12.95 -0010-09-15T04:44:23 = 09.-10 yyMMM (MMM yy) 2008-02-05T18:30:30 = feb. 08 1995-12-22T09:05:02 = des. 95 -0010-09-15T04:44:23 = sep. -10 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 yyQQQQ (QQQQ yy) 2008-02-05T18:30:30 = 1. kvartal 08 1995-12-22T09:05:02 = 4. kvartal 95 -0010-09-15T04:44:23 = 3. kvartal -10 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = februar 2008 1995-12-22T09:05:02 = desember 1995 -0010-09-15T04:44:23 = september -10 Miscellaneous Prefers 24 hour time? Yes Local first day of the week mandag SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.10.1 2010-03-19 DateTime::Locale::nb(3pm)
All times are GMT -4. The time now is 04:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy