Sponsored Content
Full Discussion: Usage of grep '^$1' filename
Top Forums UNIX for Dummies Questions & Answers Usage of grep '^$1' filename Post 302952606 by okkadu on Thursday 20th of August 2015 10:28:11 AM
Old 08-20-2015
Thank you very much, I agre I dont have to go with syntax, however I got confused understandin $1, how is it exactly behaving and this clears my understanding.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

grep usage

grep can filter the text which want to display, but if I want it do not show the text specific in grep, how to do? thk a lot! (2 Replies)
Discussion started by: zp523444
2 Replies

2. Shell Programming and Scripting

FastCopy usage to get filename

Hi All, My requirement is to get all the files with extension *.txt in a particular path in unix from a remote server using FASTCOPY. Let us suppose i am in local server , i need to go to REMOTE server using FASTCOPY and get the names of all the files in remote server with *.txt from a... (0 Replies)
Discussion started by: rawatds
0 Replies

3. UNIX for Dummies Questions & Answers

Grep usage help

Hello, I have a list in .txt format of email addresses and I need to extract just a specific domain ... The list format is like: "123456";"user@domain.com";"email";"john";"name" "123457";"user2@domain.com";"email";"john";"name" "123458";"user3@domain.com";"email";"john";"name"... (7 Replies)
Discussion started by: holyearth
7 Replies

4. UNIX for Dummies Questions & Answers

Grep Usage

Hello, I am trying to use grep to locate multiple uses of the same word in the same line. The word has to be 3+ char, upper or lower or both. I tried this code <code> grep \({3,}\)*\1 i* </code> and i turned out zero results. Any ideas? ____________________________________________... (5 Replies)
Discussion started by: Omega1589
5 Replies

5. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

6. UNIX for Advanced & Expert Users

Grep usage

my file contains xxabced.p dlksfad; dflsdkjflkds flksdjflkdioewf erfsdlkfjsdla; dlkfjsd;lfkj msgdadf.p dslk kdjflksdjfl;asdfasdfjkljl fdsf;jd ppuskldf.p i want the output is xxabced.p msgdadf.p ppuskldf.p Can any one give the command? (1 Reply)
Discussion started by: kingganesh04
1 Replies

7. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

8. Homework & Coursework Questions

grep usage help?

Use and complete the template provided. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: I have to find all the files where the function sequentialInsert is called and the directory is ~cs252/Assignments/commandsAsst/project 2.... (2 Replies)
Discussion started by: jennkat
2 Replies

9. Shell Programming and Scripting

grep for pattern in filename

Hey guys, here is my code: #!/bin/bash filter=('ubb' 'um2' 'uuu' 'uvv' 'uw1' 'uw2' 'uwh') let num=`ls -l | grep 'sk' | wc -l` read -a lines <<< `ls -l | grep 'sk' | awk '{print $8}'` let finum=${#fi} for ((i=1;i<=$num;i++)) do for ((c=4;c<6;c++)) ... (2 Replies)
Discussion started by: jkobori
2 Replies

10. Shell Programming and Scripting

Diff between grep .* file name and grep '.*' filename

Hi, Can anyone let me know what is difference between grep .* foo.c grep '.*' foo.c I am not able to understand what is exact difference. Thanks in advance (2 Replies)
Discussion started by: SasDutta
2 Replies
GO::Model::GraphIterator(3pm)				User Contributed Perl Documentation			     GO::Model::GraphIterator(3pm)

NAME
GO::Model::GraphIterator - Graph iterator SYNOPSIS
$it = $graph->create_iterator; # returns a GO::Model::GraphIterator object while (my $ni = $it->next_node_instance) { $depth = $ni->depth; $term = $ni->term; $reltype = $ni->parent_rel->type; printf "%s %8s Term = %s (%s) // depth=%d ", "----" x $depth, $reltype, $term->name, $term->public_acc, $depth; } DESCRIPTION
SEE ALSO
GO::Model::Graph GO::Model::GraphNodeInstance order Usage - $graphiter->order("breadth"); Returns - string Args - string gets/sets traversal order; breadth or depth; default is depth direction Usage - $graphiter->direction("up"); Returns - string Args - string gets/sets direction; default is "down" compact Usage - $graphiter->compact(1); Returns - bool Args - bool set this if you dont want relationships to be traversed twice; this gives a more compact tree representation of the graph reltype_filter Usage - $graphiter->reltype_filter(qw(is_a part_of)) Returns - array Args - array by default, all relationship types are treated as transitive, and will be traversed by the iterator sometimes you dont want to traverse all relations, even if they are transitive. For example, when answering the query "find all genes expressed in the embryo" you way want subtypes of embryo and parts of the embryo but not things that develop_from the embryo. For more details, see <http://sourceforge.net/mailarchive/forum.php?thread_id=9448679&forum_id=43082> reset_cursor Usage - Returns - Args - next_node Usage - Returns - GO::Model::Term Args - next_node_instance Usage - Returns - GO::Model::GraphNodeInstance Args - flatten Usage - Returns - Args - _sortby_pos_in_list Careful, this sort function work on Term objects, not GraphNodeInstance objects. Comparison is done by the name of the term. perl v5.14.2 2013-02-07 GO::Model::GraphIterator(3pm)
All times are GMT -4. The time now is 03:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy