Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Regarding vi commands for searching something in Log Post 302643315 by vbe on Saturday 19th of May 2012 03:59:10 AM
Old 05-19-2012
Code:
/abcd

press Esc before to be sure you are no more in mod/insert mode...
press n for next occurance
This User Gave Thanks to vbe For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Searching for multiple criteria in log files?

I would like a simple shell script that will allow me to display to screen all unsuccessful su attempts in my sulog file, for the present date. I have been trying several different combinations of commands, but I can't quite get the syntax correct. The mess I have right now (don't laugh) is... (4 Replies)
Discussion started by: Relykk
4 Replies

2. Shell Programming and Scripting

help searching log file with dates

Im tyring to create a script that will show me any lines in a file with todays date and yesterdays, the date format in the file is as follows ----- amqxfdcx.c : 728 -------------------------------------------------------- 07/12/05 09:53:20 AMQ6109: An internal WebSphere MQ error has... (3 Replies)
Discussion started by: csaunders
3 Replies

3. Linux

Searching for gaps in huge (2.2G) log file?

I've got a 2.2 Gig syslog file from our Cisco firewall appliance. The problem is that we've been seeing gaps in the syslog for anywhere from 10 minutes to 2 hours. Currently I've just been using 'less' and paging through the file to see if I can find any noticeable gaps. Obviously this isn't the... (3 Replies)
Discussion started by: deckard
3 Replies

4. Shell Programming and Scripting

Searching log

<ALM_ID>EMS Huawei/T2000 ManagedElement 589865 PTP /rack=1/shelf=1/slot=11/domain=sdh/port=1 CTP /sts3c_au4-j=64@#@1-75@#@UNEQ@#@15<ALM_ID>} Available} {{Additional Information} {} Available} {{Event Type} CommunicationsAlarm Available} {{Managed Object} {{HW_T2000_Sys vtnoc_ns:.hw_t2000}... (8 Replies)
Discussion started by: sridharragilla
8 Replies

5. Shell Programming and Scripting

Searching for a string in a log file with little movement

I have a script which tails a log file and if it finds certain strings in the data tailed it sends an email, basically like this: tail -f logfile > tmp.file & sleep 10 kill $! STRING=$(grep -c "string" tmp.file) && echo $STRING | mailx -s "Warning.." admin@123.com When the string is... (10 Replies)
Discussion started by: Moxy
10 Replies

6. AIX

"/" doesn't work on command prompt for searching commands last typed

When I use "/" to look for a particular command that I typed in the current session it says D02:-/home/user1/temp> /job ksh: /job: not found. D02:-/home/user1/temp> previously it used to fetch all the commands which had job in it.. for example subjob, endjob, joblist etc... may I... (7 Replies)
Discussion started by: meetzap
7 Replies

7. Shell Programming and Scripting

searching a file with a specified text without using conventional file searching commands

without using conventional file searching commands like find etc, is it possible to locate a file if i just know that the file that i'm searching for contains a particular text like "Hello world" or something? (5 Replies)
Discussion started by: arindamlive
5 Replies

8. UNIX for Dummies Questions & Answers

Get line numbers while searching the pattern in log

Hi Folks, I am searching for a pattern in logs through putty by opening the file in vi editor and reaching to the last of the file by $ and then searching the pattern , lets say I have to search the pattern abc then it would be ?abc Now I want line numbers along with the matching pattern to be... (3 Replies)
Discussion started by: SankalpS
3 Replies

9. UNIX for Beginners Questions & Answers

Can I combine below mentioned grep commands using OR (when searching strings having spaces)

Command 1: $script | grep 'Write to ECC( SSID=MARGIN)' Command 2: $script | grep 'is not greater than existing logical processing' The above commands run my script and search the mentioned strings but I do not want to run my script twice. It is increasing run time. Can someone tell me... (3 Replies)
Discussion started by: Tanu
3 Replies

10. Shell Programming and Scripting

Log all the commands input by user at real time in /var/log/messages

Below is my script to log all the command input by any user to /var/log/messages. But I cant achieve the desired output that i want. PLease see below. function log2syslog { declare COMMAND COMMAND=$(fc -ln -0) logger -p local1.notice -t bash -i -- "$USER:$COMMAND" } trap... (12 Replies)
Discussion started by: invinzin21
12 Replies
VBINDIFF(1)						       Christopher J. Madsen						       VBINDIFF(1)

NAME
vbindiff - hexadecimal file display and comparison SYNOPSIS
vbindiff file1 [ file2 ] DESCRIPTION
Visual Binary Diff (VBinDiff) displays files in hexadecimal and ASCII (or EBCDIC). It can also display two files at once, and highlight the differences between them. Unlike diff, it works well with large files (up to 4 GB). Viewing files Movement Keys ------------- Up Move one line (16 bytes) towards the beginning of the file Down Move one line (16 bytes) towards the end of the file Left Move one byte towards the beginning of the file Right Move one byte towards the end of the file PageUp Move one page towards the beginning of the file PageDn Move one page towards the end of the file Home Move to the beginning of the file End Move to the end of the (shorter) file F Search for a string or byte sequence G Move to a specified file position When displaying two files, both files move together. If bytes have been added or removed in one of the files, you can adjust the compari- son by moving just one of the files. To move only the top file, press "T". To move only the bottom file, press "B". To return to moving both files, press the same key again. (The window at the bottom of the screen will indicate when you are moving only one file.) Other Keys ---------- Enter Move to the next difference between the files Space (same as Enter) C Toggle between ASCII and EBCDIC display E Edit currently displayed section of file Esc Exit VBinDiff Q Exit VBinDiff The "Enter" key will advance to the next difference between the files (after those already displayed on the screen). If there are no more differences, it moves to the end. Line editor The line editor is used to enter search strings and file positions. It uses the basic Emacs-style editing keys. Keys ----------------- Ctrl-B, Left Move the cursor one character left Ctrl-F, Right Move the cursor one character right Ctrl-A, Home Move to the beginning of the line Ctrl-E, End Move to the end of the line Ctrl-P, Up Move up in input history Ctrl-N, Down Move down in input history Ctrl-H, Backspace Delete the character to the left Ctrl-D, Delete Delete the character under the cursor Ctrl-K Delete from cursor to end of line Insert Toggle between insert & overstrike mode Enter Finished entering text Esc Abort the operation Editing files You can press "E" to edit the current file. When displaying two files, this edits the one in the top window, unless you are in "move bot- tom" mode. When editing, you can move the cursor around with the arrow keys. Use TAB to switch between entering hexadecimal or ASCII (or EBCDIC) characters. Press the Esc key when you are done. You will be given the choice to save or discard your changes then. If you are displaying two files, you can use the Enter key to copy a byte from the other file into the one you are editing. You cannot scroll through the file while editing, although you can save your changes and then move to a different part of the file. Also, you cannot insert or delete bytes, only change them. OPTIONS
-L, --license Display license information for vbindiff -V, --version Display the version number --help Display help information BUGS
Does not work properly with files over 4 gigabytes. It should be able to view the first 4 gigabytes ok, but the display only has room for 8 hex digits of file position, and the Goto box is also limited to 8 digits. LICENSE
VBinDiff is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. VBinDiff is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with VBinDiff (see the file COPYING); if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. AUTHOR
Christopher J. Madsen <vbindiff .at. cjmweb.net> <http://www.cjmweb.net/vbindiff/> VBinDiff 3.0_beta3 2008-06-25 VBINDIFF(1)
All times are GMT -4. The time now is 05:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy