Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
cut 1 file to records
Name: manoon_khwan Date: January 25, 2007 at 21:55:48 Pacific OS: UNIX CPU/Ram: Unkwone Product: Unkwone
Comment:
Hi Can any one please suggest! I need to splite ascii file with no line feed between records to records. Actuall each record have 8 character to tell how many byte for this particular records.First 8 character will present length of records in byte like the sample first records is '00000247'(247 byte) and second is '00000251'.The other information is records is fixed with 80 column.
sample record 00000247||||||1|1||||||||||010526888||100|34447|||1|34827391|||1017||||2||||||||||100||22-01-2007 11:19:53|22-01-2007 11:20:01|||NSwitch||||||20||||||0001,0526888,34827391,100|||0015|034827391||3A366F0F|||000000|0002|||||||||||00000251||||||2|2||||||||||00104996||100|32589|||1|6869944188|||1017||||2||||||||||100||22-01-2007 11:19:33|22-01-2007 11:19:47|||NSwitch ||||||34||||||0001,0104996,869944188,100|||0015|0869944188||0042D77C9|||000000|0002|||||||||||00000250||
Name: nails Date: January 26, 2007 at 08:12:52 Pacific
Reply:
I'm interpreting that your first record should be 247 bytes from where the next record starts at 00000251. It isn't. It's around 228. Is your data correct?
0
Response Number 2
Name: manoon_khwan Date: January 26, 2007 at 20:03:32 Pacific
Reply:
Hi nails Thank for your intention That rigth my sample data was 2 records, first records is 247 byte and second record is 251 byte etc.BTW I edit/delete some part of these data due to my security reason.
Summary: I need to do some housekeeping by moving log files after 1 month to another directory. Are there any unix commands or script to help me? I am totally new to the unix script. Thanks in advance. ...
Summary: Hi, If I understand correctly, you want to convert a columnar textfile to an HTML table. The code below will do that: echo "Type name of file to be converted" read infile outfile=$infile.html echo "&...
Summary: I wrote an ftp shell script that ftp's everything in a particular dir using mput * Instead of blindly ftp'ing every file in the directory, I want to: 1. ftp a file 2. mv that file to a archive folder ...