Sponsored Content
Top Forums Shell Programming and Scripting date-extraction from a file in KSH Post 302071379 by JunkYardWars on Wednesday 19th of April 2006 02:58:12 AM
Old 04-19-2006
well show what u have done..so far.......may be we can help , once u get started with it
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

help on file extraction

Hello, Im trying to extract a portion of a big file. Using unique pattern /occurrence , (ex. loginname1,logoff and loginname2,logoff ), I like to print the lines that contain the patterns and the lines between them. Also, create a file for every login occurrence. Thanks for everyone's... (1 Reply)
Discussion started by: apalex
1 Replies

2. Shell Programming and Scripting

Report file extraction based on Date range

Hi all, Iam writing a script, which will extract all the files from Start_Date to End_Date. Files are date stamped as YYYYMMDD. For ex: Start_Date='20051001' End_Date='20060331' extract files such as........ ramp_20050810.rpt ramp_20050915.rpt ramp_20051001.rpt ramp_20051010.rpt... (2 Replies)
Discussion started by: ganapati
2 Replies

3. Shell Programming and Scripting

want to get previous date from date command in ksh

I want to get previous date from date command. I am using ksh shell. Exmp: today is 2008.09.04 I want the result : 2008.09.03 Please help. Thanks in advance. (4 Replies)
Discussion started by: rinku
4 Replies

4. Shell Programming and Scripting

Date and time range extraction via Awk or analysis script?

Hello does anyone know of an awk that will extract log file entries between a specific date and time range, eg: awk '/15\/Dec\/2010:16:10:00/, /15\/Dec\/2010:16:15:00/' access_log but one that works? Or a free command line log file analysis tool/script? I'd like to be able to view... (2 Replies)
Discussion started by: competitions
2 Replies

5. Shell Programming and Scripting

How to Get 60 days Old date from current date in KSH script

Hi i am writing a cron job. so for it i need the 60 days old date form current date in variable. Like today date is 27 jan 2011 then output value will be stote in variable in formet Nov 27. i am using EST date, and tried lot of solution and see lot of post but it did not helpful for me. so... (3 Replies)
Discussion started by: Himanshu_soni
3 Replies

6. Shell Programming and Scripting

File Extraction

Hi, I have three files as below: AA.DAT20110505063903.Z AA.DAT20110405062903.Z AA.DAT20110305061903.Z All the above files are appended with Date and timestamp in compressed format. I need to extract AA.DAT20110505063903.Z(which is the latest file) from one server and uncompress it... (2 Replies)
Discussion started by: pyaranoid
2 Replies

7. Shell Programming and Scripting

ksh compare dates INSIDE a file (ie date A is > date B)

In KSH, I am pasting 2 almost identical files together and each one has a date and time on each line. I need to determine if the first instance of the date/time is greater than the 2nd instance of the date/time. If the first instance is greater, I just need to echo that line. I thought I would... (4 Replies)
Discussion started by: right_coaster
4 Replies

8. UNIX for Dummies Questions & Answers

Unable to convert date into no. using date -d +%s syntax in ksh shell

hi friends, I m trying to write a script which compares to dates. for this i am converting dates into no using synatx as below v2=`date | awk '{print $2,$3,$4}'` v3=`date +%s -d "$v2"` this syntax is working in bash shell ,but fails in ksh shell. please suggest on this. (12 Replies)
Discussion started by: Jcpratap
12 Replies

9. Shell Programming and Scripting

FILE_ID extraction from file name and save it in CSV file after looping through each folders

FILE_ID extraction from file name and save it in CSV file after looping through each folders My files are located in UNIX Server, i want to extract file_id and file_name from each file .and save it in a CSV file. How do I do that? I have folders in unix environment, directory structure is... (15 Replies)
Discussion started by: princetd001
15 Replies

10. UNIX for Dummies Questions & Answers

Print start date to end date, given $1 & $2 in ksh

Dear all, I have an user passing 2 parameter 31/03/2015 and 02/04/2015 to a ksh script. How to print the start date to end date. Expected output is : 31/03/2015 01/04/2015 02/04/2015 Note : 1. Im using aix and ksh 2. I have tried to convert the given input into a date, didnt... (0 Replies)
Discussion started by: mr.rajaravi
0 Replies
cdsclient(1m)															     cdsclient(1m)

NAME
cdsclient - A dcecp object that represents a Cell Directory Service client SYNOPSIS
cdsclient disable client_name cdsclient help [operation | -verbose] cdsclient operations cdsclient show client_name DESCRIPTION
The cdsclient object allows some low-level control over a CDS client in the local cell. Use it to disable a running client by shutting it down gracefully and to display a limited set of the attribute and counter information that is currently known to the client. ARGUMENTS
The name of one CDS client running somewhere in the local cell. Specify the client name using one of the formats: /.../cell_name/hosts/host_name/cds-clerk /.:/hosts/host_name/cds-clerk The name of the cdsclient operation for which to display help information. ATTRIBUTES
The number of authentication failures encountered by the client since it started. The number of times the client bypassed the cache when looking for information. The number of times the client used the cache when looking for information. The date-time stamp representing when the current client started. The number of non-read, non-write operations processed by the client since it started. The number of protocol errors encountered by the client since it started. The number of read operations processed by the client since it started. The number of write operations processed by the client since it started. OPERATIONS
cdsclient disable Disables the specified CDS client. The syntax is as follows: cdsclient disable client_name The specified client must be running somewhere in the local cell, and you must have the privileges to access that machine. This operation returns an empty string on success. Privileges Required You must have d (delete), w (write), and c (create) permissions on the namespace entry of the clerk. Example dcecp> cdsclient disable /.:/hosts/blech/cds-clerk dcecp> cdsclient help Returns help information about the cdsclient object and its operations. The syntax is as follows: cdsclient help [operation | -verbose] Options Displays information about the cdsclient object. Used without an argument or option, cdsclient help returns brief information about each cdsclient operation. The optional operation argu- ment is the name of an operation about which you want detailed information. Alternatively, you can use the -verbose option to display detailed information about the cdsclient object itself. Privileges Required No special privileges are needed to use the cdsclient help command. Examples dcecp> cdsclient help disable Disables the specified CDS client. show Returns attribute information about the named CDS client. help Prints a summary of command-line options. operations Returns a list of the valid opera- tions for this command. dcecp> cdsclient operations Returns a list of the operations supported by the cdsclient object. The syntax is as follows: cdsclient operations The list of available operations is in alphabetical order except for help and operations, which are listed last. Privileges Required No special privileges are needed to use the cdsclient operations command. Examples dcecp> cdsclient operations disable show help operations dcecp> cdsclient show Returns attribute information about the specified CDS client. The syntax is as follows: cdsclient show client_name The attributes returned mostly represent counter information, which can be used to help isolate a problems with a CDS client. The order the attributes are returned is fixed within CDS. Privileges Required You must have r (read) permissions on the namespace entry. Example dcecp> cdsclient show /.:/hosts/blech/cds-clerk {Creation_Time 1995-10-11-15:09:45.187-04:00I-----} {Protocol_Errors 0} {Authentica- tion_Failures 0} {Read_Operations 78935} {Cache_Hits 55007} {Cache_Bypasses 23726} {Write_Operations 50} {Miscellaneous_Operations 53} dcecp> RELATED INFORMATION
Commands: cdsadv(1m), dcecp(1m), dcecp_cds(1m). cdsclient(1m)
All times are GMT -4. The time now is 11:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy