Sponsored Content
Top Forums Shell Programming and Scripting How to grep an empty line in a specific column of a file? Post 302753515 by itkamaraj on Wednesday 9th of January 2013 01:35:33 AM
Old 01-09-2013
post your code using code tag button.

post the input and expected output

using the code tag button in the editor below (hint: it looks like this --> Image)

https://www.unix.com/how-post-unix-li...code-tags.html
 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Retrieve line from a file based on a value in specific column

Hi, I have a file that has several values seperated by ":" 2006:John:Student:Football:Portugal:Cinema 2006:James:Engineer:Basket:Poland:Theatre 2007:Lucy:Diver:Gymnastic:England:Music 2007:Smith:Plumber:Basket:Spain:Poker I need make a filter based on the 5th field to find countries that... (1 Reply)
Discussion started by: efernandes
1 Replies

2. UNIX for Dummies Questions & Answers

(cont) Retrieve line from a file based on a value in specific column

HI, Your help was great: awk -F":" '$5 ~ /^P/{print }' file I would like to know what changes need to be done to this line code, so that I can put it in a shell script and call it as the example below. example: countries that start with chacater 'P' > country P Result: ... (0 Replies)
Discussion started by: efernandes
0 Replies

3. Shell Programming and Scripting

grep on specific line of the file

Hi, how can we search for a word (with case ignore )on specific line numbers ex: Awk /^regEX/ with condition on first line or second line Awk/^ regex1/ on line 1 Awk /^regEX2/ on line 3 thanks in advance (4 Replies)
Discussion started by: rider29
4 Replies

4. Shell Programming and Scripting

grep a specific line from a file

Is there a way to grep only one line from a file listing name of files? If I use head -1 it's ok(the first line only) If I use head -2 it's not good because I have already checked the first line. I'd like something like this: while test $i -le $max do grep "$3" `head -$i temp.txt` >... (4 Replies)
Discussion started by: Max89
4 Replies

5. Shell Programming and Scripting

delete empty spaces at specific column

Hi All, If anybody could help me with my scenario here. I have a statement file. Example of some content: DATE DESC Debit Credit Total Rate 02-Jan-08 Lodgement 200.00 1200.00 2.51 14-Sep-07 Withdrawal 50.00 1000.00 ... (8 Replies)
Discussion started by: yonez
8 Replies

6. UNIX for Dummies Questions & Answers

Grep specific records from a file of records that are separated by an empty line

Hi everyone. I am a newbie to Linux stuff. I have this kind of problem which couldn't solve alone. I have a text file with records separated by empty lines like this: ID: 20 Name: X Age: 19 ID: 21 Name: Z ID: 22 Email: xxx@yahoo.com Name: Y Age: 19 I want to grep records that... (4 Replies)
Discussion started by: Atrisa
4 Replies

7. UNIX for Dummies Questions & Answers

Grep from specific column in one file based on another file [Please help!]

Hey Guys, to keep it simple, I have an idFile: 1006006 1006008 1006011 1007002 ...... and famFile: 1006 1006001 1006016 1006017 1 1006 1006006 1006016 1006017 1 1006 1006007 0 0 2 1006 1006008 1006007 1006006 2 1006 1006010 1006016 1006017 2 1006 1006011 1006016 1006017 1 1006... (2 Replies)
Discussion started by: Zoho
2 Replies

8. Shell Programming and Scripting

How to read particular line in file from specific column?

Hi...friends.... I want to create inventory...information for that I need to read some specific row say 2nd row from 1st 3 column and and write data with particular file used, I have some more column also but I need only 3 column data of first entry after header I attached sample file..those... (12 Replies)
Discussion started by: nex_asp
12 Replies

9. Shell Programming and Scripting

Overwrite specific column in xml file with the specific column from adjacent line

I have an xml file dumped from rrd file, that I want to "patch" so the xml file doesn't contain any blank hole in the resulting graph of the rrd file. Here is the file. <!-- 2015-10-12 14:00:00 WIB / 1444633200 --> <row><v> 4.0419731265e+07 </v><v> 4.5045912770e+06... (2 Replies)
Discussion started by: rk4k
2 Replies
wml::std::logo(3)						     EN Tools							 wml::std::logo(3)

NAME
wml::std::logo - Logo Insertion SYNOPSIS
#use wml::std::logo <logo [attributes]> DESCRIPTION
This include file provides the "<logo>" tag to insert logo images. The logo is selected via attribute "name". The following logos are available: Name Inserted Hint Inserted URL -------- ------------------------------ ---------------------------- apache Apache Webserver Project http://www.apache.org/ freebsd FreeBSD Operating System http://www.freebsd.org/ gimp GNU Image Manipulation Program http://www.gimp.org/ htdig Internet search engine http://www.htdig.org/ linux Linux Operating System http://www.linux.org/ netbsd NetBSD Operating System http://www.netbsd.org/ openbsd OpenBSD Operating System http://www.openbsd.org/ php PHP Hypertext Preprocessor http://www.php.net/ vim Vi Improved Editor http://www.vim.org/ wml Website META Language http://www.engelschall.com/sw/wml/ xemacs XEmacs Editor http://www.xemacs.org/ ATTRIBUTES
"name" The "name" attribute selects which logo is wanted. The table above lists valid names, and wml is used by default. "base" Usually the logos are copied into logo-xxxxxx.png where "xxxxxx" is the name of the logo. When you use a "base=foo" attribute, then the resulting files are named foo.logo-xxxxxx.png. Actually you can even use a complete filename including a directory prefix, i.e. when you use "base=../../common/foo" attribute, then the images are created as ../../common/foo.logo-xxxxxx.png. And for most flexibility when no base is specified and the variable "LOGO_BASE" is defined (usually from within a .wmlrc file via "-LOGO_BASE~path/to/logo/dir/base") it is used. Use this feature to copy the logos to a particular directory. You may also use the variable "IMAGE_BASE" which defines in a single line all base names for images generated by WML. "format" Logos are available in PNG or GIF formats. This attribute is the filename extension of the desired format, i.e. respectively "png" and "gif". Default is "png" extension ; this default can be changed via the "IMAGE_FORMAT" variable. "file" This attribute defines the logo filename. It overrides all other computed values. "target" If the "target" attribute is used, it refers to a target frame or window where the hyperlink is redirected to. "notag" This forces "<logo>" to expand to nothing, i.e. no resulting "<img>" tag. The image itself is still generated. In combination with the above "file" attribute this can be used to generate images to particular files which can be used at other positions, for instance inside "<rollover>" (see wml::des::rollover(3)) tags. EXAMPLE
This example only copy the vim logo to "$(IMAGES)/logo-vim.png" without any output: <logo name=vim format=png base="$(IMAGES)/logo" notag> AUTHORS
Ralf S. Engelschall rse@engelschall.com www.engelschall.com Denis Barbier barbier@engelschall.com REQUIRES
Internal: P1, P2, P3 External: -- HISTORY
For backward compatibility a logo named "php3" is also available. Inluding the version number was not a really good idea, use the logo "php" instead. Expect that the logo "php3" will be removed in future releases. SEE ALSO
wml(1) EN Tools 2014-04-16 wml::std::logo(3)
All times are GMT -4. The time now is 08:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy