10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I need to split the incoming source file in to multiple files using awk.
Split position is (6,13) : 8 positions
All the records that are greater than 20170101 and less than or equal to 20181231 should go in a split file with file name as source... (11 Replies)
Discussion started by: rosebud123
2. Shell Programming and Scripting
First of all I' like to mention that I'm pretty new to unix scripting. :(
I'm trying to split an large xml with awk and rename it based on the values of two attributes.
<element3>33</element3>... (18 Replies)
Discussion started by: f0usk4s
3. Shell Programming and Scripting
I'm pretty new to Shell scripting and I need some help to split a source text file into multiple files. The source has a row with pattern where the file needs to be split, and the pattern row also contains the file name of the destination for that specific piece. Here is an example:
... (2 Replies)
Discussion started by: cul8er
4. Shell Programming and Scripting
I have a file like this:
I need to split that file in two:
If field 4 is equal or higher than 14 that row goes to one file and if it is equal or higher than 15 to another.
Can anyone point me in the... (2 Replies)
Discussion started by: Tr0cken
5. Shell Programming and Scripting
I had a script (2 Replies)
Discussion started by: kmsekhar
6. Shell Programming and Scripting
I have a file like the following:
I would like to split the file into other files using a condition for the contents of column 5.
The condition should be a if the contents of column 5 is in a range... (4 Replies)
Discussion started by: keenboy100
7. Shell Programming and Scripting
I just need to split a file and outputfiles are redirected to gzip file
Input file - A.gz
content of A.gz is
100|sfdds|dffdds|200212|sdfdf... (3 Replies)
Discussion started by: mohan_xunil
8. Shell Programming and Scripting
I have a parent file with 10 million records. I want to split the parent file in to child files.
Each child file contains 5000 records.
I am using the following command for splitting:
split -5000 parentfile.txt childfile.1
It will split the Parent file as... (7 Replies)
Discussion started by: hanu_oracle
9. Shell Programming and Scripting
I did a lot of search on this forum on spiting file; found a lot, but my requirement is a bit different, please guide.
line5:23 (1 Reply)
Discussion started by: uwork72
10. UNIX for Dummies Questions & Answers
I have gone through all the threads in the forum and tested out different things. I am trying to split a 3GB file into multiple files. Some files are even larger than this.
split -l 3000000 filename.txt
This is very slow and it splits the file with 3 million records in each... (10 Replies)
Discussion started by: madhunk
exit(1) User Commands exit(1)
exit, return, goto - shell built-in functions to enable the execution of the shell to advance beyond its sequence of steps
exit [ ( expr )]
exit will cause the calling shell or shell script to exit with the exit status specified by n. If n is omitted the exit status is that of
the last command executed (an EOF will also cause the shell to exit.)
return causes a function to exit with the return value specified by n. If n is omitted, the return status is that of the last command exe-
exit will cause the calling shell or shell script to exit, either with the value of the status variable or with the value specified by the
The goto built-in uses a specified label as a search string amongst commands. The shell rewinds its input as much as possible and searches
for a line of the form label: possibly preceded by space or tab characters. Execution continues after the indicated line. It is an error to
jump to a label that occurs between a while or for built-in command and its corresponding end.
exit will cause the calling shell or shell script to exit with the exit status specified by n. The value will be the least significant 8
bits of the specified status. If n is omitted then the exit status is that of the last command executed. When exit occurs when executing
a trap, the last command refers to the command that executed before the trap was invoked. An end-of-file will also cause the shell to exit
except for a shell which has the ignoreeof option (See set below) turned on.
return causes a shell function or '.' script to return to the invoking script with the return status specified by n. The value will be the
least significant 8 bits of the specified status. If n is omitted then the return status is that of the last command executed. If return
is invoked while not in a function or a '.' script, then it is the same as an exit.
On this man page, ksh(1) commands that are preceded by one or two * (asterisks) are treated specially in the following ways:
1. Variable assignment lists preceding the command remain in effect when the command completes.
2. I/O redirections are processed after variable assignments.
3. Errors cause a script that contains them to abort.
4. Words, following a command preceded by ** that are in the format of a variable assignment, are expanded with the same rules as a vari-
able assignment. This means that tilde substitution is performed after the = sign and word splitting and file name generation are not
See attributes(5) for descriptions of the following attributes:
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWcsu |
break(1), csh(1), ksh(1), sh(1), attributes(5)
SunOS 5.10 15 Apr 1994 exit(1)