![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| csplit issue | uandme2k2 | Shell Programming and Scripting | 1 | 10-06-2009 02:11 PM |
| Problem with csplit | shreekrishnagd | Shell Programming and Scripting | 4 | 02-06-2009 11:26 AM |
| prefix suffix to each argument | tostay2003 | Shell Programming and Scripting | 1 | 01-02-2009 05:54 PM |
| How to rename multiple files with a common suffix | er_ashu | UNIX for Dummies Questions & Answers | 1 | 09-28-2007 10:52 AM |
| csplit problem....please help me | kumar1 | Shell Programming and Scripting | 2 | 10-07-2005 06:04 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
I am using GNU csplit to extract chapters from a big file into smaller files.
I want to use the -b option -b, --suffix-format=FORMAT use sprintf FORMAT instead of %d but I have failed so far. 1) All the generated files need to have a suffix .txt at the end 2) They have to look like something chapter.xxx.txt <-- .txt extremely important Cheers |
|
||||
|
Code:
csplit -b "%04d.txt" inputfilename |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| csplit suffix-format |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|