Sponsored Content
Top Forums Shell Programming and Scripting shell scripting and programmming Post 302492931 by harjinder on Wednesday 2nd of February 2011 12:37:20 AM
Old 02-02-2011
shell scripting and programmming

hi
i have to grep a certain pattern
like i have
Code:
revision 1.15
date 2011-01-20 author : dpriyank
---------------------------------------
revision 1.10
date 2011-01-10 author : sandeepk
----------------------------------------
revision 1.2
date 2011-01-09 author : tanvi
----------------------------------------
revision 1.1
date 2011-01-02 auhtor : jatin

i just need revision 1.1 and the author name.....what should i do

i tried
Code:
grep -o -e "revision 1.1" -e "author" | awk '{print $3}'

it is giving the answer
Code:
revision 1.1 dpriyank
revision 1.1 sandeepk
revision 1.1 jatin

i only want the revison 1.1 and the name of the concernd author
plzzz help

Last edited by Franklin52; 02-02-2011 at 03:46 AM.. Reason: Please use code tags, thank you
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

difference between AIX shell scripting and Unix shell scripting.

please give the difference between AIX shell scripting and Unix shell scripting. (2 Replies)
Discussion started by: haroonec
2 Replies

2. Programming

I am a newb to the C programmming language how do I make it interesting?

I am a newb to the C programmming language how do I make it interesting? (6 Replies)
Discussion started by: yunusabd786
6 Replies

3. Shell Programming and Scripting

Call Shell scripting from Perl Scripting.

Hi How to call a shell scripting through a Perl scripting? Actually I need some value from Shell scripting and passes in the Perl scripting. So how can i do this? (2 Replies)
Discussion started by: anupdas
2 Replies

4. What is on Your Mind?

Shell scripting vs Perl scripting

Hi all, I would like to start developping some good scripting skills. Do you think it would be best to start with shell scripting or Perl? I already got a fundation, really basics, in perl. but I am wondering what would be best to be good at first. Can you please help me determine which one to... (14 Replies)
Discussion started by: Pouchie1
14 Replies

5. Shell Programming and Scripting

shell scripting and programmming

what is much better ????? Perl or Shell Scripting???? (1 Reply)
Discussion started by: harjinder
1 Replies

6. What is on Your Mind?

Shell Scripting vs Perl scripting

Gents, I have been working in a Solaris/Unix environment for about 9 months. I took some linux classses online before getting the job. But, I am not very good at scripting. I want to learn how to script. Do you think that I should start with Shell scripting or Perl? I wanted to continue with... (2 Replies)
Discussion started by: Pouchie1
2 Replies

7. Shell Programming and Scripting

shell scripting and programmming

how to set shell env variable from perl script ?? (1 Reply)
Discussion started by: harjinder
1 Replies

8. Web Development

Perl scripting or shell scripting?

i am going to study any one of the scripting languages mentioned above(shell 0r perl scripting) . Which is having more scope for a fresher? (1 Reply)
Discussion started by: Anna Hussie
1 Replies

9. Shell Programming and Scripting

shell scripting and programmming

hi i was trying the perl scripting with the new perforce and found the various issues which says u need to define a package in it..... wat can be the reason for this ....is there any basic requirement we need to install for running the perl scripts on perforce.... thanks kullu:rolleyes: (0 Replies)
Discussion started by: kullu
0 Replies

10. Shell Programming and Scripting

shell scripting and programmming

hi , i was trying a small script in sed as my main motive is to apppnd a sentence before a line and after a line. e.g this is the sentence which is present in many files and i want to append 2 more sentences in this sentence of mine. tanvi is good girl the result should come out as ... (1 Reply)
Discussion started by: kullu
1 Replies
SVN::Web::Revision(3pm) 				User Contributed Perl Documentation				   SVN::Web::Revision(3pm)

NAME
SVN::Web::Revision - SVN::Web action to view a repository revision SYNOPSIS
In config.yaml actions: ... revision: class: SVN::Web::Revision opts: max_diff_size: 200_000 show_diff: 1 # or 0 ... DESCRIPTION
Shows information about a specific revision in a Subversion repository. CONFIGURATION
The following configuration options may be specified in config.yaml. max_diff_size If showing the diff (see "show_diff"), this determines the maximum size of the diff that will be shown. If the size of the generated diff (in bytes) is larger than this figure then it is not shown. Defaults to 200,000 bytes. show_diff Boolean indicating whether or not a diff of every file that was changed in the revision should be shown. Defaults to 1. OPTIONS
rev The revision to show. If not provided then use the repository's youngest revision. TEMPLATE VARIABLES
context Always "revision". rev The revision that is being shown. youngest_rev The repository's youngest revision. This is useful when constructing "next revision" and "previous revision" links. date The date on which the revision was committed, formatted according to "Time and date formatting" in SVN::Web. author The revision's author. msg The log message associated with this revision. paths A hash of hash refs. Each key is a path name. The value is a further hash ref with the following keys. isdir A boolean value, true if the given path is a directory. diff A SVN::Web::DiffParser object representing the diff. This may be undef, if the generated diff was larger than "max_diff_size" or if "show_diff" is false. diff_size The size of the generated diff (before parsing). max_diff_size The configured maximum diff size. action A single letter indicating the action that carried out on the path. A file was either added "A", modified "M", replaced "R", or deleted "D". copyfrom If the file was copied from another file then this is the path of the source of the copy. copyfromrev If the file was copied from another file then this is the revision of the file that it was copied form. EXCEPTIONS
(revision %1 does not exist) The given revision does not exist in the repository. COPYRIGHT
Copyright 2003-2004 by Chia-liang Kao "<clkao@clkao.org>". Copyright 2005-2007 by Nik Clayton "<nik@FreeBSD.org>". This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See <http://www.perl.com/perl/misc/Artistic.html> perl v5.14.2 2012-06-11 SVN::Web::Revision(3pm)
All times are GMT -4. The time now is 07:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy