Register
It is currently Mon Oct 20, 2014 2:09 am

bad move :\


All times are UTC - 6 hours


Post new topic Reply to topic  [ 5 posts ] 
Author Message
 PostPosted: Sun May 09, 2010 4:55 pm   

Joined: Wed Nov 26, 2008 7:43 pm
Posts: 50
Location: Texas
Oh crap, I just made a mistake

I created this script to move all scripts to a place.

find . -name '*.sh' -print -exec mv '{}' ~/bashscripts \;

I wanted it to put them in a directory called bash-scripts.
but instead it created a file named bash-scripts.. and I don't know
how to change this file to a directory in order to see them.

Any help appreciated,

Ted.


Last edited by afflictedd2 on Mon May 10, 2010 8:16 pm, edited 1 time in total.

Top
 Profile  
 PostPosted: Sun May 09, 2010 5:10 pm   

Joined: Wed Apr 14, 2010 10:23 am
Posts: 17
Restore your most recent backup.


Top
 Profile WWW  
 PostPosted: Mon May 10, 2010 4:20 am   
Moderator
User avatar

Joined: Thu Oct 11, 2007 7:12 am
Posts: 229
Location: London - UK
From what i can see all the files were moved to the same filename so all of them except the last one are gone...

It's likely that restore from backup is your only option, you do have a backup of course +:)


Top
 Profile  
 PostPosted: Mon May 10, 2010 5:13 am   

Joined: Mon Nov 17, 2008 7:25 am
Posts: 221
Ofc, everybody backup their stuff *whistle, eye-roll and so on* :-/


Top
 Profile  
 PostPosted: Mon May 10, 2010 8:16 pm   

Joined: Wed Nov 26, 2008 7:43 pm
Posts: 50
Location: Texas
Oh Well.. at least nothing important was in those bashscripts.


Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP