Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Shell script urgent help please

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 11-14-2017   -   Original Discussion by shellquery26666
shellquery26666's Unix or Linux Image
shellquery26666 shellquery26666 is offline
Registered User
Join Date: Nov 2017
Last Activity: 15 November 2017, 6:52 AM EST
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Shell script urgent help please


I have below string, even I have hundreds of lines in a file. I want to exactly match last two consecutive strings.

2017-09-30|ACBD,TVF|01234|NULL|18|NULL|686091802|BANK OF ABCD, LIMITED, THE|2017-09-30    00:00:00

I want to extract the string 2017-09-30 00:00:00

How can I do this please?

As date 2017-09-30 appears two times so I only want to search lines in a file which has string 2017-09-30 00:00:00

Need urgent help please.

Last edited by rbatte1; 11-15-2017 at 05:10 AM.. Reason: CODE & ICODE tags
Sponsored Links
Old Unix and Linux 11-14-2017   -   Original Discussion by shellquery26666
Scrutinizer's Unix or Linux Image
Scrutinizer Scrutinizer is offline Forum Staff  
Join Date: Nov 2008
Last Activity: 27 May 2018, 1:18 AM EDT
Location: Amsterdam
Posts: 11,810
Thanks: 544
Thanked 3,442 Times in 3,035 Posts
Everyone at the UNIX and Linux Forums gives their best effort to reply to all questions in a timely manner. For this reason, posting questions with subjects like "Urgent!" or "Emergency" and demanding a fast reply are not permitted in the regular forums.

For members who want a higher visibility to their questions, we suggest you post in the Emergency UNIX and Linux Support Forum. This forum is given a higher priority than our regular forums.

Posting a new question in the Emergency UNIX and Linux Support Forum requires forum Bits. We monitor this forum to help people with emergencies, but we do not not guarantee response time or best answers. However, we will treat your post with a higher priority and give our best efforts to help you.

If you have posted a question in the regular forum with a subject "Urgent" "Emergency" or similar idea, we will, more-than-likely, close your thread and post this reply, redirecting you to the proper forum.

Of course, you can always post a descriptive subject text, remove words like "Urgent" etc. (from your subject and post) and post in the regular forums at any time.

Thank you.

The UNIX and Linux Forums
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
URGENT Reading a file and assessing the syntax shell script URGENT Gurdza32 Shell Programming and Scripting 1 05-04-2017 04:24 AM
URGENT HELP ON A SHELL SCRIPT ShellNovice1 Shell Programming and Scripting 1 06-28-2010 04:05 AM
(Urgent):Creating flat file using sql script and sqlplus from UNIX Shell Script praka Shell Programming and Scripting 6 04-15-2009 06:09 AM
Need help in shell script (Urgent : Please help) vnmshenoy UNIX for Dummies Questions & Answers 8 08-07-2008 06:45 PM
Urgent for shell script sunnysunny Shell Programming and Scripting 4 03-04-2008 02:42 PM

All times are GMT -4. The time now is 05:46 AM.