Sponsored Content
Full Discussion: Reverse hexdump without xxd
Top Forums Shell Programming and Scripting Reverse hexdump without xxd Post 302404508 by LessNux on Tuesday 16th of March 2010 05:13:12 PM
Old 03-16-2010
Question Reverse hexdump without xxd

The "hexdump" command cannot perform reverse operation. On the other hand, the "xxd" command with -r option performs reverse hexdump, while the "xxd" command without -r performs the (forward) hexdump. An example of hexdump is to convert ABCD into 41 42 43 44. An example of reverse hexdump is to convert 41 42 43 44 back into ABCD.

The command "xxd" comes with Mac OS X. However, Linux may not come with "xxd". On a Linux that does not come with "xxd", how can reverse hexdump be achieved? Perhaps, vi editor?

Thanks in advance.
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Reverse *

when I do $ ls z* List of all files begining with 'z'. But what if I want to do a reverse lookup. Just for interest sake ;) $ ls ztr should be same as $ ls ztr* $ ls zt* $ ls z* (2 Replies)
Discussion started by: azmathshaikh
2 Replies

2. Shell Programming and Scripting

reverse of basename

Hi, Can someone let me know how to find the reverse of the basename i.e i have /apps/tiv/pmon/xxxx.dat and I want /apps/tiv/pmon/ Thanks (7 Replies)
Discussion started by: braindrain
7 Replies

3. Shell Programming and Scripting

Reverse FTP

Hi Everybody, I want to write a script in unix which will automatically FTP a .txt file from my client machine D: drive(Windows) That is I want to FTP a file from my PC to UNIX box but this should be done from UNIX box by a shell script. (i.e. I will invoke the script in UNIX and FTP will be... (4 Replies)
Discussion started by: ganesh123
4 Replies

4. Shell Programming and Scripting

reverse sort

Hello, How do i sort a csv file. i should be sorting column1(varchar),column2*(varchar) in ascending and column4 in descending order(numeric datatype). I tried few combinations of sort, but doesn't seem to be getting the right result. sort -t "," -k 1 -k 2 -k 4nr file any help is... (3 Replies)
Discussion started by: markjason
3 Replies

5. Shell Programming and Scripting

Reverse lookup

hey guys, can anybody help me out here on the following: grep '^\{1,3\}\.\{1,3\}\.\{1,3\}\.\{1,3\}$' ravi.txt mary.txt lisa.txt https://www.unix.com/images/misc/progress.gif i.e what i did was found ip addreses from different files and then i want... (1 Reply)
Discussion started by: ravis83
1 Replies

6. Shell Programming and Scripting

Puzzled with hexdump, hd and ln

How to create a symbolic link to a command with certain argument? When I man hexdump, it is said in the man page that "-C Canonical hex+ASCII display...Calling the command hd implies this option". Actually it is. hd equals to hexdump -C. And then I examined the ln command but find it is a... (5 Replies)
Discussion started by: vistastar
5 Replies

7. Shell Programming and Scripting

reverse matching

Hello guys How can I use egrep to match word1 but not word2...word1. What I mean suppose that I have the following text, and my word1=pizza and word2=eat I hate to eat pizza because I ma eating it each day Pizza is good I like vegetarian and Italian Pizza eating healthy food is... (7 Replies)
Discussion started by: fdc2suxs
7 Replies

8. Shell Programming and Scripting

How to perform a hexdump using dd from start point to end point?

hi, I would like to ask or is it possible to dump a hex using dd from starting point to end point just like the "xxd -s 512 -l 512 <bin file>" I know the redirect hexdump -C but i can't figure it out the combination options of dd. Hope someone can share their knowledge.. Thanks in... (3 Replies)
Discussion started by: jao_madn
3 Replies

9. Shell Programming and Scripting

Edit file hexadecimal with xxd

Hi all: I need edit a hexadecimal file. for example: 000d530: 0000 0000 0000 0000 0000 0000 493a 004f ............I:.O 000d540: 6374 2032 3820 3230 3135 2031 393a 3234 ct 28 2015 19:24 I need to cut the chain(black) and corresponding to hexadecimal from the chain at the end of file... (5 Replies)
Discussion started by: Rodrigo0461
5 Replies
CD-READ(1)							   User Commands							CD-READ(1)

NAME
cd-read - reads Information from a CD or CD-image SYNOPSIS
cd-read [OPTION...] DESCRIPTION
-a, --access-mode=STRING Set CD control access mode -m, --mode=MODE-TYPE set CD-ROM read mode (audio, auto, m1f1, m1f2, m2mf1, m2f2) -d, --debug=INT Set debugging to LEVEL -x, --hexdump Show output as a hex dump. The default is a hex dump when output goes to stdout and no hex dump when output is to a file. -j, --just-hex Don't display printable chars on hex dump. The default is print chars too. --no-header Don't display header and copyright (for regression testing) --no-hexdump Don't show output as a hex dump. -s, --start=INT Set LBA to start reading from -e, --end=INT Set LBA to end reading from -n, --number=INT Set number of sectors to read -b, --bin-file[=FILE] set "bin" CD-ROM disk image file as source -c, --cue-file[=FILE] set "cue" CD-ROM disk image file as source -i, --input[=FILE] set source and determine if "bin" image or device -C, --cdrom-device[=DEVICE] set CD-ROM device as source -N, --nrg-file[=FILE] set Nero CD-ROM disk image file as source -t, --toc-file[=FILE] set "TOC" CD-ROM disk image file as source -o, --output-file=FILE Output blocks to file rather than give a hexdump. -V, --version display version and copyright information and exit Help options: -?, --help Show this help message --usage Display brief usage message AUTHOR
Rocky Bernstein <rocky@gnu.org> COPYRIGHT
Copyright (C) 2003-2005, 2007-2008, 2011-2013 R. Bernstein This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU- LAR PURPOSE. Have driver: GNU/Linux ioctl and MMC driver Have driver: cdrdao (TOC) disk image driver Have driver: bin/cuesheet disk image driver Have driver: Nero NRG disk image driver Default CD-ROM device: /dev/sr0 SEE ALSO
cd-info(1) for information about a CD; cd-drive(1) for CD-ROM characteristics; iso-read(1) for information about an ISO-9660 image. cd-read version 0.92 December 2013 CD-READ(1)
All times are GMT -4. The time now is 12:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy