10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Dear All,
It would be really nice, if you could help me to write a script for deletion of list of user( more than 15000 users) stored in a file and sorted by email address( i need deletion of only a particular type of mail address).
Is the any script to write and take the file as input and... (3 Replies)
Discussion started by: Chand
3 Replies
2. Shell Programming and Scripting
I have 63,000 files in a directory
I want to move all the 20100219 day files to /target directory
I used
$mv *20100219* /target
too many arguments
Then i used
$find . -name "*.txt"|grep "20100221"|xargs -I '{}' mv {} /target
It will take more than 3 hours to move all the files
... (4 Replies)
Discussion started by: pritish.sas
4 Replies
3. Shell Programming and Scripting
Hi Everyone,
There are certain files under a folder 'ABC' and the entries for these files are there in another file(fname) under a different folder 'XYZ'. I want to compare the folder contents(ABC) with
the file(fname) contents and delete the mismatching / non-existing ones from the file,... (4 Replies)
Discussion started by: swasid
4 Replies
4. Shell Programming and Scripting
I looked into the sticky bit, but I think, if possible, that I would prefer to have the file recreate itself after deletion. The file is several directories deep, and from time to time the top level directory will be trashed. I need the file to recreate after this. Is it possible to perhaps... (13 Replies)
Discussion started by: glev2005
13 Replies
5. Shell Programming and Scripting
I saw many post about this but could not find a specific answer to this question.
i have the following code
find . -depth -name "$FILEEXT" -ctime -30 -exec rm {} \;
when i type ./deletefiles.sh *.txt for example, it will find all the txt files less than 30 days old and delete them.
my... (9 Replies)
Discussion started by: new2learn09
9 Replies
6. Shell Programming and Scripting
Hi Everyone,
Please help me with this. I have gone through many posts here but couldn't find what I wanted.
I have a file with 79000+ lines and I want to delete lines in a pattern.
I want to delete every 141st line in the file, starting from line 2000 till 50000.
Please help guys.
... (8 Replies)
Discussion started by: max29583
8 Replies
7. Programming
How do I write a C program that will watch a directory for file creation/deletion? Maybe it would receive a signal when someone creates a file?
thanks,
Siegfried (5 Replies)
Discussion started by: siegfried
5 Replies
8. Shell Programming and Scripting
I got help in another forum but now I need further help so I figured I'd ask here. I had to write a script to delete certain filenames of certain size. I got this far..
find . -size 110c -name "*testing*" -print | xargs -n 1 rm -i
It finds the correct files, but the prompts to delete are all... (2 Replies)
Discussion started by: NycUnxer
2 Replies
9. UNIX for Dummies Questions & Answers
I am using unix via telnet ssh and i have a problem
I was testing the server.
I made a directory.
Transfered a file from an ftp to it.
Opened the file with the vi text editor
--This where my problem came.....
I tried deleting the file using rm somefile.htm
when is typed ls i noticed that... (2 Replies)
Discussion started by: shdwsclan
2 Replies
10. UNIX for Dummies Questions & Answers
OS: Solaris 8
I deleted a large file (around 13 Gigs) from my system.
But the output of df -k remains the same. The
capacity % is constant. However one strange thing
is happening- My available space is decreasing, my used
space in increasing (The opposite should happen).
This is happening... (2 Replies)
Discussion started by: run_time_error
2 Replies