Hello guys
I am sure that you will help me on this issue as you did earlier:
Scenario :
I have a folder named "XYZ". It consist many sub-folders and subfolder contain severals files. there may be abc.dat in each subfolder. Now i want to seperate subfolders on follwing conditions-
if abc.dat > 1kb (size) move all subfolders to folder healthy
if abc.dat <=1kb move all subfolders to folder unhealty
if there is no abc.dat move all subfolders to folder others.
So at the end we have 3 sub-folders named healthy, unhealty and others containing subfolders with differnt condition.
Please write a shell script for this .
Thanks in advance.
do your own work. Show some effort.. what have you got ? if you are lost, here's a hint. you can use the find command with its options to find size, etc. check the man page. read the documentation.
i/we will give solution to those who put in effort. Also, i have been very kind to give you a hint already. another hint: use find command's -size option to find file sizes....so now, pull up your socks and start the ball rolling...
He have the capability to solve but we are not here for answering the questions in the way you asked(unless you show some effort from your side). First learn to give respect to the senior forum members.
How do you know that he having capability to do this. Different people have different capability and as far as mine is concern i am not mad to just post my problem for fun. Please try to understand . I already tried but cant solve it.
hope you will give me the solution. and sorry for any misunderstanding:)
I think everybody here has the capability to answer your question. It is really very basic. If you want to learn coding, you should try to think and read manpages. The thing is, you do not want to put time and effort into your own problem but expect others to do so.