LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-02-2018, 05:00 PM   #1
vivekn1980
LQ Newbie
 
Registered: Nov 2017
Posts: 14

Rep: Reputation: Disabled
command to check date format


Record:
Record1|Record2|Record3|Record4|Record5|DATE1|DATE2

Need to Check DATE1 & DATE2 is in DDMMYYYY format in a file.

records which not meet the date format DDMMYYYY extract to other file.
 
Old 05-02-2018, 05:17 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by vivekn1980 View Post
Record:
Record1|Record2|Record3|Record4|Record5|DATE1|DATE2

Need to Check DATE1 & DATE2 is in DDMMYYYY format in a file. records which not meet the date format DDMMYYYY extract to other file.
Ok...so now that we know what you want to do, show us what **YOU** have done/tried so far. Read the "Question Guidelines" link in my posting signature. We're happy to help you, but just telling us what you want and expecting us to write your scripts isn't a good thing.

::EDIT::
And apparently, you've done this before:
https://www.linuxquestions.org/quest...ds-4175628798/
https://www.linuxquestions.org/quest...es-4175619644/

...and then asked for help, and never bothered posting your solution back, even when asked:
https://www.linuxquestions.org/quest...gs-4175618253/

Last edited by TB0ne; 05-02-2018 at 05:19 PM.
 
1 members found this post helpful.
  


Reply

Tags
awk, bash, perl, scripting, sed



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'date' command format Neorio Linux - General 3 01-18-2011 05:18 AM
need date command to output in format 08-Dec-2010 Glenn D. Linux - Software 3 12-09-2010 11:13 AM
check date to run the command ust Linux - Server 4 06-06-2008 04:10 AM
How to change the format of date command. UltraSoul Solaris / OpenSolaris 7 05-16-2007 10:05 AM
sed command to replace date format 2007/01/22 with 070122? johnpaulodonnell Linux - Newbie 3 01-23-2007 07:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration