Sponsored Content
Top Forums UNIX for Dummies Questions & Answers how to convert the string YYYYMMDD into YYYY.MM.DD Post 302217615 by spatra on Wednesday 23rd of July 2008 07:03:07 AM
Old 07-23-2008
how to convert the string YYYYMMDD into YYYY.MM.DD

how to convert the string YYYYMMDD into YYYY.MM.DD

Please advice
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Format date from MM/DD/YYYY to YYYYMMDD

I have a file with some date columns in MM/DD/YYYY format: SMPBR|DUP-DO NOT USE|NEW YORK||16105|BA5270715|6/6/2007 |MWERNER|109||||JOHN||SMITH|MD|72211118||||||74559|21 WILMINGTON RD||D|11/6/2003|SL# MD CONTACT-LIZ RICHARDS|||0|Y|N||1411458| And I want to convert the date format to: ... (5 Replies)
Discussion started by: ChicagoBlues
5 Replies

2. Shell Programming and Scripting

Convert DD-MMM-YYYY to MM-DD-YYYY

I have a file which has 100k+ records like this abc,05-JUN-1974,def,lkj,aaa def,11-SEP-1975,ghj,dis,dea I want to convert ex 05-JUN-1974 to 06/05/1974 Please help me with awk script to convert the whole file into MM-DD-YYYY Thank you! (2 Replies)
Discussion started by: nuthalapati
2 Replies

3. Shell Programming and Scripting

convert date format YYYYMMDD to MM/DD/YYYY

In my shell script i have a variable which stores date in the format of YYYYMMDD. Is there any way to format this value to MM/DD/YYYY. Thanks. (8 Replies)
Discussion started by: nasirgondal
8 Replies

4. Shell Programming and Scripting

Sed: zero-padding dates (or: convert d/m/yyyy to dd/mm/yyyy)

Hi all I have some pipe-separated data in the form: 5/12/2008 00:00:00|31/1/2009 00:00:00|SOMESTUFF|OTHERSTUFF 12/31/2008 00:00:00|15/1/2009 00:00:00|MORESTUFF|REMAININGSTUFF 1/1/1023 00:00:00|16/5/2047 00:00:00|THEREST|YETMORE I need to zero-pad the single-digit days and months, using... (3 Replies)
Discussion started by: jgrogan
3 Replies

5. Shell Programming and Scripting

convert d/m/yyyy to YYYY-MM-DD

My csv has data like this x,x,3452,2/18/1986,abc x,g,19711,1/24/1986,abc i want to replace date in the following format YYYY-mm-dd how do i convert using awk script ? (8 Replies)
Discussion started by: nuthalapati
8 Replies

6. Shell Programming and Scripting

PERL String to Date (Custom format yyyymmdd to dd-mon-yyyy)

Hi All, I am learning PERL for one of the projects, and in one of these scripts, I read a flat text file and print in the terminal. The problem is, the text file has a date field. The format is yyyymmdd. I need to display this as dd-mon-yyyy. Any ideas to do this? Thanks a lot for the... (9 Replies)
Discussion started by: guruparan18
9 Replies

7. Shell Programming and Scripting

Converting Date from YYYYMMDD to DD-MON-YYYY

Hi , I need to convert date from YYYYMMDD to DD-MON-YYYY e.g 20111214 to 14-Dec-2011 Please help. (17 Replies)
Discussion started by: ady_koolz
17 Replies

8. Programming

Date format change from mm/dd/yyyy to yyyymmdd in comma seperate line in perl

Hi All, I have line ,A,FDRM0002,12/21/2017,,0.961751583,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, it contains date in mm/dd/yyyy format i want to change this to yyyymmdd format using perl. Use code tags, thanks. (8 Replies)
Discussion started by: vishal0746
8 Replies

9. Shell Programming and Scripting

Convert string (YYYYMMDD) format to date in Sun OS

Hi All I need help in converting a string of YYYYMMDD format to date in Sun OS and then find out if the day is a Wednesday or not. The "date -d" option is not working and your help is much appreciated. The date command usage from the operating system we use here is as follows: usage: ... (1 Reply)
Discussion started by: SK123
1 Replies

10. Solaris

Convert string (YYYYMMDD) format to date in Sun OS

Hi All I need help in converting a string of YYYYMMDD format to date in Sun OS and then find out if the day is a Wednesday or not. The "date -d" option is not working and your help is much appreciated. The date command usage from the operating system we use here is as follows: Thanks, SK (11 Replies)
Discussion started by: SK123
11 Replies
ldns(3) 						     Library Functions Manual							   ldns(3)

NAME
ldns_rdf2buffer_str_a, ldns_rdf2buffer_str_aaaa, ldns_rdf2buffer_str_str, ldns_rdf2buffer_str_b64, ldns_rdf2buffer_str_hex, ldns_rdf2buf- fer_str_type, ldns_rdf2buffer_str_class, ldns_rdf2buffer_str_alg, ldns_rdf2buffer_str_loc, ldns_rdf2buffer_str_unknown, ldns_rdf2buf- fer_str_nsap, ldns_rdf2buffer_str_wks, ldns_rdf2buffer_str_nsec, ldns_rdf2buffer_str_period, ldns_rdf2buffer_str_tsigtime, ldns_rdf2buf- fer_str_apl, ldns_rdf2buffer_str_int16_data, ldns_rdf2buffer_str_int16, ldns_rdf2buffer_str_ipseckey SYNOPSIS
#include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> ldns_status ldns_rdf2buffer_str_a(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_aaaa(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_str(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_b64(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_hex(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_type(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_class(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_alg(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_loc(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_unknown(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_nsap(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_wks(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_nsec(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_period(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_tsigtime(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_apl(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_int16_data(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_int16(ldns_buffer *output, const ldns_rdf *rdf); ldns_status ldns_rdf2buffer_str_ipseckey(ldns_buffer *output, const ldns_rdf *rdf); DESCRIPTION
ldns_rdf2buffer_str_a() Converts an LDNS_RDF_TYPE_A rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_aaaa() Converts an LDNS_RDF_TYPE_AAAA rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_str() Converts an LDNS_RDF_TYPE_STR rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_b64() Converts an LDNS_RDF_TYPE_B64 rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_hex() Converts an LDNS_RDF_TYPE_HEX rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_type() Converts an LDNS_RDF_TYPE_TYPE rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_class() Converts an LDNS_RDF_TYPE_CLASS rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_alg() Converts an LDNS_RDF_TYPE_ALG rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_loc() Converts an LDNS_RDF_TYPE_LOC rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_unknown() Converts an LDNS_RDF_TYPE_UNKNOWN rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_nsap() Converts an LDNS_RDF_TYPE_NSAP rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_wks() Converts an LDNS_RDF_TYPE_WKS rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_nsec() Converts an LDNS_RDF_TYPE_NSEC rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_period() Converts an LDNS_RDF_TYPE_PERIOD rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_tsigtime() Converts an LDNS_RDF_TYPE_TSIGTIME rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_apl() Converts an LDNS_RDF_TYPE_APL rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_int16_data() Converts an LDNS_RDF_TYPE_INT16_DATA rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_int16() Converts an LDNS_RDF_TYPE_INT16 rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure ldns_rdf2buffer_str_ipseckey() Converts an LDNS_RDF_TYPE_IPSECKEY rdata element to string format and adds it to the output buffer *rdf: The rdata to convert *output: The buffer to add the data to Returns LDNS_STATUS_OK on success, and error status on failure AUTHOR
The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben. REPORTING BUGS
Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html COPYRIGHT
Copyright (c) 2004 - 2006 NLnet Labs. Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SEE ALSO
perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. REMARKS
This manpage was automaticly generated from the ldns source code by use of Doxygen and some perl. 30 May 2006 ldns(3)
All times are GMT -4. The time now is 04:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy