![]() |
|
|
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 |
| Comparing file names to text document | gman | UNIX for Dummies Questions & Answers | 1 | 01-27-2009 07:27 AM |
| How to deleting some files under subdirectory | AdziE | Shell Programming and Scripting | 4 | 08-20-2008 09:05 AM |
| Count files in every subdirectory | yorryk | Shell Programming and Scripting | 3 | 08-12-2008 06:22 PM |
| How can I copy files and subdirectory? | odogbolu98 | UNIX for Dummies Questions & Answers | 3 | 02-15-2002 03:14 PM |
| subdirectory password | sskb | UNIX for Dummies Questions & Answers | 1 | 09-24-2001 06:17 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I am trying to reformat data from one private directory and reformat it and move it to a public one, but i only want to get directories that have not already been moved to the public directory. Here's what i'm working with
Dir1 contains folders for each named with timestamp 20090320081302 20090327080738 20090410081604 .... Dir2 contains folders named as such 20090320-Topic1 20090327-Topic2 20090410-Topic3 what i want to do is compare the first 8 characters of the folders in dir1 and the first 8 char of folders in dir2 and get only the ones that are not in dir2 and (then go thru all of them and rename them accordingly and upload to dir2 but that's another post i suppose i think i can do that easily) Any help would be great with comments as i'm new to unix scripting. |
|
||||
|
I was trying to work off the info in this post but not sure what it's doing exactly some comments just on that would be helpful, going to do more research tonight.
Compare File Names in Different Directories... |
![]() |
| Bookmarks |
| Tags |
| comparison, directories, file operations in shell, text processing |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|