Sponsored Content
Top Forums UNIX for Dummies Questions & Answers To print the 1st column using sed Post 302537364 by win4luv on Friday 8th of July 2011 01:52:42 AM
Old 07-08-2011
you are simply aweseomeSmilie....Also lets say, if i need to pull 3 & 4 or any random selection of the columns how do i go abt doing it? Also can you please suggest some good unix books
appreciate your help.
win4luv
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Strings from one file which exactly match to the 1st column of other file and then print lines.

Hi, I have two files. 1st file has 1 column (huge file containing ~19200000 lines) and 2nd file has 2 columns (small file containing ~6000 lines). ################################# huge_file.txt a a ab b ################################## small_file.txt a 1.5 b 2.5 ab ... (4 Replies)
Discussion started by: AshwaniSharma09
4 Replies

2. Shell Programming and Scripting

print first few lines, then apply regex on a specific column to print results.

abc.dat tty cpu tin tout us sy wt id 0 0 7 3 19 71 extended device statistics r/s w/s kr/s kw/s wait actv wsvc_t asvc_t %w %b device 0.0 133.2 0.0 682.9 0.0 1.0 0.0 7.2 0 79 c1t0d0 0.2 180.4 0.1 5471.2 3.0 2.8 16.4 15.6 15 52 aaaaaa1-xx I want to skip first 5 line... (4 Replies)
Discussion started by: kchinnam
4 Replies

3. Shell Programming and Scripting

sed/awk to update 1st column if condition met

Hi, I am trying to update the 1st column of a file but only if it contains a char here is an example of my file 1111aaa 9999 textaaa 22222bbb 9999 textbbb 3333 9999 textccc 444ddd 9999 textddd i would like the output to remove any characters () from... (5 Replies)
Discussion started by: plennon
5 Replies

4. Shell Programming and Scripting

Using sed on 1st column of tab delimited file

Hi all, I'm new to Unix and work primarily in bioinformatics. I am in need of a script which will allow me to replace "1" with "chr1" in only the first column of a file which looks like such: 1 10327 rs112750067 T C . PASS ASP;RSPOS=10327;... (4 Replies)
Discussion started by: Hkins552
4 Replies

5. Shell Programming and Scripting

AWK/SED print if 2nd character in a column is greater than 0

We have an access log where column 8 displays the time in seconds like below: Tj8nQAoNgwsAABov9cIAAAFL - 10.13.131.80 - - (0) - "GET /aaaaa/bbbb/bbbb where column 8 is printed (0). We are trying to find how many entries are there that has column 8 greater than 0. Remember $8 is (0) and not... (5 Replies)
Discussion started by: spacemtn5
5 Replies

6. Shell Programming and Scripting

comparing column of two different files and print the column from in order of 2nd file

Hi friends, My file is like: Second file is : I need to print the rows present in file one, but in order present in second file....I used while read gh;do awk ' $1=="' $gh'" {print >> FILENAME"output"} ' cat listoffirstfile done < secondfile but the output I am... (14 Replies)
Discussion started by: CAch
14 Replies

7. Shell Programming and Scripting

awk Print New Column For Every Two Lines and Match On Multiple Column Values to print another column

Hi, My input files is like this axis1 0 1 10 axis2 0 1 5 axis1 1 2 -4 axis2 2 3 -3 axis1 3 4 5 axis2 3 4 -1 axis1 4 5 -6 axis2 4 5 1 Now, these are my following tasks 1. Print a first column for every two rows that has the same value followed by a string. 2. Match on the... (3 Replies)
Discussion started by: jacobs.smith
3 Replies

8. Linux

Print the 1st column and the value in 2nd or 3rd column if that is different from the values in 1st

I have file that looks like this, DIP-17571N|refseq:NP_651151 DIP-17460N|refseq:NP_511165|uniprotkb:P45890 DIP-17571N|refseq:NP_651151 DIP-19241N|refseq:NP_524261 DIP-19241N|refseq:NP_524261 DIP-17151N|refseq:NP_524316|uniprotkb:O16797 DIP-19588N|refseq:NP_731165 ... (2 Replies)
Discussion started by: Syeda Sumayya
2 Replies

9. UNIX for Beginners Questions & Answers

Compare 1st column from 2 file and if match print line from 1st file and append column 7 from 2nd

hi I have 2 file with more than 10 columns for both 1st file apple,0,0,0...... orange,1,2,3..... mango,2,4,5..... 2nd file apple,2,3,4,5,6,7... orange,2,3,4,5,6,8... watermerlon,2,3,4,5,6,abc... mango,5,6,7,4,6,def.... (1 Reply)
Discussion started by: tententen
1 Replies

10. UNIX for Beginners Questions & Answers

Need to print nth till last column of ls output using sed

I wish to print first, third and sixth till the last column from the output of ls command ls -ltr /app/deploy.yml -rw-rw-r-- 1 user1 dba 27342 Aug 28 10:17 /app/deploy.yml Desired Output: Below command gives me the desired output. ls -ltr /app/deploy.yml | awk '{$2=$4=$5=""; print... (6 Replies)
Discussion started by: mohtashims
6 Replies
DateTime::Locale::ta(3) 				User Contributed Perl Documentation				   DateTime::Locale::ta(3)

NAME
DateTime::Locale::ta SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'ta' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Tamil. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) XXXXXXX XXXXXXXX XXXXX XXXXXXX XXXXXX XXX XXXXXX Abbreviated (format) XX XX XX XX XX X XX Narrow (format) XX XX XX XX XX X XX Wide (stand-alone) XXXXXXX XXXXXXXX XXXXX XXXXXXX XXXXXX XXX XXXXXX Abbreviated (stand-alone) XX XX XX XX XX X XX Narrow (stand-alone) XX XX XX XX XX X XX Months Wide (format) XXXXX XXXXXXXX XXXXXX XXXXXX XX XXXX XXXX XXXXXX XXXXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX Abbreviated (format) XX. XXXX. XXXX. XXX. XX XXXX XXXX XX. XXXX. XXX. XX. XXX. Narrow (format) X XX XX X XX XX XX X XX X X XX Wide (stand-alone) XXXXX XXXXXXXX XXXXXX XXXXXX XX XXXX XXXX XXXXXX XXXXXXXXXX XXXXXXXX XXXXXXX XXXXXXXX Abbreviated (stand-alone) XX. XXXX. XXXX. XXX. XX XXXX XXXX XX. XXXX. XXX. XX. XXX. Narrow (stand-alone) X XX XX X XX XX XX X XX X X XX Quarters Wide (format) 1XXX XXXXXXXX 2XXX XXXXXXXX 3XXX XXXXXXXX 4XXX XXXXXXXX Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) 1XXX XXXXXXXX 2XXX XXXXXXXX 3XXX XXXXXXXX 4XXX XXXXXXXX Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide XXXXXXXXXXXXXX XXXX XXX XXXXXX Abbreviated XXXX XXXX Narrow XXXX XXXX Date Formats Full 2008-02-05T18:30:30 = XXXXXXXX, 5 XXXXXXXX, 2008 1995-12-22T09:05:02 = XXXXXX, 22 XXXXXXXX, 1995 -0010-09-15T04:44:23 = XXX, 15 XXXXXXXXXX, -10 Long 2008-02-05T18:30:30 = 5 XXXXXXXX, 2008 1995-12-22T09:05:02 = 22 XXXXXXXX, 1995 -0010-09-15T04:44:23 = 15 XXXXXXXXXX, -10 Medium 2008-02-05T18:30:30 = 5 XXXX., 2008 1995-12-22T09:05:02 = 22 XXX., 1995 -0010-09-15T04:44:23 = 15 XXXX., -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 XXXX., 2008 1995-12-22T09:05:02 = 22 XXX., 1995 -0010-09-15T04:44:23 = 15 XXXX., -10 Time Formats Full 2008-02-05T18:30:30 = 6:30:30 pm UTC 1995-12-22T09:05:02 = 9:05:02 am UTC -0010-09-15T04:44:23 = 4:44:23 am UTC Long 2008-02-05T18:30:30 = 6:30:30 pm UTC 1995-12-22T09:05:02 = 9:05:02 am UTC -0010-09-15T04:44:23 = 4:44:23 am UTC Medium 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 Short 2008-02-05T18:30:30 = 6:30 pm 1995-12-22T09:05:02 = 9:05 am -0010-09-15T04:44:23 = 4:44 am Default 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 Datetime Formats Full 2008-02-05T18:30:30 = XXXXXXXX, 5 XXXXXXXX, 2008 6:30:30 pm UTC 1995-12-22T09:05:02 = XXXXXX, 22 XXXXXXXX, 1995 9:05:02 am UTC -0010-09-15T04:44:23 = XXX, 15 XXXXXXXXXX, -10 4:44:23 am UTC Long 2008-02-05T18:30:30 = 5 XXXXXXXX, 2008 6:30:30 pm UTC 1995-12-22T09:05:02 = 22 XXXXXXXX, 1995 9:05:02 am UTC -0010-09-15T04:44:23 = 15 XXXXXXXXXX, -10 4:44:23 am UTC Medium 2008-02-05T18:30:30 = 5 XXXX., 2008 6:30:30 pm 1995-12-22T09:05:02 = 22 XXX., 1995 9:05:02 am -0010-09-15T04:44:23 = 15 XXXX., -10 4:44:23 am Short 2008-02-05T18:30:30 = 5-2-08 6:30 pm 1995-12-22T09:05:02 = 22-12-95 9:05 am -0010-09-15T04:44:23 = 15-9--10 4:44 am Default 2008-02-05T18:30:30 = 5 XXXX., 2008 6:30:30 pm 1995-12-22T09:05:02 = 22 XXX., 1995 9:05:02 am -0010-09-15T04:44:23 = 15 XXXX., -10 4:44:23 am 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 XX 1995-12-22T09:05:02 = 22 XX -0010-09-15T04:44:23 = 15 X 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 = XX, 2-5 1995-12-22T09:05:02 = XX, 12-22 -0010-09-15T04:44:23 = X, 9-15 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 = XXXX. 1995-12-22T09:05:02 = XXX. -0010-09-15T04:44:23 = XXXX. MMMd (MMM d) 2008-02-05T18:30:30 = XXXX. 5 1995-12-22T09:05:02 = XXX. 22 -0010-09-15T04:44:23 = XXXX. 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = XX XXXX. 5 1995-12-22T09:05:02 = XX XXX. 22 -0010-09-15T04:44:23 = X XXXX. 15 MMMMd (d MMMM) 2008-02-05T18:30:30 = 5 XXXXXXXX 1995-12-22T09:05:02 = 22 XXXXXXXX -0010-09-15T04:44:23 = 15 XXXXXXXXXX MMMMEd (E MMMM d) 2008-02-05T18:30:30 = XX XXXXXXXX 5 1995-12-22T09:05:02 = XX XXXXXXXX 22 -0010-09-15T04:44:23 = X XXXXXXXXXX 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 = XX, 2008-2-5 1995-12-22T09:05:02 = XX, 1995-12-22 -0010-09-15T04:44:23 = X, -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 XXXX. 1995-12-22T09:05:02 = 1995 XXX. -0010-09-15T04:44:23 = -10 XXXX. yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = XX, 2008 XXXX. 5 1995-12-22T09:05:02 = XX, 1995 XXX. 22 -0010-09-15T04:44:23 = X, -10 XXXX. 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 XXXXXXXX 1995-12-22T09:05:02 = 1995 XXXXXXXX -0010-09-15T04:44:23 = -10 XXXXXXXXXX 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 yyyyMM (MM-yyyy) 2008-02-05T18:30:30 = 02-2008 1995-12-22T09:05:02 = 12-1995 -0010-09-15T04:44:23 = 09--010 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = XXXXXXXX 2008 1995-12-22T09:05:02 = XXXXXXXX 1995 -0010-09-15T04:44:23 = XXXXXXXXXX -10 Miscellaneous Prefers 24 hour time? No Local first day of the week XXXXXXX 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::ta(3)
All times are GMT -4. The time now is 09:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy