Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How to print last field ouput in Linux? Post 303044682 by sravani25 on Sunday 1st of March 2020 05:06:55 PM
Old 03-01-2020
Thanks jim mcnamara for your reply,


But i am not sure about how many fields of data will be in description column. Is there any alternate way to get the data to a variable ?.
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Print The ouput From ls | grep "!!!"

guys forget the find command coz with find command u can't get condational output like grep. I will give small example :- Apr 10 09:12 aacbl222_12aug1998.lqc Apr 10 09:12 sscbl4534_4sep2001.lqc Apr 10 09:12 ah66fmi_5jan1997.lqc Apr 10 09:12 y313h1_7sep1998.lqc May 11 09:12... (5 Replies)
Discussion started by: geoquest
5 Replies

2. UNIX for Dummies Questions & Answers

egrep field print

#!/bin/bash dnum=0 cd rc.d while do echo "rc$dnum.d outputs" egrep -r '^+' rc$dnum.d | sort -n +3 ((dnum++)) done WHAT I GET> rc0.d outputs rc0.d/tmpfiles:K00linuxconf rc0.d/tmpfiles:K01a1nono... (2 Replies)
Discussion started by: knc9233
2 Replies

3. Shell Programming and Scripting

how to print field n of line m

Hi everyone, I have a basic csh/awk question. How do I print a given field from a given line in a given file? Thanks in advance! (11 Replies)
Discussion started by: Deanne
11 Replies

4. UNIX for Dummies Questions & Answers

[awk] print from field n to field x

Hi, I'm trying to print every line from first field to the fourth from a file containing more. $ cat input a b c d e f g a b c d e f gI'm trying awk '{for (i=1; i <= NF-3; i++) print $i}' awkTest.datbut it printsa b c d a b c dSo, I easily guess I'm wrong. :) Of course, I want:a b... (5 Replies)
Discussion started by: daPeach
5 Replies

5. Shell Programming and Scripting

Print certain field only

Need help. I have this: <li><a href="/wiki/Yunus_(sura)" title="Yunus (sura)">Yunus</a> (<a href="/wiki/Islamic_view_of_Jonah" title="Islamic view of Jonah" class=" mw-redirect">Junus</a> or <a href="/wiki/Jonah">Jonah</a>), 109 ayat, 11 ruku's, Meccan</li> <li><a href="/wiki/Hud_(sura)"... (1 Reply)
Discussion started by: zorrox
1 Replies

6. UNIX for Dummies Questions & Answers

Match pattern in a field, print pattern only instead of the entire field

Hi ! I have a tab-delimited file, file.tab: Column1 Column2 Column3 aaaaaaaaaa bbtomatoesbbbbbb cccccccccc ddddddddd eeeeappleseeeeeeeee ffffffffffffff ggggggggg hhhhhhtomatoeshhh iiiiiiiiiiiiiiii ... (18 Replies)
Discussion started by: lucasvs
18 Replies

7. UNIX for Dummies Questions & Answers

Print first field in awk

Hi, I have below text file 01.02.2014,asdas,arse,aere,4tfsd 12.03.2014,sdte,45gf,8iuj,qw343w 01.02.0214,aetre,sdfgter,asfrwe I have writen below code to print only first field that is only date field from text file #!/bin/ksh echo "enter week" read week while read -r... (6 Replies)
Discussion started by: stew
6 Replies

8. UNIX for Dummies Questions & Answers

Print first field using awk

I want to print line by line only the first field from txt file input file etr,t7tu,e45xdt,e45exgt,cdgfe aqw34aw,45edgf,45estd,sert34 a232e,4etedf,w345er,qw345rw, qw354,q34asf,tw45f,q3drsf required o/p file etr aqw34aw a232e qw354 (1 Reply)
Discussion started by: stew
1 Replies

9. Shell Programming and Scripting

Command/script to match a field and print the next field of each line in a file.

Hello, I have a text file in the below format: Source Destination State Lag Status CQA02W2K12pl:D:\CAQA ... (10 Replies)
Discussion started by: pocodot
10 Replies
ldns(3) 						     Library Functions Manual							   ldns(3)

NAME
ldns_rr_print, ldns_rdf_print, ldns_pkt_print, ldns_rr_list_print, ldns_resolver_print, ldns_zone_print- SYNOPSIS
#include <stdint.h> #include <stdbool.h> #include <ldns/ldns.h> void ldns_rr_print(FILE *output, const ldns_rr *rr); void ldns_rdf_print(FILE *output, const ldns_rdf *rdf); void ldns_pkt_print(FILE *output, const ldns_pkt *pkt); void ldns_rr_list_print(FILE *output, const ldns_rr_list *list); void ldns_resolver_print(FILE *output, const ldns_resolver *r); void ldns_zone_print(FILE *output, const ldns_zone *z); DESCRIPTION
ldns_rr_print() Prints the data in the resource record to the given file stream (in presentation format) output: the file stream to print to rr: the resource record to print Returns void ldns_rdf_print() Prints the data in the rdata field to the given file stream (in presentation format) output: the file stream to print to rdf: the rdata field to print Returns void ldns_pkt_print() Prints the data in the DNS packet to the given file stream (in presentation format) output: the file stream to print to pkt: the packet to print Returns void ldns_rr_list_print() print a rr_list to output output: the fd to print to list: the rr_list to print ldns_resolver_print() Print a resolver (in sofar that is possible) state to output. output: the fd to print to r: the resolver to print ldns_zone_print() Print a zone structure * to output. Note the SOA record is included in this output output: the fd to print to z: the zone to print AUTHOR
The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben. REPORTING BUGS
Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html COPYRIGHT
Copyright (c) 2004 - 2006 NLnet Labs. Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. SEE ALSO
ldns_rr2str, ldns_rdf2str, ldns_pkt2str, ldns_rr_list2str, ldns_key2str. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035. REMARKS
This manpage was automaticly generated from the ldns source code by use of Doxygen and some perl. 30 May 2006 ldns(3)
All times are GMT -4. The time now is 08:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy