Sponsored Content
Full Discussion: Split A File Into 2 Files
Top Forums Shell Programming and Scripting Split A File Into 2 Files Post 302143847 by dummy_needhelp on Sunday 4th of November 2007 06:36:34 PM
Old 11-04-2007
Sorry For Asking You So Detailed Message

I am very sorry as i am new to scripting. Can you please help me with the starting of the code.
Like the whole script file so that based on that i can execute and understand the scripting. Sorry for asking you so detailed answer. And please asssume my input filename is input.dat. Based on this please help me in a neat script file.

Thanks in advance
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Split a file into 2 or more files

Dear friends: I have a datafile contains 1 to 40 lines or i can be varied between 1 to 40. I want to split the datafile into smaller files: if the datafile has 40 lines or more, file1 contains line 1 to 12 file2 contains line 13 to 25 file3 contains line 26 to 28 file4 contains line 29... (4 Replies)
Discussion started by: bobo
4 Replies

2. UNIX for Dummies Questions & Answers

split a file into a specified number of files

I have been googling on the 'split' unix command to see if it can split a large file into 'n' number of files. Can anyone spare an example or a code snippet? Thanks, - CB (2 Replies)
Discussion started by: ChicagoBlues
2 Replies

3. Shell Programming and Scripting

split a file into many files

Hello, Here is another one. The file type is almost same, many lines and many fields. What I need to do is to extract each line of old file and make it a new file, and in the new file, the field1 will be file name and the rest of field will be transpose to line. Say, 1, field1 field2 ... (8 Replies)
Discussion started by: ssshen
8 Replies

4. Shell Programming and Scripting

How to split a file into exactly two files by timestamp?

2009-10-29 03:39:11,720 INFO - Optimize cache for minimal puts: disabled 2009-10-29 03:39:11,720 INFO - Structured second-level cache entries: disabled 2009-10-29 03:39:22,687 WARN - Problem starting service jboss.web.deployment:war=dt-sp-fabric-delegate-ws-war-3.5.0.war,id=1483428821... (3 Replies)
Discussion started by: maheshshinde
3 Replies

5. UNIX for Advanced & Expert Users

Split a big file into two others files

Hello, i have a very big file that has more then 80 MBytes (100MBytes). So with my CVS Application I cannot commit this file (too Big) because it must have < 80 MBytes. How can I split this file into two others files, i think the AIX Unix command : split -b can do that, buit how is the right... (2 Replies)
Discussion started by: steiner
2 Replies

6. Shell Programming and Scripting

How to split a data file into separate files with the file names depending upon a column's value?

Hi, I have a data file xyz.dat similar to the one given below, 2345|98|809||x|969|0 2345|98|809||y|0|537 2345|97|809||x|544|0 2345|97|809||y|0|651 9685|98|809||x|321|0 9685|98|809||y|0|357 9685|98|709||x|687|0 9685|98|709||y|0|234 2315|98|809||x|564|0 2315|98|809||y|0|537... (2 Replies)
Discussion started by: nithins007
2 Replies

7. Shell Programming and Scripting

Split a file into multiple files based on first two digits of file.

Hi , I do have a fixedwidth flatfile that has data for 10 different datasets each identified by the first two digits in the flatfile. 01 in the first two digit position refers to Set A 02 in the first two digit position refers to Set B and so on I want to genrate 10 different files from my... (6 Replies)
Discussion started by: okkadu
6 Replies

8. Shell Programming and Scripting

How to split file into multiple files using awk based on 1 field in the file?

Good day all I need some helps, say that I have data like below, each field separated by a tab DATE NAME ADDRESS 15/7/2012 LX a.b.c 15/7/2012 LX1 a.b.c 16/7/2012 AB a.b.c 16/7/2012 AB2 a.b.c 15/7/2012 LX2 a.b.c... (2 Replies)
Discussion started by: alexyyw
2 Replies

9. Shell Programming and Scripting

Split file into 20000 files

I want to split one files (>200000000 lines) into 20000 files, when I use spilt -l 23360 -d file it shows output file suffixes exhausted, seems the maximum numbers is 100.....how to solve it? (1 Reply)
Discussion started by: wanliushao
1 Replies

10. Shell Programming and Scripting

Split a file into 10 different files

OS : RHEL 6.7 Shell : bash I have a text file with 5.97 million lines. I want to split this big file into 12 different files (in sequential order) so that each file will contain roughly 500K lines. I tried the following awk command after googling. But, it just created 2 files... (5 Replies)
Discussion started by: omega3
5 Replies
QAxScriptEngine(3qt)													      QAxScriptEngine(3qt)

NAME
QAxScriptEngine - Wrapper around a script engine SYNOPSIS
This class is part of the Qt ActiveQt Extension. #include <qaxscript.h> Inherits QAxObject. Public Members enum State { Uninitialized = 0, Initialized = 5, Started = 1, Connected = 2, Disconnected = 3, Closed = 4 } QAxScriptEngine ( const QString & language, QAxScript * script ) ~QAxScriptEngine () bool isValid () const bool hasIntrospection () const QString scriptLanguage () const State state () const void setState ( State st ) void addItem ( const QString & name ) long queryInterface ( const QUuid & uuid, void ** iface ) const DESCRIPTION
This class is defined in the Qt ActiveQt Extension, which can be found in the qt/extensions directory. It is not included in the main Qt API. The QAxScriptEngine class provides a wrapper around a script engine. Every instance of the QAxScriptEngine class represents an interpreter for script code in a particular scripting language. The class is usually not used directly. The QAxScript and QAxScriptManager classes provide convenient functions to handle and call script code. Direct access to the script engine is provided through queryInterface(). Warning: This class is not available with the bcc5.5 and MingW compilers. Member Type Documentation QAxScriptEngine::State The State enumeration defines the different states a script engine can be in. QAxScriptEngine::Uninitialized - The script has been created, but not yet initialized QAxScriptEngine::Initialized - The script has been initialized, but is not running QAxScriptEngine::Started - The script can execute code, but does not yet handle events QAxScriptEngine::Connected - The script can execute code and is connected so that it can handle events QAxScriptEngine::Disconnected - The script is loaded, but is not connected to event sources QAxScriptEngine::Closed - The script has been closed. MEMBER FUNCTION DOCUMENTATION
QAxScriptEngine::QAxScriptEngine ( const QString & language, QAxScript * script ) Constructs a QAxScriptEngine object interpreting script code in language provided by the code in script. This is usually done by the QAxScript class when loading a script. Instances of QAxScriptEngine should always have both a language and a script. QAxScriptEngine::~QAxScriptEngine () Destroys the QAxScriptEngine object, releasing all allocated resources. void QAxScriptEngine::addItem ( const QString & name ) Registers an item with the script engine. Script code can refer to this item using name. bool QAxScriptEngine::hasIntrospection () const Returns TRUE if the script engine supports introspection; otherwise returns FALSE. bool QAxScriptEngine::isValid () const Returns TRUE if the script engine has been initialized correctly; otherwise returns FALSE. long QAxScriptEngine::queryInterface ( const QUuid & uuid, void ** iface ) const Requests the interface uuid from the script engine object and sets the value of iface to the provided interface, or to 0 if the requested interface could not be provided. Returns the result of the QueryInterface implementation of the COM object. QString QAxScriptEngine::scriptLanguage () const Returns the scripting language, for example "VBScript", or "JScript". void QAxScriptEngine::setState ( State st ) Sets the state of the script engine to st. Calling this function is usually not necessary. State QAxScriptEngine::state () const Returns the state of the script engine. SEE ALSO
http://doc.trolltech.com/qaxscriptengine.html http://www.trolltech.com/faq/tech.html COPYRIGHT
Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. AUTHOR
Generated automatically from the source code. BUGS
If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qaxscriptengine.3qt) and the Qt version (3.3.8). Trolltech AS 2 February 2007 QAxScriptEngine(3qt)
All times are GMT -4. The time now is 04:53 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy