Sponsored Content
Full Discussion: cut in sed/awk
Top Forums Shell Programming and Scripting cut in sed/awk Post 302193950 by penchal_boddu on Monday 12th of May 2008 12:18:49 AM
Old 05-12-2008
Using Sed,

echo "Testing" | sed 's#^\(...\)\(.*\)#\1#g'

Output
Tes


Thanks
Penchal
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

cut vs. sed vs. awk ?

hi again...need new help guys:p the file contains following infos... users/abc/bla1.exe newusers/defgh/ik/albg2.exe users2/opww/ertz/qqwertzu/rwerwew.exe how to get the file content into... users/abc/ newusers/defgh/ik/ users2/opww/ertz/qqwertzu/ with... you can erase the... (5 Replies)
Discussion started by: svennie
5 Replies

2. Shell Programming and Scripting

awk,sed or cut problem

Good afternoon, Sir's, I would like to seek your assistance regarding on this matter. $cat file1 111 aaaa bbb aass aaa files file1 temp temp1 pix 222 11 22 1 33 44 desired output: aaaa bbb aass files file1 temp1 222 11 22 1 33 44 thanks (7 Replies)
Discussion started by: invinzin21
7 Replies

3. Shell Programming and Scripting

Sed Awk Cut Grep Combination Help ?

I have been reading for a few hours trying to educate myself enough to accomplish this task, so please know I have performed some research. Unfortunately, I am not a *NIX scripting expert, or a coder. I come from a network background instead. SO, here is my desired outcome. I have some Cisco... (5 Replies)
Discussion started by: abbzer0
5 Replies

4. Shell Programming and Scripting

Sed or awk cut all lines after word

Hi, sorry for newbie question :confused: can't find how to cut ? from 1000 2000 word some text1.... 100 200 300 word some text2.... 10 20 30 abc word some text3.... to some text1.... some text2.... some text3.... (7 Replies)
Discussion started by: Trump
7 Replies

5. UNIX for Dummies Questions & Answers

Awk/sed solution for grep,cut

Hi, From the file "example" with lines like below, I need the int value associated with ENG , i.e, 123 SUB: ENG123, GROUP 1 SUB: HIS124, GROUP 1 .. .. Normally , i do grep ENG example | cut -d ' ' -f 2 | cut -c 4-6 Is it possible to do it in simpler way using awk/sed ? ... (5 Replies)
Discussion started by: priyam
5 Replies

6. Shell Programming and Scripting

Substring using cut/awk/sed

Hi Gurus,I have a seemingly simple problem but struggling with it.It is as follows : I/p string - ABCDEFGHIJ20100909.txt desired o/p - AB,DEF,20100909,ABCDEFGHIJ20100909.txt How to achieve it ?Thanks in advance. Please use code tags, thank you (20 Replies)
Discussion started by: sumoka
20 Replies

7. Shell Programming and Scripting

Line/Variable Editing for Awk sed Cut

Hello, i have a file, i open the file and read the line, i want to get the first item in the csv file and also teh third+6 item and wirte it to a new csv file. only problem is that using echo it takes TOO LONG: please help a newbie. below is my code: WorkingDir=$1 FileName=`cut -d ',' -f... (2 Replies)
Discussion started by: limamichelle
2 Replies

8. Shell Programming and Scripting

cut, sed, awk too slow to retrieve line - other options?

Hi, I have a script that, basically, has two input files of this type: file1 key1=value1_1_1 key2=value1_2_1 key4=value1_4_1 ... file2 key2=value2_2_1 key2=value2_2_2 key3=value2_3_1 key4=value2_4_1 ... My files are 10k lines big each (approx). The keys are strings that don't... (7 Replies)
Discussion started by: fzd
7 Replies

9. Shell Programming and Scripting

Cut on last backslash on hyperlink string-sed/awk??

hyper link- abc:8081/xyz/2.5.6/rtyp-2.5.6.jar Needs to get "rtyp-2.5.6.jar" i.e character after last backslash "/" how to do this using sed/awk?? help is highly appreciated. (7 Replies)
Discussion started by: kkscm
7 Replies

10. Shell Programming and Scripting

editing file with awk cut and sed

HI All, I am new to unix. I have a file would like to do some editing by using awk, cut and sed. Could anyone help? This file contain 100 lines. There are one line for example: 2,"102343454",5060,"579668","579668","579668","SIP",,,"825922","035885221283026",1,268,"00:59:00.782 APR 17... (2 Replies)
Discussion started by: mimilaw
2 Replies
DateTime::Locale::tn_ZA(3)				User Contributed Perl Documentation				DateTime::Locale::tn_ZA(3)

NAME
DateTime::Locale::tn_ZA SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'tn_ZA' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Tswana South Africa. DATA
This locale inherits from the DateTime::Locale::tn locale. It contains the following data. Days Wide (format) Mosopulogo Labobedi Laboraro Labone Labotlhano Matlhatso Tshipi Abbreviated (format) Mos Bed Rar Ne Tla Mat Tsh Narrow (format) 2 3 4 5 6 7 1 Wide (stand-alone) Mosopulogo Labobedi Laboraro Labone Labotlhano Matlhatso Tshipi Abbreviated (stand-alone) Mos Bed Rar Ne Tla Mat Tsh Narrow (stand-alone) 2 3 4 5 6 7 1 Months Wide (format) Ferikgong Tlhakole Mopitlo Moranang Motsheganang Seetebosigo Phukwi Phatwe Lwetse Diphalane Ngwanatsele Sedimonthole Abbreviated (format) Fer Tlh Mop Mor Mot See Phu Pha Lwe Dip Ngw Sed Narrow (format) 1 2 3 4 5 6 7 8 9 10 11 12 Wide (stand-alone) Ferikgong Tlhakole Mopitlo Moranang Motsheganang Seetebosigo Phukwi Phatwe Lwetse Diphalane Ngwanatsele Sedimonthole Abbreviated (stand-alone) Fer Tlh Mop Mor Mot See Phu Pha Lwe Dip Ngw Sed 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 BC AD Abbreviated BC AD Narrow BC AD Date Formats Full 2008-02-05T18:30:30 = Labobedi, 2008 Tlhakole 05 1995-12-22T09:05:02 = Labotlhano, 1995 Sedimonthole 22 -0010-09-15T04:44:23 = Matlhatso, -10 Lwetse 15 Long 2008-02-05T18:30:30 = 2008 Tlhakole 5 1995-12-22T09:05:02 = 1995 Sedimonthole 22 -0010-09-15T04:44:23 = -10 Lwetse 15 Medium 2008-02-05T18:30:30 = 2008 Tlh 5 1995-12-22T09:05:02 = 1995 Sed 22 -0010-09-15T04:44:23 = -10 Lwe 15 Short 2008-02-05T18:30:30 = 08/02/05 1995-12-22T09:05:02 = 95/12/22 -0010-09-15T04:44:23 = -10/09/15 Default 2008-02-05T18:30:30 = 2008 Tlh 5 1995-12-22T09:05:02 = 1995 Sed 22 -0010-09-15T04:44:23 = -10 Lwe 15 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 = Labobedi, 2008 Tlhakole 05 18:30:30 UTC 1995-12-22T09:05:02 = Labotlhano, 1995 Sedimonthole 22 09:05:02 UTC -0010-09-15T04:44:23 = Matlhatso, -10 Lwetse 15 04:44:23 UTC Long 2008-02-05T18:30:30 = 2008 Tlhakole 5 18:30:30 UTC 1995-12-22T09:05:02 = 1995 Sedimonthole 22 09:05:02 UTC -0010-09-15T04:44:23 = -10 Lwetse 15 04:44:23 UTC Medium 2008-02-05T18:30:30 = 2008 Tlh 5 18:30:30 1995-12-22T09:05:02 = 1995 Sed 22 09:05:02 -0010-09-15T04:44:23 = -10 Lwe 15 04:44:23 Short 2008-02-05T18:30:30 = 08/02/05 18:30 1995-12-22T09:05:02 = 95/12/22 09:05 -0010-09-15T04:44:23 = -10/09/15 04:44 Default 2008-02-05T18:30:30 = 2008 Tlh 5 18:30:30 1995-12-22T09:05:02 = 1995 Sed 22 09:05:02 -0010-09-15T04:44:23 = -10 Lwe 15 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 Bed 1995-12-22T09:05:02 = 22 Tla -0010-09-15T04:44:23 = 15 Mat 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 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 (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 = Bed, 2-5 1995-12-22T09:05:02 = Tla, 12-22 -0010-09-15T04:44:23 = Mat, 9-15 MMM (LLL) 2008-02-05T18:30:30 = Tlh 1995-12-22T09:05:02 = Sed -0010-09-15T04:44:23 = Lwe MMMd (MMM d) 2008-02-05T18:30:30 = Tlh 5 1995-12-22T09:05:02 = Sed 22 -0010-09-15T04:44:23 = Lwe 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = Bed Tlh 5 1995-12-22T09:05:02 = Tla Sed 22 -0010-09-15T04:44:23 = Mat Lwe 15 MMMMd (MMMM d) 2008-02-05T18:30:30 = Tlhakole 5 1995-12-22T09:05:02 = Sedimonthole 22 -0010-09-15T04:44:23 = Lwetse 15 MMMMEd (E MMMM d) 2008-02-05T18:30:30 = Bed Tlhakole 5 1995-12-22T09:05:02 = Tla Sedimonthole 22 -0010-09-15T04:44:23 = Mat Lwetse 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 (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, y-M-d) 2008-02-05T18:30:30 = Bed, 2008-2-5 1995-12-22T09:05:02 = Tla, 1995-12-22 -0010-09-15T04:44:23 = Mat, -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 Tlh 1995-12-22T09:05:02 = 1995 Sed -0010-09-15T04:44:23 = -10 Lwe yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = Bed, 2008 Tlh 5 1995-12-22T09:05:02 = Tla, 1995 Sed 22 -0010-09-15T04:44:23 = Mat, -10 Lwe 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 Tlhakole 1995-12-22T09:05:02 = 1995 Sedimonthole -0010-09-15T04:44:23 = -10 Lwetse yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 Q1 1995-12-22T09:05:02 = 1995 Q4 -0010-09-15T04:44:23 = -10 Q3 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 Miscellaneous Prefers 24 hour time? Yes Local first day of the week Mosopulogo 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::tn_ZA(3)
All times are GMT -4. The time now is 10:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy