473,608 Members | 2,077 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Output to log file specific number of line and byte

4 New Member
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 6084
dev7060
644 Recognized Expert Contributor
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
8138
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. Thanks
2
2075
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 row(2) 150 5 0 0 0 0 0 0 0 2 row(3) 160 7 0 0 0 0 0 0 0 3
1
1501
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 11.371,-0.906,-0.025,9999.888,76.888,0.001,3456.899 2 20.422,-20.979,0.422,4567.987,987.987,0.985,0.445, 3 -0.044,0.905,1.335,890.987,34.567,32.235,76.874; 4
3
8589
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 statement are use dbname set nocount on go When I run this, an additional blank line is put into the output file. Actually, there are two lines after the last result set in the output file. This file is being fed into another system and the...
1
10828
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 formatting then outputs the resulting file. What I am trying to do is have the program make as many files as is needed, each limited to a given file size (in this case 240KB).
0
4275
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. variables are fine and NETWORK SERVICE has full access to ASP .NET temp folder. Please help, Thank you! IK
6
24143
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 like to split it and create a new file at every lets say 20000 lines... so, the directory output would have to be something like this:
0
1800
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; public class project { public static void main( String args ) {
1
2664
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
809
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 file should have deliminated with "|" and 100 lines each file and each line should be of 400 bytes. data : 20220101 time : 00:10:10 Pid : 3500 data : Amazon S3 (Simple Storage Service) is an online file storage
0
8063
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8003
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8478
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8152
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8341
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
3962
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4025
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2474
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
1331
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.