Sponsored Content
Top Forums Shell Programming and Scripting shell scripting and programmming Post 302492957 by michaelrozar17 on Wednesday 2nd of February 2011 02:31:59 AM
Old 02-02-2011
Since your recent post's input file is different from the original one you get like that..You could try the below, formatted according to the post#5's input file
Code:
sed -n '/revision 1.1$/N;s/\(.*\)\n.*\(auth.*\); .*/\1 \2/p' inputfile > outfile

This User Gave Thanks to michaelrozar17 For This Post:
 

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::SVNLook(3pm)					User Contributed Perl Documentation					 SVN::SVNLook(3pm)

NAME
SVN::SVNLook - Perl wrapper to the svnlook command. SYNOPSIS
use SVN::SVNLook; my $revision = 1; my $svnlook = SVN::SVNLook->new(repo => 'repo url', cmd => 'path to svn look'); my ($author,$date,$logmessage) = $svnlook->info(revision => $revision); print "Author $author "; print "Date $date "; print "LogMessage $logmessage "; DESCRIPTION
SVN::SVNLook runs the command line client. This module was created to make adding hooks script easier to manipulate. METHODs youngest youngest (); Perform the youngest command on the repository. Returns the revision number of the most recent revision as a scalar. info info (revision=>$revision); Perform the info command, for a given revision or transaction using named parameters, or a single parameter will be assumed to mean revision for backwards compatibility. The information returned is an array containing author, date, and log message. If no $revision is specified, info for the youngest revision is returned. author author (revision=>$revision); Perform the author command, for a given revision or transaction using named parameters or a single parameter will be assumed to mean revision for backwards compatibility. The information returned is the author message. If no $revision or transaction is specified, author for the youngest revision is returned. dirschanged dirschanged (revision=>$revision) Performs the dirs-changed command, for a given revision or transaction using named parameters, or a single parameter will be assumed to mean revision for backwards compatibility. This method returns a boolean and an array reference. fileschanged fileschanged (revision=>$revision) Performs the changed command, for a given revision or transaction using named parameters or a single parameter will be assumed to mean revision for backwards compatibility this method returns 3 array references added, deleted and modified. diff diff (revision=>$revision) Performs the diff command, for a given revision or transaction using named parameters or a single parameter will be assumed to mean revision for backwards compatability this method returns a hash reference, with each file being the key and value being the diff info. AUTHOR
Salvatore E ScottoDiLuzio, <sal.scotto@gmail.com> Contributions by Kevin Semande COPYRIGHT
Copyright 2005 Salvatore E. ScottoDiLuzio. All Rights Reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.10.1 2009-12-10 SVN::SVNLook(3pm)
All times are GMT -4. The time now is 07:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy