![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to find a specific files in a many directory | selamba_warrior | Shell Programming and Scripting | 7 | 05-28-2008 03:41 PM |
| deleting specific lines from all files in a directory | vrms | UNIX for Dummies Questions & Answers | 3 | 04-25-2008 11:08 AM |
| List all files that contain a specific directory | Sat510 | SUN Solaris | 7 | 04-17-2007 10:57 AM |
| delete files in specific directory | legato | Shell Programming and Scripting | 2 | 03-29-2006 09:46 PM |
| creating object files in a specific directory | svh | High Level Programming | 1 | 02-13-2006 06:05 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Splitting files into a specific directory
Hello,
I am trying to do the following; bzcat data.in.bz2 | split -l 1000000 -d this work great, except that once the files have been split, they are not in the directory I want them to be in. So I then have to move them, at times this can get hairy. Is there anyway to specify where the files go after using the split command? Thanks, |
|
||||
|
it turns out that - is the secret... I had no idea what the man page was talking about with that dash, but doing this
bzcat $datadir/FILE.bz2 | split -l num -d - $outputdir/FILE_NAME will put it in the directory and with the name. Thanks for all the help : ) |
| Bits Awarded / Charged to amcrisan for this Post | |||
| Date | User | Comment | Amount |
| 2 Weeks Ago | scottn | that - always gets me! | 1,000 |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|