Sponsored Content
Top Forums Shell Programming and Scripting Execution Problems with scan and change file data content Post 302461880 by ctsgnb on Tuesday 12th of October 2010 03:22:29 PM
Old 10-12-2010
sed 's/X[^X]X/XXX/g;s/X[^X][^X]X/XXXX/g;s/X[^X][^X][^X]X/XXXXX/g' input >output
This User Gave Thanks to ctsgnb For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help to change the content for remote located file

Hi All, I have a file that sits on 4 diffrent servers, those servers are diffrent region based and they are authentication protected and that file has a diff port numbers, so when run the script it must ask my login details,region of server and port no for that file once it took from me it... (1 Reply)
Discussion started by: tmarjuna
1 Replies

2. Shell Programming and Scripting

How to change a file's content by row?

Greetings. So the question is basically the same as it's in the title. I'd like to write a program that changes a file by rows. So to clarify it. (i know i shouldn't use code,/code here but i would like to separate it) So for example a text file looks like something like this: Happy... (5 Replies)
Discussion started by: buddhist
5 Replies

3. Shell Programming and Scripting

Change file content based on data

I have a Transaction File coming into the system. In this file, in all records the relevant data is as follows- Position 1:10 -> Transaction Code Position 252:255 -> 4 digit business code Now based on these 2 fields I have to alter value in Transaction code (Position 1:10)... (6 Replies)
Discussion started by: varunrbs
6 Replies

4. Shell Programming and Scripting

Execution problems when added two same content in each line

Input: >sample_1 ASDAFDGSGH >sample_2 ASDFDAFDSFS >sample_3 ASDAFDAFDFD >sample_4 ASDFDFDSFDSF . Desired output >sample_1 ASDAFDGSGHXX >sample_2 ASDFDAFDSFSXX >sample_3 ASDAFDAFDFDXX (2 Replies)
Discussion started by: patrick87
2 Replies

5. Shell Programming and Scripting

Excution Problems with loading huge data content and convert it

Hi, I got long list of referred file content: CGTGCFTGCGTFREDG PEOGDKGJDGKLJGKL DFGDSFIODUFIODSUF FSDOFJSODIFJSIODFJ DSFSDFDFSDOFJFOSF SDFOSDJFOJFPPIPIOP . . . Input file content: >sample_1 SDFDSKLFKDSLSDFSDFDFGDSFIODUFIODSUFSDDSFDSSDFDSFAS (14 Replies)
Discussion started by: patrick87
14 Replies

6. Shell Programming and Scripting

Scan and change file data content problem

Input file >Read_1 XXXXXXXXXXSDFXXXXXDS (condition 1: After the last "X" per line, if the distance is less than or equal to 3 letter, replace those not "X" letter with "X") TREXXXXXXXSDFXXXXXDS (condition 2: Before the first "X" per line, if the distance is less than or equal to 3 letter,... (12 Replies)
Discussion started by: patrick87
12 Replies

7. Linux

when SCP, does file content change?

Good day to you all, Just want to check here, i know when scping a file, size might change due to space issue. it might sound silly, but does file content get change too? if so, what kind of situation that might be? (1 Reply)
Discussion started by: ahtat99
1 Replies

8. Shell Programming and Scripting

Execution Problem with dispalying file content using menu driven script

HI All.. below is my menu options script. in option 2,3 and 4 im giving input and they are saving into their respective text file. problem is when im trying to "cat" those files in options 7,8 and 9 im not getting the output. no respective file contents are displaying on screen. but if i... (1 Reply)
Discussion started by: saichand1985
1 Replies

9. Shell Programming and Scripting

Change a file content format using awk

Hi, i have a file input.txt Continent North America Country USA Capital Washington D.C. Country Canada Capital Ottawa Continent South America Country Argentina Capital Buenos Aires Country Brazil Capital Brasília Coutry Colombia Capital Bogotá and i want to get an output.txt ... (3 Replies)
Discussion started by: fastlane3000
3 Replies

10. Shell Programming and Scripting

Script to change the file content using some conditions

Hello, I would like to change the content of the file that has few blocks starts with 10 and ends with ";" File1.txt 10 bonuses D 20 MATCHED 30 UPD COL 40 (SOL=30) 20 NOT MATCHED 30 INS COL 40 (SOL=30) ; 10 bonuses D 20 MATCHED 30 UPD COL 40... (5 Replies)
Discussion started by: Mannu2525
5 Replies
DateTime::Locale::ur_IN(3)				User Contributed Perl Documentation				DateTime::Locale::ur_IN(3)

NAME
DateTime::Locale::ur_IN SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'ur_IN' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Urdu India. DATA
This locale inherits from the DateTime::Locale::ur locale. It contains the following data. Days Wide (format) XXX XXXX XXX XXXXXX XXXX XXXX XXXXX Abbreviated (format) XXX XXXX XXX XXXXXX XXXX XXXX XXXXX Narrow (format) X X X X X X X Wide (stand-alone) XXX XXXX XXX XXXXXX XXXX XXXX XXXXX Abbreviated (stand-alone) 2 3 4 5 6 7 1 Narrow (stand-alone) X X X X X X X Months Wide (format) XXXXX XXXXX XXX X XXXXX XX XXX XXXXX XXXX XXXXX XXXXXX XXXXX XXXXX Abbreviated (format) XXXXX XXXXX XXX X XXXXX XX XXX XXXXX XXXX XXXXX XXXXXX XXXXX XXXXX Narrow (format) X X X X X X X X X X X X Wide (stand-alone) XXXXX XXXXX XXX X XXXXX XX XXX XXXXX XXXX XXXXX XXXXXX XXXXX XXXXX Abbreviated (stand-alone) 1 2 3 4 5 6 7 8 9 10 11 12 Narrow (stand-alone) X X X X X X X X X X X X Quarters Wide (format) XXXX XX XXXX XXXXX XX XXXX XXXXX XX XXXX XXXXX XX XXXX Abbreviated (format) 1XX XXXX 2XX XXXX 3XX XXXX 4XX XXXX Narrow (format) 1 2 3 4 Wide (stand-alone) XXXX XX XXXX XXXXX XX XXXX XXXXX XX XXXX XXXXX XX XXXX Abbreviated (stand-alone) 1XX XXXX 2XX XXXX 3XX XXXX 4XX XXXX Narrow (stand-alone) 1 2 3 4 Eras Wide XXX XXXX XXXXX XX Abbreviated X X XXXXX XX Narrow X X XXXXX XX Date Formats Full 2008-02-05T18:30:30 = XXXX, 5, XXXXX 2008 1995-12-22T09:05:02 = XXXX, 22, XXXXX 1995 -0010-09-15T04:44:23 = XXXX, 15, XXXXX -10 Long 2008-02-05T18:30:30 = 5, XXXXX 2008 1995-12-22T09:05:02 = 22, XXXXX 1995 -0010-09-15T04:44:23 = 15, XXXXX -10 Medium 2008-02-05T18:30:30 = 5, XXXXX 2008 1995-12-22T09:05:02 = 22, XXXXX 1995 -0010-09-15T04:44:23 = 15, XXXXX -10 Short 2008-02-05T18:30:30 = 5/2/08 1995-12-22T09:05:02 = 22/12/95 -0010-09-15T04:44:23 = 15/9/-10 Default 2008-02-05T18:30:30 = 5, XXXXX 2008 1995-12-22T09:05:02 = 22, XXXXX 1995 -0010-09-15T04:44:23 = 15, XXXXX -10 Time Formats Full 2008-02-05T18:30:30 = 6:30:30 XXX XXXXX UTC 1995-12-22T09:05:02 = 9:05:02 XXX XXXXX UTC -0010-09-15T04:44:23 = 4:44:23 XXX XXXXX UTC Long 2008-02-05T18:30:30 = 6:30:30 XXX XXXXX UTC 1995-12-22T09:05:02 = 9:05:02 XXX XXXXX UTC -0010-09-15T04:44:23 = 4:44:23 XXX XXXXX UTC Medium 2008-02-05T18:30:30 = 6:30:30 XXX XXXXX 1995-12-22T09:05:02 = 9:05:02 XXX XXXXX -0010-09-15T04:44:23 = 4:44:23 XXX XXXXX Short 2008-02-05T18:30:30 = 6:30 XXX XXXXX 1995-12-22T09:05:02 = 9:05 XXX XXXXX -0010-09-15T04:44:23 = 4:44 XXX XXXXX Default 2008-02-05T18:30:30 = 6:30:30 XXX XXXXX 1995-12-22T09:05:02 = 9:05:02 XXX XXXXX -0010-09-15T04:44:23 = 4:44:23 XXX XXXXX Datetime Formats Full 2008-02-05T18:30:30 = XXXX, 5, XXXXX 2008 6:30:30 XXX XXXXX UTC 1995-12-22T09:05:02 = XXXX, 22, XXXXX 1995 9:05:02 XXX XXXXX UTC -0010-09-15T04:44:23 = XXXX, 15, XXXXX -10 4:44:23 XXX XXXXX UTC Long 2008-02-05T18:30:30 = 5, XXXXX 2008 6:30:30 XXX XXXXX UTC 1995-12-22T09:05:02 = 22, XXXXX 1995 9:05:02 XXX XXXXX UTC -0010-09-15T04:44:23 = 15, XXXXX -10 4:44:23 XXX XXXXX UTC Medium 2008-02-05T18:30:30 = 5, XXXXX 2008 6:30:30 XXX XXXXX 1995-12-22T09:05:02 = 22, XXXXX 1995 9:05:02 XXX XXXXX -0010-09-15T04:44:23 = 15, XXXXX -10 4:44:23 XXX XXXXX Short 2008-02-05T18:30:30 = 5/2/08 6:30 XXX XXXXX 1995-12-22T09:05:02 = 22/12/95 9:05 XXX XXXXX -0010-09-15T04:44:23 = 15/9/-10 4:44 XXX XXXXX Default 2008-02-05T18:30:30 = 5, XXXXX 2008 6:30:30 XXX XXXXX 1995-12-22T09:05:02 = 22, XXXXX 1995 9:05:02 XXX XXXXX -0010-09-15T04:44:23 = 15, XXXXX -10 4:44:23 XXX XXXXX Available Formats d (X) 2008-02-05T18:30:30 = X 1995-12-22T09:05:02 = X -0010-09-15T04:44:23 = X EEEd (d EEE) 2008-02-05T18:30:30 = 5 XXXX 1995-12-22T09:05:02 = 22 XXXX -0010-09-15T04:44:23 = 15 XXXX 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 XXX XXXXX 1995-12-22T09:05:02 = 9:05 XXX XXXXX -0010-09-15T04:44:23 = 4:44 XXX XXXXX 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 XXX XXXXX 1995-12-22T09:05:02 = 9:05:02 XXX XXXXX -0010-09-15T04:44:23 = 4:44:23 XXX XXXXX M (LL) 2008-02-05T18:30:30 = 02 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 09 Md (M-d) 2008-02-05T18:30:30 = 2-5 1995-12-22T09:05:02 = 12-22 -0010-09-15T04:44:23 = 9-15 MEd (E, M-d) 2008-02-05T18:30:30 = XXXX, 2-5 1995-12-22T09:05:02 = XXXX, 12-22 -0010-09-15T04:44:23 = XXXX, 9-15 MMM (LLL) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 MMMd (MMM d) 2008-02-05T18:30:30 = XXXXX 5 1995-12-22T09:05:02 = XXXXX 22 -0010-09-15T04:44:23 = XXXXX 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = XXXX XXXXX 5 1995-12-22T09:05:02 = XXXX XXXXX 22 -0010-09-15T04:44:23 = XXXX XXXXX 15 MMMMd (MMMM d) 2008-02-05T18:30:30 = XXXXX 5 1995-12-22T09:05:02 = XXXXX 22 -0010-09-15T04:44:23 = XXXXX 15 MMMMEd (E MMMM d) 2008-02-05T18:30:30 = XXXX XXXXX 5 1995-12-22T09:05:02 = XXXX XXXXX 22 -0010-09-15T04:44:23 = XXXX XXXXX 15 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 (yyyy-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -010-9 yMEd (EEE, yyyy-d-M) 2008-02-05T18:30:30 = XXXX, 2008-5-2 1995-12-22T09:05:02 = XXXX, 1995-22-12 -0010-09-15T04:44:23 = XXXX, -010-15-9 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 XXXXX 1995-12-22T09:05:02 = 1995 XXXXX -0010-09-15T04:44:23 = -10 XXXXX yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = XXXX, 2008 XXXXX 5 1995-12-22T09:05:02 = XXXX, 1995 XXXXX 22 -0010-09-15T04:44:23 = XXXX, -10 XXXXX 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 XXXXX 1995-12-22T09:05:02 = 1995 XXXXX -0010-09-15T04:44:23 = -10 XXXXX 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 (y QQQ) 2008-02-05T18:30:30 = 2008 1XX XXXX 1995-12-22T09:05:02 = 1995 4XX XXXX -0010-09-15T04:44:23 = -10 3XX XXXX yyQ (yy Q) 2008-02-05T18:30:30 = 08 1 1995-12-22T09:05:02 = 95 4 -0010-09-15T04:44:23 = -10 3 Miscellaneous Prefers 24 hour time? No Local first day of the week XXXXX 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::ur_IN(3)
All times are GMT -4. The time now is 08:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy