Search Results

Search: Posts Made By: E-WAN
1,246
Posted By E-WAN
Hey it works just added /root infront of the...
Hey it works just added /root infront of the /dustbin at points :)

Thanks much ;)
1,246
Posted By E-WAN
Yes I tried it with slash at end and also other...
Yes I tried it with slash at end and also other code, other code tries to remove them from /root/helloworld instead of /dustbin/helloworld for the rm -i part.
1,246
Posted By E-WAN
SED help
I am trying to do the command - but when I do this ultimately no files are deleted from my list - my sed command simply makes the removedFiles.txt be blank which is not my goal, but rather for it to...
4,929
Posted By E-WAN
The problem with doing that is that it tries to...
The problem with doing that is that it tries to delete them from


/root/helloworld instead of /dustbin/helloworld

Also i get the problem if I change it that it puts in the FileLocations.txt...
4,929
Posted By E-WAN
Well i got it working now by editting some stuff...
Well i got it working now by editting some stuff about I think it was not deleting because of the ^ so it expected it to be at the start but really what was always going to be infront of it was a...
4,929
Posted By E-WAN
they just are "/root/hello /root/helloworld"...
they just are
"/root/hello
/root/helloworld"

in FileLocations.txt.


Not sure if I made them unique in dustbin.ini, I just used the code
ls > /root/dustbin.ini

I first changed to...
4,929
Posted By E-WAN
ls | grep -vf - /root/dustbin.ini | sed...
ls | grep -vf - /root/dustbin.ini | sed 's/.*/^&$/' > removed.txt

I then tried appending it to
ls | grep -vf - /root/dustbin.ini | sed 's/.*/^&$/g' > removed.txt



Then no errors were...
4,929
Posted By E-WAN
I have made it so all file names are unique, so...
I have made it so all file names are unique, so for instance if there's a file in the trashcan called file then I can not send another file called file there, without removing the first instance.
...
4,929
Posted By E-WAN
Another problem i've realsied is that if I...
Another problem i've realsied is that if I created two files with similiar names such as:

hello
hellothere

if I restored "hello" then "hellothere" also gets removed from file locations, i...
4,929
Posted By E-WAN
Thanks, I just editted where the dustbin.ini...
Thanks, I just editted where the dustbin.ini thing was saved to be in root instead of dustbin and it also worked :)

Now got this working perfectly, thanks a bunch!
4,929
Posted By E-WAN
Thank you very much for your help, it now works...
Thank you very much for your help, it now works perfectly. :) :b:


EDIT: Changed a few things to fix the couple of errors but thanks a lot for your help once again.
4,929
Posted By E-WAN
Hey, thanks again, it almost works now just there...
Hey, thanks again, it almost works now just there is a problem that when it prompts the rm -i, there is no chance for input it just displays for all the files

rm:remove regular file `file.txt`?...
4,929
Posted By E-WAN
Hi, thanks for the post, I sort of understand...
Hi, thanks for the post, I sort of understand what it is supposed to do but when it tries to do the rm -i it is doing it on simply say *file* instead of /root/dustbin/file, trying to mess about with...
4,929
Posted By E-WAN
rm -i and deleting files from an index table
Hi, I am trying to make a command to delete my files out the trash can, but one at a time.

I am currently using rm - i to do this, but the original file locations for restoring my files are heard...
Showing results 1 to 14 of 14

 
All times are GMT -4. The time now is 05:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy