Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Script to keep todays files based on Timestamp Post 302954341 by RudiC on Monday 7th of September 2015 06:02:50 AM
Old 09-07-2015
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

want to delete timestamp from todays file

i want to delete the time stamp from the file which have a date of yester day 640878 Nov 6 09:08 fbres.01.20031106:09:08:30 here is what my ls -lt command shows in current directory it want it to be 640878 Nov 6 09:08 fbres.01.20031106 thanks (5 Replies)
Discussion started by: maverick
5 Replies

2. Shell Programming and Scripting

Purge files based on timestamp avl in file name

Dear All, I have the followoing requirement.. REQ-1: Suppose I have the following files XX_20070202000101.zip XX_20080223000101.zip XX_20080226000101.zip XX_20080227000101.zip XX_20080228000101.zip XX_20080229000101.zip Suppose sysdate = 29 Feb 2007 I need to delete all files... (3 Replies)
Discussion started by: sureshg_sampat
3 Replies

3. Shell Programming and Scripting

Shell script help to eliminate files of todays date

Hi I am very new to shell scripting and have written a script (below). However the directory I am searching will contain a file with a .trn extension each day which I want to eliminate. Each day the file extension overnight will change to trx, if this fails I want to know. Basically what I... (2 Replies)
Discussion started by: richM
2 Replies

4. Shell Programming and Scripting

copy files based on creation timestamp

Dear friends.. I have the below listing of files under a directory in unix -rw-r--r-- 1 abc abc 263349631 Jun 1 11:18 CDLD_20110603032055.xml -rw-r--r-- 1 abc abc 267918241 Jun 1 11:21 CDLD_20110603032104.xml -rw-r--r-- 1 abc abc 257672513 Jun 3 10:41... (5 Replies)
Discussion started by: sureshg_sampat
5 Replies

5. UNIX for Dummies Questions & Answers

How to pick only the latest files based on the timestamp?

I have a few log files which get generated on a daily basis..So, I need to pick only the ones which get generated for that particular day. -rw-r--r-- 1 staff 510732676 Apr 7 22:01 test.log040711 -rwxrwxrwx 1 staff 2147482545 Apr 7 21:30 test.log.2 -rwxrwxrwx 1 staff 2147482581 Apr 7 19:26... (43 Replies)
Discussion started by: win4luv
43 Replies

6. 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

7. Shell Programming and Scripting

bash script to create txt files based on timestamp

Hi , please guide me for a bash script that will create a txt files and the name of the txt files will be as of timestamp so that each file name will be different from other and these files will be get created say after every 10 minutes in a folder(/home/p2000/sxs137), please guide me how would... (1 Reply)
Discussion started by: nks342
1 Replies

8. Shell Programming and Scripting

Find and copy files based on todays date and search for a particular string

Hi All, I am new to shell srcipting. Problem : I need to write a script which copy the log files from /prod/logs directory based on todays date like (Jul 17) and place it to /home/hzjnr0 directory and then search the copied logfiles for the string "@ending successfully on Thu Jul 17". If... (2 Replies)
Discussion started by: mail.chiranjit
2 Replies

9. UNIX for Dummies Questions & Answers

Display files based on particular file timestamp

Hi, I have requirement to list out files that are created after particular file. ex. I have below files in my directory. I want to display files created after /dirdat/CG1/cg004440 file. ./dirdat/CG1/cg004438 09/07/14 0:44:05 ./dirdat/CG1/cg004439 09/07/14 6:01:48 ... (3 Replies)
Discussion started by: tmalik79
3 Replies

10. Shell Programming and Scripting

Script to keep todays files based on Timestamp

Hi i need to keep todays files based on timestamp and archive the remaining files ex: Managerial_Country_PRD_20150907.csv Managerial_Country_PRD_20150907.csv Managerial_Country_PRD_20150906.csv Managerial_Country_PRD_20150905.csv (6 Replies)
Discussion started by: ram1228
6 Replies
pubsub(1)						    BSD General Commands Manual 						 pubsub(1)

NAME
pubsub -- Utility for managing RSS/Atom subscriptions via the PubSub framework SYNOPSIS
pubsub [--client bundleID] subcommand [parameters] OPTIONS
The available options are as follows: --client Force tool to act as one specific client ENVIRONMENT
The pubsub tool is a command-line utility for interacting with the PubSub framework. It is intended for troubleshooting, as a simple way to see at a glance all the feed subscriptions that the agent will be periodically fetching, and to delete any left-over subscriptions (for exam- ple, of an application that's been deleted.) If the --client flag is given, the tool will act only on the PubSub client with the given bundle ID. For example, pubsub list will list only the feeds that client is subscribed to. Some subcommands, such as subscribe, require a client to be specified. The following subcommands are supported. Note that some have multi-word names. If no subcommand is given, a short listing of their names will be output. list Lists all feeds (of all clients, or of the specific client if the -client flag is given.) The title, URL and refresh interval of each feed are shown. Note that a feed subscribed by multiple clients will be listed once per client, and that each client may specify a different refresh interval. However, the PubSub agent will only fetch one copy of the feed, at the minimum interval. The interval is listed in parentheses if it is inherited from the client's default refresh interval. The interval is followed by a " * " if the feed will be refreshed even when the client application is not currently running. The interval is followed by a " * " if file enclosures will automatically be downloaded. list clients Lists all registered clients by bundle ID, along with their number of subscriptions. list client bundleID Lists only the feeds subscribed to by the given client. unsubscribe URL Unsubscribes from the feed with the given URL. subscribe URL Subscribes the client (which must be specified using --client ) to the given feed. list URL Lists all entries currently stored for the given feed. dump URL Prints the raw XML of the feed, as it was last fetched from the network. list entry identifier Lists the attributes of an individual entry, given its identifier (a 40-char hex string). dump entry identifier Prints the XML of an entry, given its identifier (a 40-char hex string). refresh URL Fetches the feed from the network immediately, and updates the database if it has changed. listen [timestamp] Installs a PSClient delegate and listens for changes to subscribed feeds and entries, printing messages when they occur. If a time- stamp is given, all changes that have occurred since that time will first be printed. The timestamp is given as a number of seconds since the system "reference date", i.e. the same as the result of -[NSDate timeIntervalSinceReferenceDate]. list downloads Lists all enclosures currently being downloaded. list enclosures Lists all enclosures, and their current download status. FILES
~/Library/PubSub/ Per-user PubSub configuration/data directory EXAMPLES
pubsub list pubsub --client com.example.SurfNews subscribe http://example.com/UninterestingFeed.xml pubsub unsubscribe http://example.com/UninterestingFeed.xml Mac OS X 10.5 February 1, 2007 Mac OS X 10.5
All times are GMT -4. The time now is 10:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy