Avatar of bibi92
bibi92Flag for France

asked on 

generate several csv files when execute shell script

Hello,

an oracle execute in a shell script generates a csv file of several million lines.The size of file is 10GB
How is it possible to split the result in several files?

Thank you

regards 
Shell Scripting

Avatar of undefined
Last Comment
Bill Prew
Avatar of DEMAN-BARCELO (MVP) Thierry
DEMAN-BARCELO (MVP) Thierry
Flag of France image

Hello,

you can find some different solutions on this link : (scripts, tools, ...)

How to split large text file in windows? - Stack Overflow 

That is easier on Linux :) 
Regards,
Avatar of David Favor
David Favor
Flag of United States of America image

Simple solution is to use the split tool.

This tool is installed by default on all Linux Distros.

There are also many Windows ports of the split tool, or you can write your own, which would be fairly straightforward...
Avatar of bibi92
bibi92
Flag of France image

ASKER

Hello

Thank you not in windows in a shell unix script

Best regards 
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Shell Scripting
Shell Scripting

The term 'shell' refers to a general class of text-based command interpreters most often associated with the UNIX and Linux operating systems. Popular shells include Bourne, Debian Almquist (dash), Korn (ksh), Bourne Again (bash) and the C shell family (csh). Some view the DOS 'cmd' prompt as a minimal shell of sorts. It is also possible to install Cygwin on Windows and emulate a full Unix environment with complete shell capabilities. Terminal emulators, such as xterm, GNOME Terminal and OS X Terminal, can be used to access shell.

11K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo