03-01-2011
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Would appreciate if someone could help me with the following requirement.
Say I have a directory where a file called abc_$timestamp.txt is created couple of times in a day.
So this directory would have files like
abc_2007-03-28-4-5-7.txt
abc_2007-03-28-3-5-7.txt... (4 Replies)
Discussion started by: hyennah
4 Replies
2. Shell Programming and Scripting
Is there a way to use find command to get the latest file and cp it into a certain dir at the same try.
example find the latest file and cp to a diff dir. (5 Replies)
Discussion started by: shehzad_m
5 Replies
3. AIX
Is there an HMC command to find the attached managed systems firmware level?? (2 Replies)
Discussion started by: balaji_prk
2 Replies
4. Shell Programming and Scripting
Hi,
I want to find out the files that are created the recent, how can I do it?
find . -type d
( i dont know what option to use to find the latest, it can be 1 day old or 10 days, but want to pick the latest one only)
Thanks, (5 Replies)
Discussion started by: rudoraj
5 Replies
5. Shell Programming and Scripting
Hi All
I am writing a script which will select the latest logs (which are generated every night via a script) among old one and new. Script generates set of 3 logs each time it runs. Example :
log-WedJun082011_bkt1.log
log-WedJun082011_bkt2.log
log-WedJun082011_bkt3.log
I have... (1 Reply)
Discussion started by: ratneshnagori
1 Replies
6. Solaris
I am having a Sun-Fire-T2000 server which is having Solaris OS running on it.
I am not able to find an exact Firmware version. Please suggest something.
sc> showhost
Host flash versions:
OBP 4.30.4 2009/08/19 07:24
Hypervisor 1.7.3.a 2009/10/29 15:50
POST 4.30.4 2009/08/19 07:47... (3 Replies)
Discussion started by: zigi_p5
3 Replies
7. AIX
Dears i have a power7 P770 working in AIX 5.3 TL 11 with frimware AM730_066
is the AM730_066 frimware the latest one or not ? (6 Replies)
Discussion started by: thecobra151
6 Replies
8. UNIX for Dummies Questions & Answers
Hi All,
I need your help in finding the latest files in remote sftp and get those files to local server and process them. Please let me know
I appreciate your valuable inputs.
Thanks
raj (7 Replies)
Discussion started by: rajeevm
7 Replies
9. Shell Programming and Scripting
HI
I have folder in home dir.
/home/kpp/07222013
/home/kpp/07212013
/home/kpp/07202013
Output :--
/home/kpp/07222013
Just find latest date (5 Replies)
Discussion started by: pareshkp
5 Replies
10. Shell Programming and Scripting
I have tried the following code and with that i couldnt achieve what i want.
#!/usr/bin/bash
find ./ -type f \( -iname "*.xml" \) | sort -n > fileList
sed -i '/\.\/fileList/d' fileList
NAMEOFTHISFILE=$(echo $0|sed -e 's/\/()$*.^|/\\&/g')
sed -i "/$NAMEOFTHISFILE/d"... (2 Replies)
Discussion started by: gold2k8
2 Replies
LEARN ABOUT CENTOS
uri::url
URI::URL(3) User Contributed Perl Documentation URI::URL(3)
NAME
URI::URL - Uniform Resource Locators
SYNOPSIS
$u1 = URI::URL->new($str, $base);
$u2 = $u1->abs;
DESCRIPTION
This module is provided for backwards compatibility with modules that depend on the interface provided by the "URI::URL" class that used to
be distributed with the libwww-perl library.
The following differences exist compared to the "URI" class interface:
o The URI::URL module exports the url() function as an alternate constructor interface.
o The constructor takes an optional $base argument. The "URI::URL" class is a subclass of "URI::WithBase".
o The URI::URL->newlocal class method is the same as URI::file->new_abs.
o URI::URL::strict(1)
o $url->print_on method
o $url->crack method
o $url->full_path: same as ($uri->abs_path || "/")
o $url->netloc: same as $uri->authority
o $url->epath, $url->equery: same as $uri->path, $uri->query
o $url->path and $url->query pass unescaped strings.
o $url->path_components: same as $uri->path_segments (if you don't consider path segment parameters)
o $url->params and $url->eparams methods
o $url->base method. See URI::WithBase.
o $url->abs and $url->rel have an optional $base argument. See URI::WithBase.
o $url->frag: same as $uri->fragment
o $url->keywords: same as $uri->query_keywords
o $url->localpath and friends map to $uri->file.
o $url->address and $url->encoded822addr: same as $uri->to for mailto URI
o $url->groupart method for news URI
o $url->article: same as $uri->message
SEE ALSO
URI, URI::WithBase
COPYRIGHT
Copyright 1998-2000 Gisle Aas.
perl v5.16.3 2012-02-11 URI::URL(3)