LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2015, 12:53 PM   #16
normanlinux
Member
 
Registered: Apr 2013
Distribution: Arch and SuSE
Posts: 135

Rep: Reputation: Disabled

Just adapt one of the scripts already given, but remember to comment out the mv command and replace it with echo until you are sure it works the way ou want.

This way is fun and you get to experiment.
 
Old 07-22-2015, 07:17 AM   #17
highland
LQ Newbie
 
Registered: Nov 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Final question hopefully before this is solved, I've had most success with Aia's script (thank you!) however it is not copying properly, its only copying the first directory then creating a second script file which is renamed after the directory+1.

Any ideas? I've looked through the code vigorously and cannot for the life of me figure out why its doing this.

thanks
 
Old 07-22-2015, 10:31 AM   #18
highland
LQ Newbie
 
Registered: Nov 2014
Posts: 9

Original Poster
Rep: Reputation: Disabled
Right so the only real problem with this script is that its copying from the directory perfectly, however there other directories inside the directory with more files within them which it isnt copying over
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Shell script for run an shell script on server using ssh bloodstreetboy Linux - Server 5 01-12-2013 04:23 AM
How to pass command line arguments from one shell script to another shell script VijayaRaghavanLakshman Linux - Newbie 5 01-20-2012 10:12 PM
Executing a Shell script with 654 permissions inside another shell script. changusee2k Linux - Newbie 2 06-07-2011 08:58 PM
shell script problem, want to use shell script auto update IP~! singying304 Programming 4 11-29-2005 06:32 PM


All times are GMT -5. The time now is 01:55 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration