Sponsored Content
Full Discussion: grep tab
Top Forums UNIX for Dummies Questions & Answers grep tab Post 10294 by Perderabo on Monday 12th of November 2001 09:25:13 AM
Old 11-12-2001
Suppose it was a Q separating the xxx and the iii. You would just type "grep "xxxQiii" wouldn't you? The answer to your question is the same, except that instead of Q, you need to type the tab key. Tab is just another character.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

how to grep for blank records (space,tab,/n)?

I want to exclude (-v) blank records from a file before analysing it. I know I can use '^]$' for spaces and tabs but how do you look for lines that have nothing (/n or line feed) ? (2 Replies)
Discussion started by: Browser_ice
2 Replies

2. UNIX for Dummies Questions & Answers

using Grep with a tab

how can i use grep to search a file with a tab, for example grep -l "Text<TAB>Text" *.txt (2 Replies)
Discussion started by: Adriel
2 Replies

3. UNIX for Dummies Questions & Answers

why the <tab> could be not recognized in grep and sed?

I try to remove empty lines from file and use next: > cat fl.dat|grep -v '^*$' or cat fl.dat|sed '/^*$/d' 'grep' does not removes lines with tabs, 'sed' - lines with <tab> and with <spc> Why it could be? Is there any option/env-var should I check? Thank you Alex (5 Replies)
Discussion started by: alex_5161
5 Replies

4. Shell Programming and Scripting

MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else

Hi Guys, I need to set the value of $7 to zero in case $7 is NULL. I've tried the below command but doesn't work. Any ideas. thanks guys. MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else { print $7}}' ` Harby. (4 Replies)
Discussion started by: hariza
4 Replies

5. Shell Programming and Scripting

to parse (or grep) a number from a datafile and write it to tab limited file

Hi All, I have a folder that contain 100's of subfolders namely: Main folder -> GHFG - Subfoders ->10 100 234 102 345 .. .. ... (2 Replies)
Discussion started by: Lucky Ali
2 Replies

6. Shell Programming and Scripting

Remove tab

Hi, I have a file and it is tab delimited. I have to remove the tab and add space after the string "GET" if tab it exists. (1 Reply)
Discussion started by: sandy1028
1 Replies

7. UNIX for Dummies Questions & Answers

tab delimited file that is not tab delimited.

Hi Forum I have a tab delimited file that opens well in Openoffice calc (excel). But when I perform any operation in command line, it reads the file incorrectly. When I 'save As' the same file in office as tab delimited then it works fine. The file that I think is tab delimited is actually... (8 Replies)
Discussion started by: imlearning
8 Replies

8. Shell Programming and Scripting

Inconsistent `ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`

i have this line of code that looks for the same file if it is currently running and returns the count. `ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l` basically it is assigned to a variable ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies

9. UNIX for Beginners Questions & Answers

Grep solutions tab-delimited file

Hello, I am trying to find a solution to problem that's proving to be beyond my newbie skills. The below files comes from a genetics study. File 1 describes a position on the genome and file 2 does the same but is formatted differently and has more information. I am trying to match all lines in... (5 Replies)
Discussion started by: andmal
5 Replies

10. UNIX for Beginners Questions & Answers

Replace a column in tab delimited file with column in other tab delimited file,based on match

Hello Everyone.. I want to replace the retail col from FileI with cstp1 col from FileP if the strpno matches in both files FileP.txt ... (2 Replies)
Discussion started by: YogeshG
2 Replies
Sort::Key::Multi(3pm)					User Contributed Perl Documentation				     Sort::Key::Multi(3pm)

NAME
Sort::Key::Multi - simple multikey sorts SYNOPSIS
use Sort::Key::Multi qw(sikeysort); my @data = qw(foo0 foo1 bar34 bar0 bar34 bar33 doz4) my @sisorted = sikeysort { /(w+)(d+)/} @data; DESCRIPTION
Sort::Key::Multi creates multikey sorting subroutines and exports them to the caller package. The names of the sorters are of the form "xxxkeysort" or "xxxkeysort_inplace", where "xxx" determines the number and types of the keys as follows: + "i" indicates an integer key, "u" indicates an unsigned integer key, "n" indicates a numeric key, "s" indicates a string key and "l" indicates a string key that obeys locale order configuration. + Type characters can be prefixed by "r" to indicate reverse order. + A number following a type character indicates that the key type has to be repeated as many times (for instance "i3" is equivalent to "iii" and "rs2" is equivalent to "rsrs"). + Underscores ("_") can be freely used between type indicators. For instace: use Key::Sort::Multi qw(iirskeysort i2rskeysort i_i_rs__keysort i2rs_keysort); exports to the caller package fourth identical sorting functions that take two integer keys that are sorted in ascending order and one string key that is sorted in descending order. The generated sorters take as first argument a subroutine that is used to extract the keys from the values which are passed inside $_, for example: my @data = qw(1.3.foo 1.3.bar 2.3.bar 1.4.bar 1.7.foo); my @s = i2rs_keysort { split /./, $_ } @data; SEE ALSO
For a more general multikey sorter generator see Sort::Key::Maker. COPYRIGHT AND LICENSE
Copyright (C) 2006 by Salvador Fandin~o <sfandino@yahoo.com> This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available. perl v5.14.2 2010-04-16 Sort::Key::Multi(3pm)
All times are GMT -4. The time now is 02:08 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy