sed remove date ex. "Mar 25 2008"


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting sed remove date ex. "Mar 25 2008"
# 15  
Old 03-27-2008
Quote:
Originally Posted by katrvu
Using sed would save me many lines of work.
Most of the time you wasted here are spent on developing that one perfect regular expression that does the job, when you can work more easily with tools that does the job better with less time and less regular expressions. KISS
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Using sed how to remove "forward shash"

I am trying to remove "forward shash" using sed it was not working 666,server1, 00973 N/A RDF1+TDEV RW 1035788 i need to remove " N/A" and "RW" I need output 666,server, 00973 , RDF1+TDEV , 1035788 (4 Replies)
Discussion started by: ranjancom2000
4 Replies

2. Shell Programming and Scripting

remove the ".0" of a date

Hi, I want to transform a txt file to make a new one. I want to remove the ".0" of the dates only (after the time, there is ".0" that I dont need. I.e 1480.1 1.0 1.0 2012-07-08 23:38:11.0 2012-07-08 23:40:14.0 I want to transform this line to get this new one... 1480.1 ... (3 Replies)
Discussion started by: edgar.piquer
3 Replies

3. Shell Programming and Scripting

how to use "cut" or "awk" or "sed" to remove a string

logs: "/home/abc/public_html/index.php" "/home/abc/public_html/index.php" "/home/xyz/public_html/index.php" "/home/xyz/public_html/index.php" "/home/xyz/public_html/index.php" how to use "cut" or "awk" or "sed" to get the following result: abc abc xyz xyz xyz (8 Replies)
Discussion started by: timmywong
8 Replies

4. Shell Programming and Scripting

Using sed to find text between a "string " and character ","

Hello everyone Sorry I have to add another sed question. I am searching a log file and need only the first 2 occurances of text which comes after (note the space) "string " and before a ",". I have tried sed -n 's/.*string \(*\),.*/\1/p' filewith some, but limited success. This gives out all... (10 Replies)
Discussion started by: haggismn
10 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. Shell Programming and Scripting

cat $como_file | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g'

hi All, cat file_name | awk /^~/'{print $1","$2","$3","$4}' | sed -e 's/~//g' Can this be done by using sed or awk alone (4 Replies)
Discussion started by: harshakusam
4 Replies

7. AIX

xx=`date +"%a %b %d"`;rsh xxx grep "^$XX" zzz ?

AIX 4.2 I am trying to do an rsh grep to search for date records inside server logs by doing this : xx=`date +"%a %b %d"` rsh xxx grep "^$XX" zzz gives : grep: 0652-033 Cannot open Jun. grep: 0652-033 Cannot open 11. But if I do : xx=`date +"%a %b %d"` grep "^$XX" zzz it works... (2 Replies)
Discussion started by: Browser_ice
2 Replies

8. Shell Programming and Scripting

How to remove "New line characters" and "spaces" at a time

Dear friends, following is the output of a script from which I want to remove spaces and new-line characters. Example:- Line1 abcdefghijklmnopqrstuvwxyz Line2 mnopqrstuvwxyzabcdefghijkl Line3 opqrstuvwxyzabcdefdefg Here in above example, at every starting line there is a “tab” &... (4 Replies)
Discussion started by: anushree.a
4 Replies

9. UNIX for Advanced & Expert Users

add seconds to: date"|"time"|"HHMMSS

Hey all, I have a shell that invokes a AWK. In this AWK i want invoke a function that receives 3 parameters: date: 20080831 time: 235901 duration: 00023 that function receive this 3 parameters and sum to this value two more seconds: 2008083123590100025 Remember that in case that... (3 Replies)
Discussion started by: anaconga
3 Replies

10. UNIX for Dummies Questions & Answers

converting date format: "May 31 2008" to "2008-05-31"

I have the following script to find out the last day of the last month .... and the output of this script is in the following format ... Script goes like this .... #!/bin/ksh cur_month=`date +%m` cur_year=`date +%Y` prev_month=$(($cur_month-1)) # Check to see if this is January if ... (8 Replies)
Discussion started by: santosham
8 Replies
Login or Register to Ask a Question
DateTime::Locale::gl_ES(3)				User Contributed Perl Documentation				DateTime::Locale::gl_ES(3)

NAME
DateTime::Locale::gl_ES SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'gl_ES' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Galician Spain. DATA
This locale inherits from the DateTime::Locale::gl locale. It contains the following data. Days Wide (format) Luns Martes Mercores Xoves Venres Sabado Domingo Abbreviated (format) Lun Mar Mer Xov Ven Sab Dom Narrow (format) L M M X V S D Wide (stand-alone) Luns Martes Mercores Xoves Venres Sabado Domingo Abbreviated (stand-alone) Lun Mar Mer Xov Ven Sab Dom Narrow (stand-alone) L M M X V S D Months Wide (format) Xaneiro Febreiro Marzo Abril Maio Xun~o Xullo Agosto Setembro Outubro Novembro Decembro Abbreviated (format) Xan Feb Mar Abr Mai Xun~ Xul Ago Set Out Nov Dec Narrow (format) X F M A M X X A S O N D Wide (stand-alone) Xaneiro Febreiro Marzo Abril Maio Xun~o Xullo Agosto Setembro Outubro Novembro Decembro Abbreviated (stand-alone) Xan Feb Mar Abr Mai Xun~ Xul Ago Set Out Nov Dec Narrow (stand-alone) X F M A M X X A S O N D Quarters Wide (format) 1o trimestre 2o trimestre 3o trimestre 4o trimestre Abbreviated (format) T1 T2 T3 T4 Narrow (format) 1 2 3 4 Wide (stand-alone) 1o trimestre 2o trimestre 3o trimestre 4o trimestre Abbreviated (stand-alone) T1 T2 T3 T4 Narrow (stand-alone) 1 2 3 4 Eras Wide antes de Cristo despois de Cristo Abbreviated a.C. d.C. Narrow a.C. d.C. Date Formats Full 2008-02-05T18:30:30 = Martes 05 Febreiro 2008 1995-12-22T09:05:02 = Venres 22 Decembro 1995 -0010-09-15T04:44:23 = Sabado 15 Setembro -10 Long 2008-02-05T18:30:30 = 05 Febreiro 2008 1995-12-22T09:05:02 = 22 Decembro 1995 -0010-09-15T04:44:23 = 15 Setembro -10 Medium 2008-02-05T18:30:30 = 5 Feb, 2008 1995-12-22T09:05:02 = 22 Dec, 1995 -0010-09-15T04:44:23 = 15 Set, -10 Short 2008-02-05T18:30:30 = 05/02/08 1995-12-22T09:05:02 = 22/12/95 -0010-09-15T04:44:23 = 15/09/-10 Default 2008-02-05T18:30:30 = 5 Feb, 2008 1995-12-22T09:05:02 = 22 Dec, 1995 -0010-09-15T04:44:23 = 15 Set, -10 Time Formats Full 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Long 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Medium 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Short 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 Default 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Datetime Formats Full 2008-02-05T18:30:30 = Martes 05 Febreiro 2008 18:30:30 UTC 1995-12-22T09:05:02 = Venres 22 Decembro 1995 09:05:02 UTC -0010-09-15T04:44:23 = Sabado 15 Setembro -10 04:44:23 UTC Long 2008-02-05T18:30:30 = 05 Febreiro 2008 18:30:30 UTC 1995-12-22T09:05:02 = 22 Decembro 1995 09:05:02 UTC -0010-09-15T04:44:23 = 15 Setembro -10 04:44:23 UTC Medium 2008-02-05T18:30:30 = 5 Feb, 2008 18:30:30 1995-12-22T09:05:02 = 22 Dec, 1995 09:05:02 -0010-09-15T04:44:23 = 15 Set, -10 04:44:23 Short 2008-02-05T18:30:30 = 05/02/08 18:30 1995-12-22T09:05:02 = 22/12/95 09:05 -0010-09-15T04:44:23 = 15/09/-10 04:44 Default 2008-02-05T18:30:30 = 5 Feb, 2008 18:30:30 1995-12-22T09:05:02 = 22 Dec, 1995 09:05:02 -0010-09-15T04:44:23 = 15 Set, -10 04:44:23 Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 Mar 1995-12-22T09:05:02 = 22 Ven -0010-09-15T04:44:23 = 15 Sab Hm (HH:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 PM 1995-12-22T09:05:02 = 9:05 AM -0010-09-15T04:44:23 = 4:44 AM Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 PM 1995-12-22T09:05:02 = 9:05:02 AM -0010-09-15T04:44:23 = 4:44:23 AM M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (d-M) 2008-02-05T18:30:30 = 5-2 1995-12-22T09:05:02 = 22-12 -0010-09-15T04:44:23 = 15-9 MEd (E, d-M) 2008-02-05T18:30:30 = Mar, 5-2 1995-12-22T09:05:02 = Ven, 22-12 -0010-09-15T04:44:23 = Sab, 15-9 MMdd (dd/MM) 2008-02-05T18:30:30 = 05/02 1995-12-22T09:05:02 = 22/12 -0010-09-15T04:44:23 = 15/09 MMM (LLL) 2008-02-05T18:30:30 = Feb 1995-12-22T09:05:02 = Dec -0010-09-15T04:44:23 = Set MMMd (d MMM) 2008-02-05T18:30:30 = 5 Feb 1995-12-22T09:05:02 = 22 Dec -0010-09-15T04:44:23 = 15 Set MMMEd (E d MMM) 2008-02-05T18:30:30 = Mar 5 Feb 1995-12-22T09:05:02 = Ven 22 Dec -0010-09-15T04:44:23 = Sab 15 Set MMMMd (d MMMM) 2008-02-05T18:30:30 = 5 Febreiro 1995-12-22T09:05:02 = 22 Decembro -0010-09-15T04:44:23 = 15 Setembro MMMMdd (dd MMMM) 2008-02-05T18:30:30 = 05 Febreiro 1995-12-22T09:05:02 = 22 Decembro -0010-09-15T04:44:23 = 15 Setembro MMMMEd (E d MMMM) 2008-02-05T18:30:30 = Mar 5 Febreiro 1995-12-22T09:05:02 = Ven 22 Decembro -0010-09-15T04:44:23 = Sab 15 Setembro ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (M-yyyy) 2008-02-05T18:30:30 = 2-2008 1995-12-22T09:05:02 = 12-1995 -0010-09-15T04:44:23 = 9--010 yMEd (EEE, d-M-yyyy) 2008-02-05T18:30:30 = Mar, 5-2-2008 1995-12-22T09:05:02 = Ven, 22-12-1995 -0010-09-15T04:44:23 = Sab, 15-9--010 yMMM (MMM y) 2008-02-05T18:30:30 = Feb 2008 1995-12-22T09:05:02 = Dec 1995 -0010-09-15T04:44:23 = Set -10 yMMMEd (EEE, d MMM y) 2008-02-05T18:30:30 = Mar, 5 Feb 2008 1995-12-22T09:05:02 = Ven, 22 Dec 1995 -0010-09-15T04:44:23 = Sab, 15 Set -10 yMMMM (MMMM y) 2008-02-05T18:30:30 = Febreiro 2008 1995-12-22T09:05:02 = Decembro 1995 -0010-09-15T04:44:23 = Setembro -10 yQ (Q yyyy) 2008-02-05T18:30:30 = 1 2008 1995-12-22T09:05:02 = 4 1995 -0010-09-15T04:44:23 = 3 -010 yQQQ (QQQ y) 2008-02-05T18:30:30 = T1 2008 1995-12-22T09:05:02 = T4 1995 -0010-09-15T04:44:23 = T3 -10 yyMM (MM/yy) 2008-02-05T18:30:30 = 02/08 1995-12-22T09:05:02 = 12/95 -0010-09-15T04:44:23 = 09/-10 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = Febreiro 2008 1995-12-22T09:05:02 = Decembro 1995 -0010-09-15T04:44:23 = Setembro -10 Miscellaneous Prefers 24 hour time? Yes Local first day of the week Luns SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.16.3 2014-06-10 DateTime::Locale::gl_ES(3)