Urgent..!!Split command

 
Thread Tools Search this Thread
Top Forums UNIX for Beginners Questions & Answers Urgent..!!Split command
# 1  
Old 09-06-2016
Urgent..!!Split command

Hi All,

I want to split the file after size gets above 100kb.
So I am using below command.
Code:
split -b 100kb File.txt Test

But after first file, my record is breaking as in middle of the record, size of file is getting above 100kb. So after splitting half record is in one file and half record in another file.
I want whole record in one file.
Please suggest.

Last edited by Amey Dixit; 09-06-2016 at 05:12 AM.. Reason: coed tags please
# 2  
Old 09-06-2016
Everyone at the UNIX and Linux Forums gives their best effort to reply to all questions in a timely manner. For this reason, posting questions with subjects like "Urgent!" or "Emergency" and demanding a fast reply are not permitted in the regular forums.

For members who want a higher visibility to their questions, we suggest you post in the Emergency UNIX and Linux Support Forum. This forum is given a higher priority than our regular forums.

Posting a new question in the Emergency UNIX and Linux Support Forum requires forum Bits. We monitor this forum to help people with emergencies, but we do not not guarantee response time or best answers. However, we will treat your post with a higher priority and give our best efforts to help you.

If you have posted a question in the regular forum with a subject "Urgent" "Emergency" or similar idea, we will, more-than-likely, close your thread and post this reply, redirecting you to the proper forum.

Of course, you can always post a descriptive subject text, remove words like "Urgent" etc. (from your subject and post) and post in the regular forums at any time.


Thank you.

The UNIX and Linux Forums
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Help with Split Command

Hi All, I have a txt file which I would like to partition into 2 separate output files. I would like to partition the odd or even groups of 4 lines from the txt file. So I would like lines 1-4 to go to file1, and lines 5-8 to go to file2, and so on until the whole txt file is divided into two... (1 Reply)
Discussion started by: landrjos
1 Replies

2. UNIX for Dummies Questions & Answers

Split command

Hi I have a sequence which looks like this # PH01000000 PH01000000G0240 P.he_genemodel_v1.0 CDS 120721 121773 . - . ID=PH01000000G0240.CDS;Parent=PH01000000G0240 PH01000001G0190 P.he_genemodel_v1.0 mRA 136867 137309 . - . ID=PH01000001G0190.mRNA;Parent=PH01000001G0190... (7 Replies)
Discussion started by: siya@
7 Replies

3. UNIX for Advanced & Expert Users

split command

./myapp | split -b 10m -d -a 1 - "myappLog" here split command is reading the input from the output of myapp and it will write the text in to file where in each file size is 10MB and it will create upto 10 files. I have observed split is flushing the data for every 4096 bytes. if my... (7 Replies)
Discussion started by: arv600
7 Replies

4. UNIX for Advanced & Expert Users

very urgent---mailx command

plsssssss help me i m getting maid. i fired below commands while do sso=501688351 echo "Hi ," >> file_send; mailx -c manoj.dahiya1@ge.com -s " mail checking" $sso@mail.ad.ge.com < file_send cas=num done now i am getting mails every seconds... plsssss help me , how... (2 Replies)
Discussion started by: manoj_dahiya22
2 Replies

5. Shell Programming and Scripting

Urgent-- mailx command

i want to send mail in bold eg. mailx -s " subject" manoj@yahoo.com << EOF This is Body of mail EOF i want "This is Body of mail " in bold.... what is the solution? Thanx in advance (1 Reply)
Discussion started by: manoj_dahiya22
1 Replies

6. Shell Programming and Scripting

Need Help using sed command(very urgent)

Hi all, Actually i want to delete the .ps extension from package1.ps string by using sed. Can any body tell me that how shell i do it????????? It is very urgent. Can anybody help me. I am trying to do this in the following way. ps_file="package1.ps" echo $ps_file sed s/.ps//g $ps_file... (9 Replies)
Discussion started by: sunitachoudhury
9 Replies

7. HP-UX

frecover command need help urgent please

Hi, I have a tape fbackup done (fbackup -f /dev/rmt/0m -i / -I index.fullfbackup) and I need to restore 3 filesystems, I would like to know the correct command and options: example: I want to restore the filesystem /data1 under /data1 and /data2 under another filesystem /datatest I tried... (4 Replies)
Discussion started by: touny
4 Replies

8. Shell Programming and Scripting

need urgent help in cut command

hello i need help in cut command .. i want to cut the column number 1 - 4 coulmn from my data file . all feilds are tabe delimeted . i am doing this way but getting error the data is generated after that i am opening that file in cat testdata.log | cut - d" " -f 1,2,3 >... (2 Replies)
Discussion started by: getdpg
2 Replies

9. Shell Programming and Scripting

Split command

Can anyone tell me what this command will do? split -b$SPLITSIZE - $file1 < $file2 Will it split file1 or file2? Please explain. Malay (1 Reply)
Discussion started by: malaymaru
1 Replies

10. UNIX for Dummies Questions & Answers

wc command help.... and other unix command....... urgent

hi all. thanks for looking i am doing some homework. one question is that when type wc and then how to tell the program that we have finished entering data? also why do some operating systems report 22 as the number of bytes in the file above, while others only 20? thanks so much,... (1 Reply)
Discussion started by: dashi2k
1 Replies
Login or Register to Ask a Question