UNIX Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsUNIX Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old April 5th, 2005, 11:07 PM
princesssonya princesssonya is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2005
Posts: 5 princesssonya User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 53 m 24 sec
Reputation Power: 0
splitting files by bytes and listing them

i have to write a command that splits a large file into smaller files by bytes and then list all of the new smaller files by using one single statement,

its something like this cat outputfile | wc -c
can someone help.
thank you,
sonya

Reply With Quote
  #2  
Old April 6th, 2005, 04:09 AM
zlutovsky zlutovsky is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Location: Prague, Czech Rep.
Posts: 116 zlutovsky User rank is Corporal (100 - 500 Reputation Level)zlutovsky User rank is Corporal (100 - 500 Reputation Level)zlutovsky User rank is Corporal (100 - 500 Reputation Level)zlutovsky User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 22 h 34 sec
Reputation Power: 6
Quote:
Originally Posted by princesssonya
i have to write a command that splits a large file into smaller files by bytes and then list all of the new smaller files by using one single statement,

its something like this cat outputfile | wc -c
can someone help.
thank you,
sonya


Hello Sonya,

read man split and man cat. The split command can divide a biger file into a number of smaler ones and the cat command can list all smaler files when you use wild card characters. This time I do not write a complete solution, you must study and study.... and the third I have forgotten.

Have a fun

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsUNIX Help > splitting files by bytes and listing them


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

IBM developerWorks




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway