Sponsored Content
Full Discussion: search and replace in a file
Top Forums UNIX for Advanced & Expert Users search and replace in a file Post 302326091 by Scott on Wednesday 17th of June 2009 05:20:29 AM
Old 06-17-2009
sed 's/\(.*\)\(hai\)\(.*\)\(world\)\(.*\)/\1hello\3universe\5/g' yourfile
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Search and replace in file

Hi guys, I have one file with duplicate string. I want to replace all the occurance of that string with some other string. How can I do that in vi editor? Malay Maru (3 Replies)
Discussion started by: malaymaru
3 Replies

2. Shell Programming and Scripting

Search and replace in file..

Hi All, As I'm working on a Unix script... and the requirement is like, I need to search a word and replace it with the another word... for that i'm using SED command.... can anybody give any other alternate for this...? Thanks Amit (2 Replies)
Discussion started by: Amits
2 Replies

3. Shell Programming and Scripting

search and replace in a file

Hi I have to search & replace column in the file.For example ..below iam having File1. in which 3rd column ...if it is A it should be 'ACT' if P it should be 'PAD' and if it ils D it should be 'DEC' I have to pass column no ,value and to be converted value as variables in to the... (2 Replies)
Discussion started by: satyam_sat
2 Replies

4. Shell Programming and Scripting

Help on search and replace in a file

Hi all, The operating system is Solaris 10 I have example line here below I need to change the stat1 to stat2 using a shell script. search for space(" ") and replace with "\ " Stat1 --- /data/Sat Night Stay.txt Stat2 --- /data/Sat\ Night\ Stay.txt Thanks Firestar. (1 Reply)
Discussion started by: firestar
1 Replies

5. Shell Programming and Scripting

Optimised way for search & replace a value on one line in a very huge file (File Size is 24 GB).

Hi Experts, I had to edit (a particular value) in header line of a very huge file so for that i wanted to search & replace a particular value on a file which was of 24 GB in Size. I managed to do it but it took long time to complete. Can anyone please tell me how can we do it in a optimised... (7 Replies)
Discussion started by: manishkomar007
7 Replies

6. Emergency UNIX and Linux Support

Search and replace in text file

Hi, I have gigabytes of text files that I need to search for "&" and replace with "&amp". Is there a way to do this efficiently (like sed command)? Hope you could help. Thanks. (17 Replies)
Discussion started by: daytripper1021
17 Replies

7. Shell Programming and Scripting

Search for a string in a file and replace

I have file t1.log Contents of t1.log file Number of records processed: Number of records rejected: Error : xyz .......... abc .......... aaa _] start time : end time : Please let me know how i can remove the contents highlighted in red in the t1.log file. Thanks Sam (3 Replies)
Discussion started by: sam777
3 Replies

8. Shell Programming and Scripting

Nested search in a file and replace the inner search

Hi Team, I am new to unix, please help me in this. I have a file named properties. The content of the file is : ##Mobile props east.url=https://qa.east.corp.com/prop/end west.url=https://qa.west.corp.com/prop/end south.url=https://qa.south.corp.com/prop/end... (2 Replies)
Discussion started by: tolearn
2 Replies

9. Shell Programming and Scripting

Search and Replace in a new FILE.

Hi, more data.txt more srstring.sh input="data.txt" while IFS= read -r var do startdirectory=$loc search=$(echo $var | awk -F'=' '{print $1}') replace=$(echo $var | awk -F'=' '{print $2}') find "/tmp/config" -type f -exec grep -l "$search" {} + | while read file do if sed -e... (9 Replies)
Discussion started by: mohtashims
9 Replies

10. Shell Programming and Scripting

Search and replace in file

hi All i'm new to shell/bash scripting and need help to write a script. question: i have a file of 100's of line, i need to replace all zeros in that file with its respective position, starting from 0 to 23 and remove the remaining sample file is like. Enter the date in the format... (12 Replies)
Discussion started by: sunnu2u86
12 Replies
DateTime::Locale::vi_VN(3)				User Contributed Perl Documentation				DateTime::Locale::vi_VN(3)

NAME
DateTime::Locale::vi_VN SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'vi_VN' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Vietnamese Vietnam. DATA
This locale inherits from the DateTime::Locale::vi locale. It contains the following data. Days Wide (format) ThX hai ThX ba ThX tX ThX nXm ThX sau ThX bXy ChX nhXt Abbreviated (format) Th 2 Th 3 Th 4 Th 5 Th 6 Th 7 CN Narrow (format) Th 2 Th 3 Th 4 Th 5 Th 6 Th 7 CN Wide (stand-alone) ThX hai ThX ba ThX tX ThX nXm ThX sau ThX bXy ChX nhXt Abbreviated (stand-alone) Th 2 Th 3 Th 4 Th 5 Th 6 Th 7 CN Narrow (stand-alone) 2 3 4 5 6 7 1 Months Wide (format) thang mXt thang hai thang ba thang tX thang nXm thang sau thang bXy thang tam thang chin thang mXXi thang mXXi mXt thang mXXi hai Abbreviated (format) thg 1 thg 2 thg 3 thg 4 thg 5 thg 6 thg 7 thg 8 thg 9 thg 10 thg 11 thg 12 Narrow (format) thg 1 thg 2 thg 3 thg 4 thg 5 thg 6 thg 7 thg 8 thg 9 thg 10 thg 11 thg 12 Wide (stand-alone) thang mXt thang hai thang ba thang tX thang nXm thang sau thang bXy thang tam thang chin thang mXXi thang mXXi mXt thang mXXi hai Abbreviated (stand-alone) thg 1 thg 2 thg 3 thg 4 thg 5 thg 6 thg 7 thg 8 thg 9 thg 10 thg 11 thg 12 Narrow (stand-alone) 1 2 3 4 5 6 7 8 9 10 11 12 Quarters Wide (format) Q1 Q2 Q3 Q4 Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) Q1 Q2 Q3 Q4 Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide BCE CE Abbreviated tr. CN sau CN Narrow tr. CN sau CN Date Formats Full 2008-02-05T18:30:30 = ThX ba, ngay 05 thang hai nXm 2008 1995-12-22T09:05:02 = ThX sau, ngay 22 thang mXXi hai nXm 1995 -0010-09-15T04:44:23 = ThX bXy, ngay 15 thang chin nXm -10 Long 2008-02-05T18:30:30 = Ngay 05 thang 2 nXm 2008 1995-12-22T09:05:02 = Ngay 22 thang 12 nXm 1995 -0010-09-15T04:44:23 = Ngay 15 thang 9 nXm -10 Medium 2008-02-05T18:30:30 = 05-02-2008 1995-12-22T09:05:02 = 22-12-1995 -0010-09-15T04:44:23 = 15-09--010 Short 2008-02-05T18:30:30 = 05/02/2008 1995-12-22T09:05:02 = 22/12/1995 -0010-09-15T04:44:23 = 15/09/-010 Default 2008-02-05T18:30:30 = 05-02-2008 1995-12-22T09:05:02 = 22-12-1995 -0010-09-15T04:44:23 = 15-09--010 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 = 18:30:30 UTC ThX ba, ngay 05 thang hai nXm 2008 1995-12-22T09:05:02 = 09:05:02 UTC ThX sau, ngay 22 thang mXXi hai nXm 1995 -0010-09-15T04:44:23 = 04:44:23 UTC ThX bXy, ngay 15 thang chin nXm -10 Long 2008-02-05T18:30:30 = 18:30:30 UTC Ngay 05 thang 2 nXm 2008 1995-12-22T09:05:02 = 09:05:02 UTC Ngay 22 thang 12 nXm 1995 -0010-09-15T04:44:23 = 04:44:23 UTC Ngay 15 thang 9 nXm -10 Medium 2008-02-05T18:30:30 = 18:30:30 05-02-2008 1995-12-22T09:05:02 = 09:05:02 22-12-1995 -0010-09-15T04:44:23 = 04:44:23 15-09--010 Short 2008-02-05T18:30:30 = 18:30 05/02/2008 1995-12-22T09:05:02 = 09:05 22/12/1995 -0010-09-15T04:44:23 = 04:44 15/09/-010 Default 2008-02-05T18:30:30 = 18:30:30 05-02-2008 1995-12-22T09:05:02 = 09:05:02 22-12-1995 -0010-09-15T04:44:23 = 04:44:23 15-09--010 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 Th 3 1995-12-22T09:05:02 = 22 Th 6 -0010-09-15T04:44:23 = 15 Th 7 H (H) 2008-02-05T18:30:30 = 18 1995-12-22T09:05:02 = 9 -0010-09-15T04:44:23 = 4 HHmm (HH:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 HHmmss (HH:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 CH 1995-12-22T09:05:02 = 9:05 SA -0010-09-15T04:44:23 = 4:44 SA 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 CH 1995-12-22T09:05:02 = 9:05:02 SA -0010-09-15T04:44:23 = 4:44:23 SA 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 = Th 3, 5-2 1995-12-22T09:05:02 = Th 6, 22-12 -0010-09-15T04:44:23 = Th 7, 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 = thg 2 1995-12-22T09:05:02 = thg 12 -0010-09-15T04:44:23 = thg 9 MMMd (d MMM) 2008-02-05T18:30:30 = 5 thg 2 1995-12-22T09:05:02 = 22 thg 12 -0010-09-15T04:44:23 = 15 thg 9 MMMEd (E d MMM) 2008-02-05T18:30:30 = Th 3 5 thg 2 1995-12-22T09:05:02 = Th 6 22 thg 12 -0010-09-15T04:44:23 = Th 7 15 thg 9 MMMMd (d MMMM) 2008-02-05T18:30:30 = 5 thang hai 1995-12-22T09:05:02 = 22 thang mXXi hai -0010-09-15T04:44:23 = 15 thang chin MMMMEd (E d MMMM) 2008-02-05T18:30:30 = Th 3 5 thang hai 1995-12-22T09:05:02 = Th 6 22 thang mXXi hai -0010-09-15T04:44:23 = Th 7 15 thang chin 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 = Th 3, 5-2-2008 1995-12-22T09:05:02 = Th 6, 22-12-1995 -0010-09-15T04:44:23 = Th 7, 15-9--010 yMMM (MMM y) 2008-02-05T18:30:30 = thg 2 2008 1995-12-22T09:05:02 = thg 12 1995 -0010-09-15T04:44:23 = thg 9 -10 yMMMEd (EEE, d MMM y) 2008-02-05T18:30:30 = Th 3, 5 thg 2 2008 1995-12-22T09:05:02 = Th 6, 22 thg 12 1995 -0010-09-15T04:44:23 = Th 7, 15 thg 9 -10 yMMMM (MMMM y) 2008-02-05T18:30:30 = thang hai 2008 1995-12-22T09:05:02 = thang mXXi hai 1995 -0010-09-15T04:44:23 = thang chin -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 yyyy (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yyyyMM (MM-yyyy) 2008-02-05T18:30:30 = 02-2008 1995-12-22T09:05:02 = 12-1995 -0010-09-15T04:44:23 = 09--010 Miscellaneous Prefers 24 hour time? Yes Local first day of the week ThX hai 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.18.2 2017-10-06 DateTime::Locale::vi_VN(3)
All times are GMT -4. The time now is 07:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy