The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com



UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to? launch command with string of command line options TinCanFury Shell Programming and Scripting 5 04-28-2008 07:06 PM
find command sort options? mavsman UNIX for Dummies Questions & Answers 6 04-01-2008 04:20 PM
Associated array from command line options jperret Shell Programming and Scripting 1 01-10-2008 05:16 PM
Find command with prune and exec options Sebarry UNIX for Dummies Questions & Answers 2 06-19-2006 05:07 AM
Executing command line options Safia High Level Programming 8 07-04-2002 04:50 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-04-2006
mohdtausifsh mohdtausifsh is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 15
Split Command options

HI! All
iam using Split command to split a large .txt file in to smaller files,

The syntax iam using
split -25000 Product.txt

iam getting four output files but not in .txt format but in some other format ,
when i checked the properties the Type of the output files is Type

can any one help me in this
  #2 (permalink)  
Old 10-04-2006
ghostdog74 ghostdog74 is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2006
Posts: 2,555
did you follow the suggestions given earlier??

split -l 25000 Product.txt

then do:

file Product.txt

It should say ascii text.
  #3 (permalink)  
Old 10-04-2006
mohdtausifsh mohdtausifsh is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 15
The Split comman is working but the output files which iam getting is in bytes format ,i need to conver these file from Byte fromat to .txt format

Is there any command in UNIX which performs this task
  #4 (permalink)  
Old 10-04-2006
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,131
just curious.... what is 'byte format'?
  #5 (permalink)  
Old 10-04-2006
mohdtausifsh mohdtausifsh is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 15
the file looks like operating system file with out any extension to it .that is byte format
  #6 (permalink)  
Old 10-04-2006
mohdtausifsh mohdtausifsh is offline
Registered User
  
 

Join Date: Oct 2006
Posts: 15
if you try and execute the split command ,the result is byte format instead of the txt fromat .
  #7 (permalink)  
Old 10-04-2006
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,131
Quote:
Originally Posted by mohdtausifsh
the file looks like operating system file with out any extension to it .that is byte format
interesting....
I must be missing something obvious here, but... why do you need an extention?
And if you do, you can always rename/'mv' the file to the one with an extention.
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 03:48 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0