03-10-2009
VI Editor - question for unix gurus !!
I have created a dummy file -demo.txt
On my machine-A (oslevel-5300-08) I can display the file content in HEX format through VI editor using :%!xxd but on other machine-B (oslevel - 5300-06) , I get error as "sh: xxd: not found."
machine-A:
$ cat demo.txt
Hello World !
I can display the file content in HEX format through VI editor using :%!xxd
$ vi demo.txt
"demo.txt" 1 line, 14 characters
0000000: 4865 6c6c 6f20 576f 726c 6420 210a Hello World !.
machine-B
sh: xxd: not found.
can anyone tell me what is problem and how to fix this?
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I am having a problem here. We are having several problems in regards to hung process's on unix (HPUX box), caused by my RF equipment (Mobile data capture units). these contact the host via a simply telnet session and locks the system?
Is it a timeout problem as the timeout is disabled on the host. (5 Replies)
Discussion started by: Subrosa
5 Replies
2. UNIX for Dummies Questions & Answers
When I use vi, I can type "set nu" in command mode to get line numbers.
How can I get VI to start like that automatically? (2 Replies)
Discussion started by: BG_JrAdmin
2 Replies
3. Shell Programming and Scripting
Unix Gurus,
I have been breaking my head to get this done..seems simple..
I need to read a flat file and based on a key word in a line, i need to skip the previous 3 lines.
eg :
Line1
Line2
Line3
Line4
Line5
Line6
Error
Line7
Line8
Line9
Error
Line10 (4 Replies)
Discussion started by: ravred
4 Replies
4. Shell Programming and Scripting
Suppose I have two files 1.txt and 2.txt.
My aim is to find (Total execution time/Number of executions)
then sort the result as in decreasing order.
Can anyone provide me any shell/perl/awk script or a Command to do that in faster way ?
1.txt :
===============================
Number of... (4 Replies)
Discussion started by: Rahulpict
4 Replies
5. Shell Programming and Scripting
Hello Unix gurus,
My log file has entries in below format :
=================================================================
2009-01-19-01.19.24.816169+660 I8635A1158 LEVEL: Error
PID : 5873782 TID : 1 PROC : aaaa
APPHDL : 0-269
AUTHID : PDBCMPC... (12 Replies)
Discussion started by: Rahulpict
12 Replies
6. Shell Programming and Scripting
Hi,
I have a file monitor.txt as below...
# Times are converted to local time from GMT.
# Local Timezone: EST (GMT -05:00)
PARAM1
{
TIME 30;
CC1 "xxxxx";
CC2 "xxxxx";
CC3 "xxxxx";
CC4 "xxxxx";
}
PARAM2
{
4061 :... (3 Replies)
Discussion started by: zaq1xsw2
3 Replies
7. Shell Programming and Scripting
Hi Folks.
I need change something into file and after all manipulation I need delete only last COMMA into this piece of code ->
GROUP 1 (
'/oralog1/ORAPRD/log01a.dbf',
'/oralog2/ORAPRD/log01b.dbf'
) SIZE 512M,
GROUP 2 (
'/oralog1/ORAPRD/log02a.dbf',
... (12 Replies)
Discussion started by: beckss
12 Replies
8. Shell Programming and Scripting
Hi.,
I need to ask question for expect script.
I have prompt like #
and very long script (orachk).
I added to expect script line
set prompt "(%|#|\\\$) $"
and insert into it also piece of code
----
expect {
timeout {
puts "Running..."
exp_continue
}
... (0 Replies)
Discussion started by: beckss
0 Replies
9. UNIX for Beginners Questions & Answers
in Vi how do I delete part of a line ( leave few words in a line and delete rest of the line ) (6 Replies)
Discussion started by: pitagi
6 Replies
LEARN ABOUT DEBIAN
zziplib-bin
ZZIPLIB-BIN(1) General Commands Manual ZZIPLIB-BIN(1)
NAME
zzcat, zzdir, zzxorcat, zzxordir zzxorcopy - small tools using zziplib
SYNOPSIS
zzcat FILE [...] zzdir DIR [...] zzxorcat [-HEX] FILE [...] zzxordir [-HEX] DIR [...] zzxorcopy [-HEX] FILE OUTFILE
DESCRIPTION
zzcat prints the given files to stdout, so you may want to redirect the output. The FILE can be a normal file or an inflated part of a zip
archive (see OPTIONS).
zzdir prints the content table to stdout of the given DIR or zipfile.
zzxorcat prints the given files to stdout, so you may want to redirect the output. The FILE is an inflated part of a zip archive
obfusctated with a xor value optionally given by the HEX option.
zzxordir prints the content table to stdout of the given DIR or zipfile. The DIR can br an inflated part of a zip archive obfusctated with
a xor value optionally given by the HEX option.
zzxorcopy copies data from FILE to OUTFILE adding simple obfuscation by xor-ing each byte with the HEX value given. Remember that copying
data twice with the same xor-value will result in the original file data.
OPTIONS
zziplib-bin tools accept the following options:
FILE Input filename for reading or part (if supported by tool). Part is written as zipname/filename, e.g.: for accessing README inside
of data.zip you'll specify data/README.
DIR Disk directory, zipfile or inflated part of a zipfile.
-HEX Hex number for xor-ing the zipfile contents. If not supplied all tools that use it take 0x55 as default value for xor-ing. OUTFILE
Output file name for zzxorcopy.
AUTHORS
zziplib was written by Guido Draheim <guidod@gmx.de>.
This manual page was written by Ricardo Mones <mones@aic.uniovi.es>, for the Debian GNU/Linux system (but may be used by others).
June 25, 2004 ZZIPLIB-BIN(1)