12-17-2008
i think your file is made up of fixed-length records ?
if so, you can use head -c and tail -c to extract the specific record.
for exsamples:
suppose the length of record is 512. so, if you want retrieve 10th's record.
you can use
head -c 5120 your-file | tail -c 512 .
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a problem viewing text files in NT(Samba) with files stored on a Unix Box. The unix box is actually my FTP server where various OS's FTP to it. The text file is ftp'd from IBM to the Unix Box and viewed in NT. The problem is that the return carriage does not register in the text file. I... (1 Reply)
Discussion started by: cwong
1 Replies
2. UNIX for Dummies Questions & Answers
How do I view files in a directory? (1 Reply)
Discussion started by: Ania
1 Replies
3. UNIX for Advanced & Expert Users
Hi,
How to view binary files in ASCII format.????????????????
Bye (2 Replies)
Discussion started by: manjunath
2 Replies
4. UNIX for Dummies Questions & Answers
I have backed up a job ona ait tape from unix. i would like to retrieve the data from that tape from a windows pc. i am aware that there may be software available that will allow windows to recognise .tar files. does anyone know where i can source this software or is there any other options (1 Reply)
Discussion started by: mapping
1 Replies
5. UNIX for Dummies Questions & Answers
I have a file (called CORE) that is a dump created by a crashing process. This file, I believe, is in "binary" form, so when I try to use cat, more, or vi on it, it has a bunch of garbage. Is there anything I can use to "read" or view this file just like I might a non-binary file? I am running... (2 Replies)
Discussion started by: dsimpg1
2 Replies
6. UNIX for Dummies Questions & Answers
I think that's what I'm trying to do. This is the problem:
I log onto my comp, Comp1. Then, from the terminal, since my web server is on another comp, I type: xrlogin Comp2, so I log on to that computer. I then navigate to my directory by typing: cd /domain/myDir, so I am in my directory, on the... (3 Replies)
Discussion started by: Djaunl
3 Replies
7. UNIX for Dummies Questions & Answers
Hi all,
Is there a way of viewing a binary file through a UNIX session? Or perhaps viewing information of a binary file through a session?
thanks (2 Replies)
Discussion started by: ocelot
2 Replies
8. UNIX for Dummies Questions & Answers
Is there any way we can view the *.msg files in unix / linux ?
Example cat aa.msg
Or Do we need to do any decryption ?
Kindly provide the solution? (0 Replies)
Discussion started by: kingganesh04
0 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a program that get a directory name from the user, then the program should go through one by one of the file, asking the user whether to move it to another folder. I tried to list the time of the file one by one. But it seems like it doesn't work. The code is as follow:
check()
{... (10 Replies)
Discussion started by: mInGzaiii
10 Replies
10. Shell Programming and Scripting
I have a file name as logfiles_tar.tgz. How can I view the contents of the log files present in logfiles_tar.tgz ? Any help would be really appreciated.
Thanks (3 Replies)
Discussion started by: bobby1015
3 Replies
LEARN ABOUT XFREE86
xzless
XZLESS(1) XZ Utils XZLESS(1)
NAME
xzless, lzless - view xz or lzma compressed (text) files
SYNOPSIS
xzless [file...]
lzless [file...]
DESCRIPTION
xzless is a filter that displays text from compressed files to a terminal. It works on files compressed with xz(1) or lzma(1). If no
files are given, xzless reads from standard input.
xzless uses less(1) to present its output. Unlike xzmore, its choice of pager cannot be altered by setting an environment variable. Com-
mands are based on both more(1) and vi(1) and allow back and forth movement and searching. See the less(1) manual for more information.
The command named lzless is provided for backward compatibility with LZMA Utils.
ENVIRONMENT
LESSMETACHARS
A list of characters special to the shell. Set by xzless unless it is already set in the environment.
LESSOPEN
Set to a command line to invoke the xz(1) decompressor for preprocessing the input files to less(1).
SEE ALSO
less(1), xz(1), xzmore(1), zless(1)
Tukaani 2010-09-27 XZLESS(1)