10 More Discussions You Might Find Interesting
1. Windows & DOS: Issues & Discussions
Hi All,'
I need to write a windows bat program to delete particular folders with naming pattern scoped_dir45666 (for example)(including contents)
with batch program. For that I am using below code:
@echo off
cd /D %temp%
for /d %%D in (*) do rd /s /q "%%D"
del /f /q *
i got above... (0 Replies)
Discussion started by: onenessboy
0 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I want delete all files from destination folder. I am trying below commands
rsync -avFF --delete-after /home/vizion/source/ /home/vizion/destination/
I need to be delete all file/fodders from destination
Any body have idea ? Please correct me. (3 Replies)
Discussion started by: Chenchireddy
3 Replies
3. Shell Programming and Scripting
hello
this script should show all users and space they used without problem :
ls /home >> /root/users.txt
cat /root/users.txt | while read line; do
space=`du -s /home/$line`
echo "$line space is $space"
shift
done
but when i remove pipe ,script run without any output:
ls /home... (4 Replies)
Discussion started by: nimafire
4 Replies
4. Shell Programming and Scripting
Hi all new to the forums. Very beginner at shell scripting. What I'm trying to do is this:
Is the directory empty prior to removal of it? If not, inform the user that the directory is not empty and if the user wants to remove it remove or move the files in it first.
But I'm stuck.. It checks... (3 Replies)
Discussion started by: rduckett1456
3 Replies
5. Shell Programming and Scripting
Hey, I need help with writing a shell script that deletes empty folders..anyone? :)
Thank you! (5 Replies)
Discussion started by: putukas
5 Replies
6. Shell Programming and Scripting
How can I delete all the files in subfolders without folders (preserving directory scructure).
P.S. I have a huge variety of computer books organized in subfolders (admin web hardw programming_langs) .. but I don't need them - the only way to know something now is GOOGLE (I've realized now)...... (1 Reply)
Discussion started by: Xcislav
1 Replies
7. AIX
Hello everyone
I updated a partition from TL06 to TL09, everything looks ok.
I check the errpt comand, lppchk -v and both are fine.
But when I type this command I got this
$ instfix -i |grep ML
All filesets for 5300-02_AIX_ML were found.
All filesets for 5.3.0.0_AIX_ML were... (3 Replies)
Discussion started by: lo-lp-kl
3 Replies
8. UNIX for Dummies Questions & Answers
please delete and see other post.
Hi,
Im using awk to go through every line, but i have to use it twice as the first awk finds all the lines with a number in one field and the pipes it to wc, and the second does the same as the first but it has a extra pipe into sort and uniq that finds all... (2 Replies)
Discussion started by: fredted40x
2 Replies
9. Shell Programming and Scripting
Hi,
I have research data, which is organized to 100 folders numbered 00-99. I have many sets of 100 folders, for different values of initial parameters. For some reason, the computer that ran the program to gather the data, didn't always create a unique seed for each folder. I anticipated that... (1 Reply)
Discussion started by: Jopi
1 Replies
10. Shell Programming and Scripting
Hello,
I'm spendind hours trying to figure out how a script could remove files and folders older than 30days in a given volume (/dataVolumes/Booba.1.0).
Within this volume, all users have their personal folder that starts with "RC-..", so the script should skip them for deletion.
I will... (4 Replies)
Discussion started by: H3001
4 Replies