Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Regex to extract certain lines only from command output/text file.

by perl514 (Pilgrim)
on Mar 07, 2013 at 17:58 UTC ( #1022282=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
     7 hostname12 Generic-legacy 10000000AB210ACF6 ---
                                 10000000AB210ACF4 2:5:4
                                 5001438002A30048 2:3:3
                                 5001438002A30048 2:5:2
                                 5001438002A30048 2:5:2
  2. or download this
    7 hostname12 Generic-legacy 10000000AB210ACF6 ---
                                 10000000AB210ACF4 2:5:4
                                 10000000AB210ACF4 2:3:4
                                 10000000AB210ACF6 3:5:4
  3. or download this
    23 srvernam   Generic-legacy 5001438002A3004A 3:3:3
                                 5001438002A3004A ---
                                 5001438002A30048 2:5:2
                                 5001438002A30048 2:5:2
  4. or download this
    21 HOSTNAME   Generic                       
  5. or download this
    9 hostname13 Generic        10000000AB2A3006A 3:5:2
                                 10000000AB2A30068 2:5:2
  6. or download this
    use warnings;
  7. or download this
    use Learning::Perl;
    use Beginning::Perl::Ovid;
    print "Awesome Books";

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1022282]
Approved by Corion
Front-paged by 2teez
[Corion]: Do you want to launch a script and keep the command prompt/console window open?
[Corion]: Do you want to wait for a key press before closing the window?
[LanX]: I want the command line in the history
[tye]: -Mouse
[Corion]: Option a) would mean launching cmd.exe /k c:\path\to\ batchfile- launching-perl- script.cmd. Option b) would be to add pause as the last line of said batch file.
[LanX]: First day after holidays ... and already stressed by the fact that colleagues changed stuff without communication ... apparently I'm the only one trying to fight entropy
[Corion]: LanX: The command is always in the history if you typed it in before. If you didn't type the command into the command line, it will not be there. I think there is doskey which can stuff command lines into the history
LanX damns the cult of CB ;-)
[LanX]: please forget my last 3 posts

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (13)
As of 2017-03-27 15:46 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.