Sponsored Content
Full Discussion: Header Replace characters
Top Forums Shell Programming and Scripting Header Replace characters Post 302236928 by danmero on Tuesday 16th of September 2008 03:09:35 PM
Old 09-16-2008
@joeyg one-liner simplified:
Code:
sed "1s/nbr/Id1/;s/jun/Jun/;s/jul/Jul/;s/aug/Aug/;s/sep/Sep/;s/_20//g" file

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Want to replace characters

Hi I have searched for a way to replace odd characters in a FOLDER NAME. All search-and-replace issues I have seen, only involves how to make search-and-replace on a FILE och with TEXT INSIDE a FILE. My problem is with the FOLDER NAME. My case is this: I have a couple of persons that every... (5 Replies)
Discussion started by: arndorff
5 Replies

2. Shell Programming and Scripting

How to replace characters with random characters

I've got a file (numbers.txt) filled with numbers and I want to replace each one of those numbers with a new random number between 0 and 9. This is my script so far: #!/bin/bash rand=$(($RANDOM % 9)) sed -i s//$rand/g numbers.txtThe problem that I have is that it replaces each number with just... (2 Replies)
Discussion started by: hellocatfood
2 Replies

3. Shell Programming and Scripting

improve performance - replace $\| with $#@ and remove header and trailer records

Hi All, In my file i need to remove header and trailer records which comes in 1st line and last line respectively. After that i need to replace '$\|' with '$#@'. I am using sed command for this and its taking lot of time. Is there any other command which can be used to improve performance? ... (1 Reply)
Discussion started by: HemaV
1 Replies

4. Shell Programming and Scripting

how to replace characters using tr

Hi, I have a file which includes some French Characters and I want to change them to other characters like À to &Agrave; Â to &Acirc; É to &Eacute; ..... ..... and so on. I am tyring to use tr command like tr ÀÂÉ &Agrave;&Acirc;&Eacute; < input file But it does not work. Only... (2 Replies)
Discussion started by: naveed
2 Replies

5. Shell Programming and Scripting

Replace special characters with Escape characters?

i need to replace the any special characters with escape characters like below. test!=123-> test\!\=123 !@#$%^&*()-= to be replaced by \!\@\#\$\%\^\&\*\(\)\-\= (8 Replies)
Discussion started by: laknar
8 Replies

6. Shell Programming and Scripting

Remove last few characters in a file but keeping Header and trailer intact

Hi All, I am trying write a simple command using AWK and SED to this but without any success. Here is what I am using: head -1 test1.txt>test2.txt|sed '1d;$d' test1.txt|awk '{print substr($0,0,(length($0)-2))}' >>test2.txt|tail -1 test1.txt>>test2.txt Input: Header 1234567 abcdefgh... (2 Replies)
Discussion started by: nvuradi
2 Replies

7. Shell Programming and Scripting

Replace a column with a value by ignoring the header lines

i have a file in the gz format , the content of the file is as follow. gzcat f1.gz # 1.name # 2.location # 3.age # 4.dob . . . . . . . . . # 43.hobbies < Aravind,33,chennai,09091980, , , , , , , surfing> (5 Replies)
Discussion started by: aravindj80
5 Replies

8. Shell Programming and Scripting

To replace header name

Hi, i am having below csv file with header names, i need to change the header with appending a string test.csv h1,h2,h3,h4 Ouptut hi_h1,hi_h2,hi_h3,hi_h4 I have tried below but this will take time if i have 100 headers. Is there a way to simplify this sed -e... (5 Replies)
Discussion started by: rohit_shinez
5 Replies

9. UNIX for Beginners Questions & Answers

awk script to extract a column, replace one of the header and replace year(from ddmmyy to yyyy)

I have a csv which has lot of columns . I was looking for an awk script which would extract a column twice. for the first occurance the header and data needs to be intact but for the second occurance i want to replace the header name since it a duplicate and extract year value which is in ddmmyy... (10 Replies)
Discussion started by: Kunalcurious
10 Replies

10. Shell Programming and Scripting

Bash script - How to update header of scripts in one pass - multiline search/replace

Hello. A find command return a list of file. For each fileReplace the content starting with the first "§" (of two) ending with last "ɸ" (of two), regardless of the content ( five lines ) by the following content (exactly) : §2019_08_23§ # # ... (8 Replies)
Discussion started by: jcdole
8 Replies
DateTime::Locale::sk(3) 				User Contributed Perl Documentation				   DateTime::Locale::sk(3)

NAME
DateTime::Locale::sk SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'sk' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Slovak. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) pondelok utorok streda Xtvrtok piatok sobota nedeXa Abbreviated (format) po ut st Xt pi so ne Narrow (format) P U S X P S N Wide (stand-alone) pondelok utorok streda Xtvrtok piatok sobota nedeXa Abbreviated (stand-alone) po ut st Xt pi so ne Narrow (stand-alone) P U S X P S N Months Wide (format) januara februara marca aprila maja juna jula augusta septembra oktobra novembra decembra Abbreviated (format) jan feb mar apr maj jun jul aug sep okt nov dec Narrow (format) j f m a m j j a s o n d Wide (stand-alone) januar februar marec april maj jun jul august september oktober november december Abbreviated (stand-alone) jan feb mar apr maj jun jul aug sep okt nov dec Narrow (stand-alone) j f m a m j j a s o n d Quarters Wide (format) 1. XtvrXrok 2. XtvrXrok 3. XtvrXrok 4. XtvrXrok Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) 1. XtvrXrok 2. XtvrXrok 3. XtvrXrok 4. XtvrXrok Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide BCE CE Abbreviated pred n.l. n.l. Narrow pred n.l. n.l. Date Formats Full 2008-02-05T18:30:30 = utorok, 5. februara 2008 1995-12-22T09:05:02 = piatok, 22. decembra 1995 -0010-09-15T04:44:23 = sobota, 15. septembra -10 Long 2008-02-05T18:30:30 = 5. februara 2008 1995-12-22T09:05:02 = 22. decembra 1995 -0010-09-15T04:44:23 = 15. septembra -10 Medium 2008-02-05T18:30:30 = 5.2.2008 1995-12-22T09:05:02 = 22.12.1995 -0010-09-15T04:44:23 = 15.9.-010 Short 2008-02-05T18:30:30 = 5.2.2008 1995-12-22T09:05:02 = 22.12.1995 -0010-09-15T04:44:23 = 15.9.-010 Default 2008-02-05T18:30:30 = 5.2.2008 1995-12-22T09:05:02 = 22.12.1995 -0010-09-15T04:44:23 = 15.9.-010 Time Formats Full 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 9:05:02 UTC -0010-09-15T04:44:23 = 4:44:23 UTC Long 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 9:05:02 UTC -0010-09-15T04:44:23 = 4:44:23 UTC Medium 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 Short 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 Default 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 Datetime Formats Full 2008-02-05T18:30:30 = utorok, 5. februara 2008 18:30:30 UTC 1995-12-22T09:05:02 = piatok, 22. decembra 1995 9:05:02 UTC -0010-09-15T04:44:23 = sobota, 15. septembra -10 4:44:23 UTC Long 2008-02-05T18:30:30 = 5. februara 2008 18:30:30 UTC 1995-12-22T09:05:02 = 22. decembra 1995 9:05:02 UTC -0010-09-15T04:44:23 = 15. septembra -10 4:44:23 UTC Medium 2008-02-05T18:30:30 = 5.2.2008 18:30:30 1995-12-22T09:05:02 = 22.12.1995 9:05:02 -0010-09-15T04:44:23 = 15.9.-010 4:44:23 Short 2008-02-05T18:30:30 = 5.2.2008 18:30 1995-12-22T09:05:02 = 22.12.1995 9:05 -0010-09-15T04:44:23 = 15.9.-010 4:44 Default 2008-02-05T18:30:30 = 5.2.2008 18:30:30 1995-12-22T09:05:02 = 22.12.1995 9:05:02 -0010-09-15T04:44:23 = 15.9.-010 4: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 (EEE, d.) 2008-02-05T18:30:30 = ut, 5. 1995-12-22T09:05:02 = pi, 22. -0010-09-15T04:44:23 = so, 15. 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 popoludni 1995-12-22T09:05:02 = 9:05 dopoludnia -0010-09-15T04:44:23 = 4:44 dopoludnia 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 popoludni 1995-12-22T09:05:02 = 9:05:02 dopoludnia -0010-09-15T04:44:23 = 4:44:23 dopoludnia 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 = ut, 5.2. 1995-12-22T09:05:02 = pi, 22.12. -0010-09-15T04:44:23 = so, 15.9. MMM (LLL) 2008-02-05T18:30:30 = feb 1995-12-22T09:05:02 = dec -0010-09-15T04:44:23 = sep MMMd (d. MMM) 2008-02-05T18:30:30 = 5. feb 1995-12-22T09:05:02 = 22. dec -0010-09-15T04:44:23 = 15. sep MMMEd (E, d. MMM) 2008-02-05T18:30:30 = ut, 5. feb 1995-12-22T09:05:02 = pi, 22. dec -0010-09-15T04:44:23 = so, 15. sep MMMMd (d. MMMM) 2008-02-05T18:30:30 = 5. februara 1995-12-22T09:05:02 = 22. decembra -0010-09-15T04:44:23 = 15. septembra MMMMEd (E, d. MMMM) 2008-02-05T18:30:30 = ut, 5. februara 1995-12-22T09:05:02 = pi, 22. decembra -0010-09-15T04:44:23 = so, 15. septembra mmss (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 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 (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, d.M.yyyy) 2008-02-05T18:30:30 = ut, 5.2.2008 1995-12-22T09:05:02 = pi, 22.12.1995 -0010-09-15T04:44:23 = so, 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 = sep -10 yMMMEd (EEE, d. MMM y) 2008-02-05T18:30:30 = ut, 5. feb 2008 1995-12-22T09:05:02 = pi, 22. dec 1995 -0010-09-15T04:44:23 = so, 15. sep -10 yMMMM (MMMM y) 2008-02-05T18:30:30 = februara 2008 1995-12-22T09:05:02 = decembra 1995 -0010-09-15T04:44:23 = septembra -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 = Q1 2008 1995-12-22T09:05:02 = Q4 1995 -0010-09-15T04:44:23 = Q3 -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 yyQQQQ (QQQQ yy) 2008-02-05T18:30:30 = 1. XtvrXrok 08 1995-12-22T09:05:02 = 4. XtvrXrok 95 -0010-09-15T04:44:23 = 3. XtvrXrok -10 yyyyM (M.yyyy) 2008-02-05T18:30:30 = 2.2008 1995-12-22T09:05:02 = 12.1995 -0010-09-15T04:44:23 = 9.-010 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = februara 2008 1995-12-22T09:05:02 = decembra 1995 -0010-09-15T04:44:23 = septembra -10 Miscellaneous Prefers 24 hour time? Yes Local first day of the week pondelok 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::sk(3)
All times are GMT -4. The time now is 07:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy