Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to pick only the latest files based on the timestamp? Post 302527517 by DGPickett on Friday 3rd of June 2011 12:48:54 PM
Old 06-03-2011
Tell date no zero pad, by adding a '-' after the '%'.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Pick the latest set of files

I have task in which I need to pickup a set of files from a directory depending on the following criteria: Every month 6 files are expected to arrive at /test. The files come with date timestamp and the latest file set for the month needs to be used Suppose this is the set of files that present... (5 Replies)
Discussion started by: w020637
5 Replies

2. UNIX for Dummies Questions & Answers

pick the very latest directory

Hi, I have some list of directories in the form datemonthyear e.g. 02082009, 03082009 and 04082009 etc. I need to pick the latest directory from the current working directory. Outcome: 05082009 This is the output am expecting. Thanks (6 Replies)
Discussion started by: venkatesht
6 Replies

3. Shell Programming and Scripting

Find the latest directory and loop through the files and pick the error messages

Hi, I am new to unix and shell scripting,can anybody help me in sctipting a requirement. my requirement is to get the latest directory the name of the directory will be like CSB.monthdate_time stamp like CSB.Sep29_11:16 and CSB.Oct01_16:21. i need to pick the latest directory. in the... (15 Replies)
Discussion started by: sudhir_83k
15 Replies

4. UNIX for Dummies Questions & Answers

Need command to pick the latest file

Hi In my script i am trying to access mainframe server using FTP, in the server i have filee with the timestamp.I need to get the file with the latest timestamp among them . The server has the below files / ftp> cd /outbox 250 CWD command successful ftp> ls 200 PORT command successful... (4 Replies)
Discussion started by: laxmi131
4 Replies

5. Shell Programming and Scripting

sort the files based on timestamp and execute sorted files in order

Hi I have a requirement like below I need to sort the files based on the timestamp in the file name and run them in sorted order and then archive all the files which are one day old to temp directory My files looks like this PGABOLTXML1D_201108121235.xml... (1 Reply)
Discussion started by: saidutta123
1 Replies

6. Shell Programming and Scripting

Urgent ...pls Sorting files based on timestamp and picking the latest file

Hi Friends, Newbie to shell scripting. Currently i have used the below to sort data based on filenames and datestamp $ printf '%s\n' *.dat* | sort -t. -k3,4 filename_1.dat.20120430.Z filename_2.dat.20120430.Z filename_3.dat.20120430.Z filename_1.dat.20120501.Z filename_2.dat.20120501.Z... (1 Reply)
Discussion started by: robertbrown624
1 Replies

7. UNIX for Dummies Questions & Answers

Sorting files based on timestamp and picking the latest file

Hi Friends, Newbie to shell scripting Currently i have used the below to sort data based on filenames and datestamp $ printf '%s\n' *.dat* | sort -t. -k3,4 filename_1.dat.20120430.Z filename_2.dat.20120430.Z filename_3.dat.20120430.Z filename_1.dat.20120501.Z filename_2.dat.20120501.Z... (12 Replies)
Discussion started by: robertbrown624
12 Replies

8. Shell Programming and Scripting

I have this list of files . Now I will have to pick the latest file based on some condition

3679 Jul 21 23:59 belk_rpo_error_**po9324892**_07212014.log 0 Jul 22 23:59 belk_rpo_error_**po9324892**_07222014.log 3679 Jul 23 23:59 belk_rpo_error_**po9324892**_07232014.log 22 Jul 22 06:30 belk_rpo_error_**po9324267**_07012014.log 0 Jul 20 05:50... (5 Replies)
Discussion started by: LoneRanger
5 Replies

9. Shell Programming and Scripting

Picking the latest file based on a timestamp for a Dynamic file name

Hi , I did the initial search but could not find what I was expecting for. 15606Always_9999999997_20160418.xml 15606Always_9999999998_20160418.xml 15606Always_9999999999_20160418.xml 9819Always_99999999900_20160418.xml 9819Always_99999999911_20160418.xmlAbove is the list of files I... (4 Replies)
Discussion started by: chillblue
4 Replies

10. UNIX for Beginners Questions & Answers

Need help with UNIX command to get the latest file from list of files with timestamp

Hi All, I have list of files like below with name abcxyz.timestamp. I need a unix command to pick the latest file from the list of below files. Here in this case the lates file is abcxyz.20190304103200. I have used this unix command "ls abcxyz*|tail -1" but i heard that it is not the appropriate... (2 Replies)
Discussion started by: rakeshp
2 Replies
GStreamer::Pad(3pm)					User Contributed Perl Documentation				       GStreamer::Pad(3pm)

NAME
GStreamer::Pad - Object contained by elements that allows links to other elements HIERARCHY
Glib::Object +----GStreamer::Object +----GStreamer::Pad METHODS
pad or undef = GStreamer::Pad->new ($name, $direction) o $name (string) o $direction (GStreamer::PadDirection) pad or undef = GStreamer::Pad->new_from_template ($templ, $name) o $templ (GStreamer::PadTemplate) o $name (string) boolean = $pad->accept_caps ($caps) o $caps (GStreamer::Caps) boolean = $pad->activate_pull ($active) o $active (boolean) boolean = $pad->activate_push ($active) o $active (boolean) $pad->set_active ($active) o $active (boolean) caps or undef = $srcpad->get_allowed_caps boolean = $pad->set_blocked ($blocked) o $blocked (boolean) caps = $pad->get_caps boolean = $pad->set_caps ($caps) o $caps (GStreamer::Caps or undef) flowreturn = $pad->chain ($buffer) o $buffer (GstBuffer) boolean = $pad->check_pull_range paddirection = $pad->get_direction boolean = $pad->event_default ($event) o $event (GstEvent) $pad->fixate_caps ($caps) o $caps (GStreamer::Caps) list = $pad->get_internal_links_default list = $pad->get_internal_links boolean = $pad->is_active boolean = $pad->is_blocked boolean = $pad->is_blocking Since: gst 0.10 boolean = $pad->is_linked iterator = $pad->iterate_internal_links Since: gst 0.10 iterator = $pad->iterate_internal_links_default Since: gst 0.10 boolean = $srcpad->link ($sinkpad) o $sinkpad (GStreamer::Pad) caps or undef = $pad->get_negotiated_caps caps = $pad->get_pad_template_caps padtemplate = $pad->get_pad_template boolean = $pad->pause_task boolean = $pad->peer_accept_caps ($caps) o $caps (GStreamer::Caps) pad = $pad->get_peer caps = $pad->peer_get_caps boolean = $pad->peer_query ($query) o $query (GstQuery) Since: gst 0.10 list = $pad->pull_range ($offset, $size) o $offset (64 bit unsigned) o $size (integer) flowreturn = $pad->push ($buffer) o $buffer (GstBuffer) boolean = $pad->push_event ($event) o $event (GstEvent) boolean = $pad->query ($query) o $query (GstQuery) boolean = $pad->query_default ($query) o $query (GstQuery) list = $pad->get_query_types_default list = $pad->get_query_types list = $pad->get_range ($offset, $size) o $offset (64 bit unsigned) o $size (integer) boolean = $pad->send_event ($event) o $event (GstEvent) boolean = $pad->start_task ($func, $data=undef) o $func (scalar) o $data (scalar) boolean = $pad->stop_task $srcpad->unlink ($sinkpad) o $sinkpad (GStreamer::Pad) PROPERTIES
'caps' (GStreamer::Caps : default undef : readable / private) The capabilities of the pad 'direction' (GStreamer::PadDirection : default "unknown" : readable / writable / construct-only / private) The direction of the pad 'template' (GStreamer::PadTemplate : default undef : readable / writable / private) The GstPadTemplate of this pad SIGNALS
linked (GStreamer::Pad, GStreamer::Pad) unlinked (GStreamer::Pad, GStreamer::Pad) request-link (GStreamer::Pad) boolean = have-data (GStreamer::Pad, GStreamer::MiniObject) ENUMS AND FLAGS
enum GStreamer::FlowReturn o 'custom-success-2' / 'GST_FLOW_CUSTOM_SUCCESS_2' o 'custom-success-1' / 'GST_FLOW_CUSTOM_SUCCESS_1' o 'custom-success' / 'GST_FLOW_CUSTOM_SUCCESS' o 'resend' / 'GST_FLOW_RESEND' o 'ok' / 'GST_FLOW_OK' o 'not-linked' / 'GST_FLOW_NOT_LINKED' o 'wrong-state' / 'GST_FLOW_WRONG_STATE' o 'unexpected' / 'GST_FLOW_UNEXPECTED' o 'not-negotiated' / 'GST_FLOW_NOT_NEGOTIATED' o 'error' / 'GST_FLOW_ERROR' o 'not-supported' / 'GST_FLOW_NOT_SUPPORTED' o 'custom-error' / 'GST_FLOW_CUSTOM_ERROR' o 'custom-error-1' / 'GST_FLOW_CUSTOM_ERROR_1' o 'custom-error-2' / 'GST_FLOW_CUSTOM_ERROR_2' enum GStreamer::PadDirection o 'unknown' / 'GST_PAD_UNKNOWN' o 'src' / 'GST_PAD_SRC' o 'sink' / 'GST_PAD_SINK' SEE ALSO
GStreamer, Glib::Object, GStreamer::Object COPYRIGHT
Copyright (C) 2005-2011 by the gtk2-perl team. This software is licensed under the LGPL. See GStreamer for a full notice. perl v5.14.2 2012-03-01 GStreamer::Pad(3pm)
All times are GMT -4. The time now is 07:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy