LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-23-2014, 11:40 AM   #16
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,780

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081

Quote:
Originally Posted by arnold.pietersen View Post
split --lines=5000 --numeric-suffixes new-list list
- Gave me 30 lists, list 30 had 2523 lines with all the other lists having 5000 lines
There should still be 31 lists, but they are numbered 0-30 instead of 1-31. Adding =1 to the --numeric-suffixes option should fix that except your version of split apparently doesn't support that:
Quote:
I replaced $nfiles with 31, and received the following message:
split: option '--numeric-suffixes' doesn't allow an argument
 
Old 02-23-2014, 11:55 AM   #17
arnold.pietersen
Member
 
Registered: Jul 2012
Posts: 31

Original Poster
Rep: Reputation: Disabled
ntubski

You're right, there is 31 lists starting at 0 to 30.

Cheers

ARNOLD
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How are opt-in e-mail lists distinguished from spam lists? Travis86 Programming 2 01-29-2012 08:55 PM
LXer: How To: Create Custom Quick Lists in Ubuntu 11.10 LXer Syndicated Linux News 0 01-13-2012 01:40 PM
LXer: How to create lists of WordPress posts from the command line LXer Syndicated Linux News 0 03-13-2011 01:00 AM
LXer: Unique Sorting Of Lists And Lists Of Lists With Perl For Linux Or Unix LXer Syndicated Linux News 0 09-05-2008 01:50 PM
create own installation routine gestoordeenco Linux - Software 1 06-26-2006 07:30 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration