12-17-2009
I would sooner use ls or another program that uses globs/wildcards to make sure the results will be the same.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I want to write a script that deletes all folders and keep the last 10 recent folders.
I know the following:
ls -ltr will sort the folders from old to recent.
ls -ltr | awk '{print $9}' will list the folder names (with a blank line at the beginning)
I want to get the 10th folder from... (3 Replies)
Discussion started by: melanie_pfefer
3 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I have some files on a folder and i want to delete all the files that were created on July.
Thanks,
Kobi. (9 Replies)
Discussion started by: kobibn
9 Replies
3. Shell Programming and Scripting
Hi!
Need your help. How can I delete the cache folder of multiple user home directories via automatically executed shell script on a Mac OS X Server?
Example:
The userdata are stored on a Xsan Volume like this:
/Volumes/Xsan/userdata/mike
/Volumes/Xsan/userdata/peter... (2 Replies)
Discussion started by: nipodrom
2 Replies
4. Shell Programming and Scripting
Hi ,
I need a script which basically deltes all files in folder a which are alreasy present in folder b
say folder a has files abc.txt
pqr .txt
and b has abc.txt
pqr.txt
rmr.txt
then file abc.txt and pqr.txt from a should be deleted (6 Replies)
Discussion started by: viv1
6 Replies
5. Shell Programming and Scripting
Hi I want to transfer all files in a folder to another folder. So the files have a ending of .lop.txt
thanks (4 Replies)
Discussion started by: gisele_l
4 Replies
6. Shell Programming and Scripting
Hi all,
I need to write a script to naviagate into the list of specified folder and delete the files in it.
I have mentioned the list of folders in a external file so it can be reusable.
The issue is am facing now is that, i am not understating on how to navigate into the folder locations... (6 Replies)
Discussion started by: Nithz
6 Replies
7. Shell Programming and Scripting
Hi,
I need to use rsync to delete multiple files(only specified files not all) using --delete option, these files are located in different target folders.
Instead of running rsync command multiple times for each file, can we achieve this with one time execution?
your help is much... (0 Replies)
Discussion started by: MVEERA
0 Replies
8. UNIX for Dummies Questions & Answers
Hi Experts,
i need a little help.
i have different folder that contain files that need to be deleted. but those folder contains huge amoung of same with 3 different extention.
what i used to do is to delete them using the rm commande
rm *.ext *.ext1 *.ext3
what i want to do is to have... (1 Reply)
Discussion started by: yprudent
1 Replies
9. Shell Programming and Scripting
I need help to write shell script to copy files from one server to another server.
Source Directory UAE(inside i have another folder Misc with files inside UAE folder).I have to copy this to another server UAE folder( Files should be copied to UAE folder and Misc files should be copied in target... (3 Replies)
Discussion started by: naresh2389
3 Replies
10. Shell Programming and Scripting
Hi Team,
I am new to shell script and there is a requirement where files should be moved from Subfolder to parent folder.
Eg:
parent folder --> /Interface/data/test/IN
Sub folder -->/Interface/data/test/IN/Invoice20180607233338
Subfolder will be always with timestamp... (6 Replies)
Discussion started by: srivarun15
6 Replies
LEARN ABOUT DEBIAN
html::elementglob
HTML::ElementGlob(3pm) User Contributed Perl Documentation HTML::ElementGlob(3pm)
NAME
HTML::ElementGlob - Perl extension for managing HTML::Element based objects as a single object.
SYNOPSIS
use HTML::ElementGlob;
$element_a = new HTML::Element 'font', color => 'red';
$element_b = new HTML::Element 'font', color => 'blue';
$element_a->push_content('red');
$element_b->push_content('blue');
$p = new HTML::Element 'p';
$p->push_content($element_a, ' and ', $element_b, ' boo hoo hoo');
# Tag type of the glob is not really relevant unless
# you plan on seeing the glob as_HTML()
$eglob = new HTML::ElementGlob 'p';
$eglob->glob_push_content($element_a, $element_b);
# Alter both elements at once
$eglob->attr(size => 5);
# They still belong to their original parent
print $p->as_HTML;
DESCRIPTION
HTML::ElementGlob is a managing object for multiple HTML::Element(3) style elements. The children of the glob element retain their
original parental elements and have no knowledge of the glob that manipulates them. All methods that do not start with 'glob_' will be
passed, sequentially, to all elements contained within the glob element. Methods starting with 'glob_' will operate on the glob itself,
rather than being passed to its foster children.
For example, $eglob->attr(size => 3) will invoke attr(size => 3) on all children contained by $eglob. $eglob->glob_attr(size => 3), on the
other hand, will set the attr attribute on the glob itself.
The tag type passed to HTML::Element::Glob is largely irrrelevant as far as how methods are passed to children. However, if you choose to
invoke $eglob->as_HTML(), you might want to pick a tag that would sensibly contain the globbed children for debugging or display purposes.
The 'glob_*' methods that operate on the glob itself are limited to those available in an HTML::Element(3). All other methods get passed
blindly to the globbed children, which can be enhanced elements with arbitrary methods, such as HTML::ElementSuper(3).
Element globs can contain other element globs. In such cases, the plain methods will cascade down to the leaf children. 'glob_*' methods,
of course, will not be propogated to children globs. You will have to rely on glob_content() to access those glob children and access
their 'glob_*' methods directly.
REQUIRES
HTML::ElementSuper(3)
AUTHOR
Matthew P. Sisk, <sisk@mojotoad.com>
COPYRIGHT
Copyright (c) 1998-2010 Matthew P. Sisk. All rights reserved. All wrongs revenged. This program is free software; you can redistribute it
and/or modify it under the same terms as Perl itself.
SEE ALSO
HTML::Element(3), HTML::ElementSuper, HTML::ElementRaw, HTML::Element::Table(3), perl(1).
perl v5.10.1 2010-06-09 HTML::ElementGlob(3pm)