473,322 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Output to log file specific number of line and byte

Novice in scripting..need your help pls. I dont know also for this which scripting will be good also. Please point me somewhere I can start with
wanted to generate a log file . log file should have deliminated with "|" and 100 lines each file and each line should be of 400 bytes.

Input File:

Expand|Select|Wrap|Line Numbers
  1. data : 20220101
  2. time : 00:10:10
  3. Pid   : 3500
  4. data : Amazon S3 (Simple Storage Service) is an online file storage 
  5. comment : fill in with "Y" to fit one line as 100 bytes.
Output File:(Max 100 record)
Expand|Select|Wrap|Line Numbers
  1. 20220101|00:10:10|3500|Amazon S3 (Simple Storage Service) is an online file storage|YYYYYYYYY
Feb 19 '22 #1
1 6072
dev7060
633 Expert 512MB
Novice in scripting..need your help pls. I dont know also for this which scripting will be good also. Please point me somewhere I can start with
wanted to generate a log file . log file should have deliminated with "|" and 100 lines each file and each line should be of 400 bytes.

Input File:

Expand|Select|Wrap|Line Numbers
  1. data : 20220101
  2. time : 00:10:10
  3. Pid   : 3500
  4. data : Amazon S3 (Simple Storage Service) is an online file storage 
  5. comment : fill in with "Y" to fit one line as 100 bytes.
Output File:(Max 100 record)

Expand|Select|Wrap|Line Numbers
  1. 20220101|00:10:10|3500|Amazon S3 (Simple Storage Service) is an online file storage|YYYYYYYYY
You may start by writing some code using a desired general-purpose language.
Feb 23 '22 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: tram | last post by:
How do we pass on the step1 output file to step2 of the same job? I would like to know the current job's output file programmetically, instead of hard coding it. Any idaes would be appreciated. ...
2
by: jeff_zhang446 | last post by:
Hi, I try to write some data structure into a file as below and would appreciate if someone can give me some advice here. The output file looks like below: row(1) 100 1 0 0 0 0 0 0 0 ...
1
by: joy_julia446 | last post by:
Hi there, I would like to print my result as below in an output file. I would appreciate if someone can give me some advice. RESULT ClassA,96.678,88.196,8.048,-0.233,456.231,5.890, 1...
3
by: yanakal | last post by:
Hi, I'm using isql to query data and output the same to a flat file. The isql has the following command options ' -h-1 -w500 -n -b -s"" '. In the SQL_CODE, the first two lines before the select...
1
by: TJ | last post by:
I am very new to C# (this is my first real project), therefore please be patient if my question is considered being to newbie. I am modifying a program which takes a text file, does some...
0
by: IKdev | last post by:
Hi all, I have win2003 server and NET 1.1 framework. Created simple ASP .NET app with one page that has button and a label. When trying to run got the CS0016 error (see below). My temp env....
6
by: ivan.perak | last post by:
Hello, im a beginner in VB.NET... The thing i would like to do is as it follows.... I have a text file (list of names, every name to the next line) which is about 350000 lines long. I would...
0
by: jebbyleezer | last post by:
Hello, I have source code that builds correctly, however, after the program terminates the output file produced is empty. Here is my source code: import java.io.*; import java.util.Scanner;...
1
by: dwaterpolo | last post by:
Hi Everyone, I am trying to read two text files swY40p10t3ctw45.col.txt and solution.txt and compare them, the first text file has a bunch of values listed like: y y y y y y y
0
by: pradyumnajpn | last post by:
Hi folks.. Novice in scripting..need your help pls. I dont know also for this which scripting will be good also. Please point me somewhere I can start with wanted to generate a log file . log...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.