Hi,
If i have a file with xml format, i would like to remove duplicated records and save to a new file. Is it possible...to write script to do it? (8 Replies)
Hello,
I have the following record in a text file, i would like modify some field:
1 - remove all space between ",", but the company name of word will not delete. Anyway, I can use the following statement to do it.
's/^ *//;s/ *, */,/g;s/ *$//' file
2. field #12, I need to modify to time... (11 Replies)
Hi guys,
i have a big file with the following format.This includes header(H),detail(D) and trailer(T) information in the file.My problem is i have to search for the character "6h" at 14 th and 15 th position in all the records .if it is there i have to write all those records into a... (1 Reply)
Dear All
I was wondering if anybody is able to help me with a script I am struggling with. I have to add comments to the "head-lines" (start with >) from an other file according to the ID tag. Only the head lines should be modified.
cat File.txt
>H1_A1_A2_A3_A4_ID1_A5
A:B:C:S:E:E:K... (4 Replies)
Need unix commands to delete records from one file if the same record present in another file...
just like join ... if the record present in both files.. delete from first file or delete the particular record and write the unmatched records to new file..
tried with grep and while... (6 Replies)
i have a '|' delimited file having 4 fields.
now i want to sort the data by combination of first three fields without changing order of 4th field.
input file looks like this:
3245|G|kop|45
1329|A|uty|76
9878|K|wer|12
3245|G|kop|15
1329|A|uty|56
9878|K|wer|2
3245|G|kop|105... (4 Replies)
Hi Everyone,
I am looking for awk command to retrieve only the record number 23 and record number 89 from a unix file? Please let me know what is the awk command for this?
Regards
Rakesh (1 Reply)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
I am looking for awk command to retrieve only the record number 23 and record number 89 from a unix file?... (6 Replies)
Discussion started by: rakeshp
6 Replies
LEARN ABOUT DEBIAN
srec_dec_binary
srec_dec_binary(5) File Formats Manual srec_dec_binary(5)NAME
srec_dec_binary - DEC Binary (XXDP) file format
DESCRIPTION
The DEC Binary (XXDP) format was used on the PDP 11 series machines. This is a binary format, and is not readable or editable with a text
editor. The file consists of records of the form
+-----+--------+---------+------------+----------+
|type | length | address | ...data... | checksum |
The field are defined as follows: +-----+--------+---------+------------+----------+
type Two byte little-endian value. Must always be 1.
length Two byte little-endian value. This is the number of bytes in the data, plus six.
address Two byte little-endian value. This is the load address of the data.
data The data is simple raw bytes. There are (length-6) of them.
checksum
The checcksum is a single byte. It is the negative of the simple summ of all the header and data bytes.
If the record length is exactly 6 (i.e. no data), this is the execution start address record, indicating the transfer address.
In addition there may be NUL padding characters between records. It is common for records to be padded so that they start on even byte
boundaries. In the days of paper tape, it was common for the file to have many leading NULs, to generate blank leader on the tape.
Size Multiplier
In general, raw binary data will expand in sized by approximately 1.03 times when represented with this format.
COPYRIGHT
srec_cat version 1.58
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Peter Miller
The srec_cat program comes with ABSOLUTELY NO WARRANTY; for details use the 'srec_cat -VERSion License' command. This is free software and
you are welcome to redistribute it under certain conditions; for details use the 'srec_cat -VERSion License' command.
AUTHOR
Peter Miller E-Mail: pmiller@opensource.org.au
//* WWW: http://miller.emu.id.au/pmiller/
Reference Manual SRecord srec_dec_binary(5)