<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: cut/paste from logfiles... in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042746#M134697</link>
    <description>I try to stay away from X as much as possible.. let's try it in shell :-)&lt;BR /&gt;&lt;BR /&gt;First, you have to find out the line numbers of both the starting and ending lines you want. If you know the line numbers you can skip the next two paragraphs.&lt;BR /&gt;&lt;BR /&gt;If the file is small enough to open with vi, you can check the line numbers by issuing &lt;ESC&gt;:set number , which will show you line numbers in your file.&lt;BR /&gt;&lt;BR /&gt;Should the file be too big for opening with vi, you can find out the line numbers by issuing this awk command:&lt;BR /&gt;awk '{print NR,$0 }' filename | more&lt;BR /&gt;&lt;BR /&gt;Once you have the numbers of the starting and ending lines, you can 'sed' them out of the file. For example, for lines 48 to 56:&lt;BR /&gt;sed -n -e '48,56p' filename&lt;BR /&gt;&lt;BR /&gt;The output from that command will be your 'interesting' section. Pipe it to mailx or redirect it to a file, it's now yours to play with !&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Wouter&lt;/ESC&gt;</description>
    <pubDate>Wed, 06 Aug 2003 23:26:49 GMT</pubDate>
    <dc:creator>Wouter Jagers</dc:creator>
    <dc:date>2003-08-06T23:26:49Z</dc:date>
    <item>
      <title>cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042733#M134684</link>
      <description>As I am looking at the log files, I want to cut/paste a section of the log file. The menu bars via hummingbird/xwindows where I view the log files, don't seem to have this feature. Is there any way I can cut/paste a section of a log file, or highlight the section I want to print and send it to the printer? I cannot seem to do this and this would be very helpful if I can do this. Any suggestion appreciated.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 06 Aug 2003 12:55:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042733#M134684</guid>
      <dc:creator>James Ellis_1</dc:creator>
      <dc:date>2003-08-06T12:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042734#M134685</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;We use Reflections rather than Hummingbird, but I think it should be basically the same.  The cut and paste is part of CDE, the question is how does your emulation implement it.  For us, it's right mouse click to cut, then right and left mouse click (simultaneously - it takes some getting used to) to paste.&lt;BR /&gt;&lt;BR /&gt;Give that a try.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Aug 2003 12:58:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042734#M134685</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-08-06T12:58:17Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042735#M134686</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I use Hummingbird Exceed and can copy/paste.&lt;BR /&gt;If you open a "dtterm" terminal emulation and i.e. run "cat /var/adm/syslog/syslog.log" you should be able to select lines and copy/paste them ( from the menu bar and from right-click ).&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Zigor</description>
      <pubDate>Wed, 06 Aug 2003 13:03:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042735#M134686</guid>
      <dc:creator>Zigor Buruaga</dc:creator>
      <dc:date>2003-08-06T13:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042736#M134687</link>
      <description>Thanks for your reply. I can highlight the text, and click on the Edit menu bar and click Copy, but pasting this in something like Word does not work. Or if I do the above, and want to send it out to the printer, how do I do this?  I'll try it the way you suggested and see if it works. Thanks.</description>
      <pubDate>Wed, 06 Aug 2003 13:04:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042736#M134687</guid>
      <dc:creator>James Ellis_1</dc:creator>
      <dc:date>2003-08-06T13:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042737#M134688</link>
      <description>This is what works for me:&lt;BR /&gt;&lt;BR /&gt;In a terminal window I highlight the text, go to exceed bar on the very top of the screen, click on it and choose Edit -&amp;gt; Copy X selection -&amp;gt; To Clipboard &lt;BR /&gt;&lt;BR /&gt;Then you can paste it anywhere.&lt;BR /&gt;&lt;BR /&gt;Elena.</description>
      <pubDate>Wed, 06 Aug 2003 13:08:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042737#M134688</guid>
      <dc:creator>Elena Leontieva</dc:creator>
      <dc:date>2003-08-06T13:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042738#M134689</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try opening "Text Editor" in Exceed and pasting on it.&lt;BR /&gt;Then, in the menu bar choose "Print" option ... or save it to a file.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Zigor</description>
      <pubDate>Wed, 06 Aug 2003 13:10:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042738#M134689</guid>
      <dc:creator>Zigor Buruaga</dc:creator>
      <dc:date>2003-08-06T13:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042739#M134690</link>
      <description>You can make this automatic by doing the following:&lt;BR /&gt;&lt;BR /&gt; - From the exceed icon in the taskbar, right-click and select tools&lt;BR /&gt;&lt;BR /&gt; - in the pop-up menu select Configuration. &lt;BR /&gt;&lt;BR /&gt; - in the  new window select X Selection.&lt;BR /&gt;&lt;BR /&gt; - in the new pop-up, make sure PRIMARY is what is selected from the drop box&lt;BR /&gt;&lt;BR /&gt; - check the boxes for Auto Copy and Auto Paste&lt;BR /&gt;&lt;BR /&gt; - Click OK&lt;BR /&gt;&lt;BR /&gt; - Close the Configuration window&lt;BR /&gt;&lt;BR /&gt;You should now be able to highlight the text you want and automatically paste it into any other windows app.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;mark&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Aug 2003 13:20:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042739#M134690</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2003-08-06T13:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042740#M134691</link>
      <description>My mistake, instead of PRIMARY (what it defaults to), select CLIPBOARD.&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Wed, 06 Aug 2003 13:22:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042740#M134691</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2003-08-06T13:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042741#M134692</link>
      <description>if your login in via XDM throught the gui i'm not to sure you can cut and paste to window apps, although you can cut/paste to other windows in CDE.  But, if you login via an rexec process (telnet, rlogin, etc) to bring up a terminal window then you can cut/paste to window apps</description>
      <pubDate>Wed, 06 Aug 2003 13:37:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042741#M134692</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2003-08-06T13:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042742#M134693</link>
      <description>Well, after trying many ways, Elena's way works. However, this does not allow me to cut/paste more than the screen shows. I want to copy all of the errors to a file and save it, and send it to HP. I am having SCSI/lbolt errors and need to get this fixed before I travel next week for two weeks (work related). So for those of you who know how to do it with Elena's way, is there a way to copy more than a screenful? Thanks.</description>
      <pubDate>Wed, 06 Aug 2003 13:42:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042742#M134693</guid>
      <dc:creator>James Ellis_1</dc:creator>
      <dc:date>2003-08-06T13:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042743#M134694</link>
      <description>The version I'm on (6.2.0) will only do one screen at a time.&lt;BR /&gt;&lt;BR /&gt;mark</description>
      <pubDate>Wed, 06 Aug 2003 13:55:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042743#M134694</guid>
      <dc:creator>Mark Greene_1</dc:creator>
      <dc:date>2003-08-06T13:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042744#M134695</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;for this you could work with grep:&lt;BR /&gt;grep 'string' file &amp;gt; new_file&lt;BR /&gt;&lt;BR /&gt;string is what you want, for ex. error&lt;BR /&gt;file is your log-file&lt;BR /&gt;new_file is the new file with all lines with 'error'&lt;BR /&gt;&lt;BR /&gt;If there are lines before or after an error I'm looking for a time stamp which I use as the string to search for.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Volkmar</description>
      <pubDate>Wed, 06 Aug 2003 13:56:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042744#M134695</guid>
      <dc:creator>V. Nyga</dc:creator>
      <dc:date>2003-08-06T13:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042745#M134696</link>
      <description>If there is a way to copy more than a screenfull, I would  like to know how. To mail larger files I ftp them to my PC. :(&lt;BR /&gt;&lt;BR /&gt;Elena.</description>
      <pubDate>Wed, 06 Aug 2003 15:16:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042745#M134696</guid>
      <dc:creator>Elena Leontieva</dc:creator>
      <dc:date>2003-08-06T15:16:35Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042746#M134697</link>
      <description>I try to stay away from X as much as possible.. let's try it in shell :-)&lt;BR /&gt;&lt;BR /&gt;First, you have to find out the line numbers of both the starting and ending lines you want. If you know the line numbers you can skip the next two paragraphs.&lt;BR /&gt;&lt;BR /&gt;If the file is small enough to open with vi, you can check the line numbers by issuing &lt;ESC&gt;:set number , which will show you line numbers in your file.&lt;BR /&gt;&lt;BR /&gt;Should the file be too big for opening with vi, you can find out the line numbers by issuing this awk command:&lt;BR /&gt;awk '{print NR,$0 }' filename | more&lt;BR /&gt;&lt;BR /&gt;Once you have the numbers of the starting and ending lines, you can 'sed' them out of the file. For example, for lines 48 to 56:&lt;BR /&gt;sed -n -e '48,56p' filename&lt;BR /&gt;&lt;BR /&gt;The output from that command will be your 'interesting' section. Pipe it to mailx or redirect it to a file, it's now yours to play with !&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Wouter&lt;/ESC&gt;</description>
      <pubDate>Wed, 06 Aug 2003 23:26:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042746#M134697</guid>
      <dc:creator>Wouter Jagers</dc:creator>
      <dc:date>2003-08-06T23:26:49Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042747#M134698</link>
      <description>However, should you be working on a Mickeysoft workstation, you could easily use any Windows terminal program that maintains a buffer, cat the file, scroll up and use your Windows copy&amp;amp;paste functions.&lt;BR /&gt;&lt;BR /&gt;It's the one thing I use Microsoft software for ;-)&lt;BR /&gt;&lt;BR /&gt;Greets&lt;BR /&gt;Wouter</description>
      <pubDate>Wed, 06 Aug 2003 23:31:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042747#M134698</guid>
      <dc:creator>Wouter Jagers</dc:creator>
      <dc:date>2003-08-06T23:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042748#M134699</link>
      <description>James,&lt;BR /&gt;&lt;BR /&gt;I used Hummingbird quite a while ago and was going to give you Elena's answer - the only way to do it.&lt;BR /&gt;&lt;BR /&gt;I can't remember if I ever did it but I think there is a scroll bar option. Enable the  scroll bar option, do a cat pof the file, scroll to the top of the file and you may be able to high;ight the entire file.&lt;BR /&gt;&lt;BR /&gt;Just a thought.</description>
      <pubDate>Wed, 06 Aug 2003 23:57:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042748#M134699</guid>
      <dc:creator>Ronelle van Niekerk</dc:creator>
      <dc:date>2003-08-06T23:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042749#M134700</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Open the "Text Editor", then click "File" --&amp;gt; "Open" and browse to your log file.&lt;BR /&gt;Once opened, select "Edit" --&amp;gt; "Select All".&lt;BR /&gt;Then, copy and paste following the Elena??s suggestion ( or save to file ).&lt;BR /&gt;&lt;BR /&gt;This works for me ( Exceed v6.0.2 ).&lt;BR /&gt;&lt;BR /&gt;Kind regards,&lt;BR /&gt;Zigor</description>
      <pubDate>Thu, 07 Aug 2003 06:54:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042749#M134700</guid>
      <dc:creator>Zigor Buruaga</dc:creator>
      <dc:date>2003-08-07T06:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042750#M134701</link>
      <description>Zigor,&lt;BR /&gt;&lt;BR /&gt;You are right, this is the way to go if you can not highlight all you need in a terminal window. &lt;BR /&gt;&lt;BR /&gt;Thank you very much for the enlightment!&lt;BR /&gt;&lt;BR /&gt;Elena.</description>
      <pubDate>Thu, 07 Aug 2003 17:17:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042750#M134701</guid>
      <dc:creator>Elena Leontieva</dc:creator>
      <dc:date>2003-08-07T17:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: cut/paste from logfiles...</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042751#M134702</link>
      <description>From a vi "bigot's" perspective:&lt;BR /&gt;&lt;BR /&gt;vi &lt;FILENAME&gt;&lt;BR /&gt;:set num&lt;BR /&gt;/&lt;ERROR or="" unique="" string=""&gt;&lt;BR /&gt;(note start line number)&lt;BR /&gt;G&lt;BR /&gt;(go to bottom of file)&lt;BR /&gt;?&lt;ERROR or="" unique="" string=""&gt;&lt;BR /&gt;(note end line number)&lt;BR /&gt;&lt;BR /&gt;:&lt;STARTLINE&gt;,&lt;ENDLINE&gt; w!&lt;OUTPUT_FILE_NAME&gt;&lt;BR /&gt;&lt;BR /&gt;***&lt;BR /&gt;&lt;BR /&gt;&lt;CTRL-G&gt; also tells you line number of cursor, so that can be used instead of ":set num" (.....5 less keystrokes....)&lt;BR /&gt;&lt;BR /&gt;Enjoy!&lt;/CTRL-G&gt;&lt;/OUTPUT_FILE_NAME&gt;&lt;/ENDLINE&gt;&lt;/STARTLINE&gt;&lt;/ERROR&gt;&lt;/ERROR&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Thu, 07 Aug 2003 18:16:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cut-paste-from-logfiles/m-p/3042751#M134702</guid>
      <dc:creator>Rob_132</dc:creator>
      <dc:date>2003-08-07T18:16:28Z</dc:date>
    </item>
  </channel>
</rss>

