Sponsored Content
Full Discussion: Search command on vi editor
Top Forums UNIX for Dummies Questions & Answers Search command on vi editor Post 302104153 by *Jess* on Tuesday 23rd of January 2007 07:47:43 PM
Old 01-23-2007
Search command on vi editor

Hi all,

Here is an example, I would wan to search for all string consists of IMP but not IMP-00015. Values other than 00015 is fine, is there anyone knows how to do that?

Thanks.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

vi editor - ex Command help

:1,10 s/yes/no/g this ex command will substitute yes with no everytime it is found within the first 10 lines of the file. :s/yes/no/g this ex command will substitute yes with no everytime it is found for the line where the cursor is on my question is how could this substitution be... (4 Replies)
Discussion started by: theDirtiest
4 Replies

2. UNIX for Dummies Questions & Answers

editor command

I want to copy lines say from 2-5 to line after 20 in vi editor. Can I achieve this in a single command in vi editor. Thanks. (2 Replies)
Discussion started by: tselvanin
2 Replies

3. UNIX for Dummies Questions & Answers

vim as command line editor

Here is my problem, I manage a SunOs 5.8 Server, vi is the default command line editor, I have a line on each users .kshrc profile as follows: export EDITOR=/bin/vi I want to use vim as the command line editor, the below line doesn't work export EDITOR=/bin/vim Thank you (1 Reply)
Discussion started by: tony3101
1 Replies

4. Shell Programming and Scripting

set EDITOR=vi -> default editor not setting for cron tab

Hi All, I am running a script , working very fine on cmd prompt. The problem is that when I open do crontab -e even after setting editor to vi by set EDITOR=vi it does not open a vi editor , rather it do as below..... ///////////////////////////////////////////////////// $ set... (6 Replies)
Discussion started by: aarora_98
6 Replies

5. UNIX for Dummies Questions & Answers

Files search in vi editor

Hi All, Apologise if I am in the wrong forum, I am trying to view all files one by one in the vi editor that contain a pattern. This command work but not sure where to pipe it to use vi editor find . -name "pattern" -print | xargs -ltr tnx in advance (1 Reply)
Discussion started by: lingosa
1 Replies

6. Shell Programming and Scripting

Easy ex editor command

I've this command in a script which edits the file ... bash$ cat temp_file.txt THREAD #2 2 Running bash$ (echo "s/THREAD #2/d"; echo 'wq') | ex -s temp_file.txt bash$ cat temp_file.txt THREAD #2 2 Running If i've more than 1 line it easily deletes the line, but if it is the last line... (3 Replies)
Discussion started by: prash184u
3 Replies

7. Shell Programming and Scripting

How to search number of occurrences of a particular string in a file through vi editor?

i have one file, i am doing 'vi Filename' now i want to search for particular string and i want to know how many times that string occurs in whole file (5 Replies)
Discussion started by: sheelsadan
5 Replies

8. UNIX for Dummies Questions & Answers

Command to quit from vi editor

Hi Folks I have opened a log file in Vi editor vi abc.logPlease advise me how to finally quit from Vi editor, which command is there..! Is it :q<Enter> (1 Reply)
Discussion started by: KAREENA18
1 Replies

9. UNIX for Beginners Questions & Answers

Accessing Isql command via VI editor

Hi Guru's, I'm new at Unix. I am tasked to monitor the filesystem utilization on OS level (Unix) and DB (Sybase) for multiple systems. I am thinking to use vi editor and make a file, execute that file and all the file systems I need to monitor will be be shown. My script inside vi goes in... (8 Replies)
Discussion started by: Xworks
8 Replies

10. Shell Programming and Scripting

Help with regular command creation for editor vi

Hi, I need help. I need to build command for line command editor vi. I want to take the whole string and assemble it in a regular expression. He then folded into another shape. Can anyone help me? (4 Replies)
Discussion started by: Pabloss
4 Replies
EBook::Tools::LZSS(3pm) 				User Contributed Perl Documentation				   EBook::Tools::LZSS(3pm)

NAME
EBook::Tools::LZSS - Lempel-Ziv-Storer-Szymanski compression and decompression SYNOPSIS
use EBook::Tools::LZSS; my $lzss = EBook::Tools::LZSS->new(lengthbits => 3, offsetbits => 14, windowinit => 'the man'); my $textref = $lzss->uncompress($data); CONSTRUCTOR AND INITIALIZATION
"new(%args)" Instantiates a new EBook::Tools::LZSS object. Arguments All arguments are optional, but must be identical between compression and decompression for the result to be valid. o "lengthbits" The number of bits used to encode the length of a LZSS reference. If not specified defaults to 4 bits. The eBookwise .IMP format typically compresses with 3 length bits. Note that the actual length of the LZSS reference in bytes is greater than the value stored in the length bits. The actual number of bytes returned is the decoded length bits value plus "maxuncoded" plus 1, o "offsetbits" The number of bits used to encode the offset to a LZSS reference. This also determines the size of the sliding window of reference data. If not specified, it defaults to 12 bits (4096-byte window). The eBookwise .IMP format typically compresses with 14 offset bits (16384-byte window). o "windowinit" A string used to initalize the sliding window. If specified, this string MUST be the same length as the window size, or the subroutine will croak. If not specified, the window will be initialized with spaces. o "windowstart" The first byte position in the window that will be overwritten by decoded text. If not specified, defaults to 0. o "maxuncoded" The maximum number of uncoded bytes (?). This currently isn't used for that purpose, but determines the actual length of a LZSS reference. o "screwybits" If set to true and the number of offset bits is greater than 8, then the offset bits will be read first in a chunk of 8 for the least significant bits, and then the remaining bits will be read and use as the most significant bits. This seems to be necessary for compatibility with Michael Dipperstein's LZSS C compression library but does not hold true for IMP e-book LZSS decompression. o "verbose" If set to true, compression and uncompression will provide additional status feedback on STDOUT. METHODS
"uncompress($dataref)" Takes a reference to a compressed data string, uncompresses the data string and returns a reference to the uncompressed string. BUGS AND LIMITATIONS
o Compression not yet implemented. o The LZSS algorithm isn't documented in the POD. o Once compression is implemented and the algorithm is documented, this module is a good candidate for being forked off into its own project. Relying on it to keep its current name may be unwise. AUTHOR
Zed Pobre <zed@debian.org> The design of this module was based on the C LZSS library by Michael Dipperstein, version 0.5.2, at http://michael.dipperstein.com/lzss/ LICENSE AND COPYRIGHT
Copyright 2008 Zed Pobre Licensed to the public under the terms of the GNU GPL, version 2. perl v5.10.1 2012-01-05 EBook::Tools::LZSS(3pm)
All times are GMT -4. The time now is 06:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy