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


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 1 Week Ago   -   Original Discussion by shellquery26666
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

Hello,

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


Code:
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; 1 Week Ago at 06:10 AM.. Reason: CODE & ICODE tags
Sponsored Links
    #2  
Old Unix and Linux 1 Week Ago   -   Original Discussion by shellquery26666
Scrutinizer's Unix or Linux Image
Scrutinizer Scrutinizer is offline Forum Staff  
Moderator
 
Join Date: Nov 2008
Last Activity: 23 November 2017, 3:53 PM EST
Location: Amsterdam
Posts: 11,626
Thanks: 518
Thanked 3,382 Times in 2,981 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
Closed

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 05:24 AM
URGENT HELP ON A SHELL SCRIPT ShellNovice1 Shell Programming and Scripting 1 06-28-2010 05:05 AM
(Urgent):Creating flat file using sql script and sqlplus from UNIX Shell Script praka Shell Programming and Scripting 6 04-15-2009 07:09 AM
Need help in shell script (Urgent : Please help) vnmshenoy UNIX for Dummies Questions & Answers 8 08-07-2008 07:45 PM
Urgent for shell script sunnysunny Shell Programming and Scripting 4 03-04-2008 03:42 PM



All times are GMT -4. The time now is 01:45 AM.