Search Results

Search: Posts Made By: jack1985
8,466
Posted By jack1985
Thank you a lot Ahamed , you helped so much ...
Thank you a lot Ahamed , you helped so much
thank you all very much ..
8,466
Posted By jack1985
Thnaks Ahamed .. It works :D but I just need...
Thnaks Ahamed .. It works :D

but I just need one more thing

I'm new in Shell Programming :

please, can you explain this code a little for me :

awk '/^-/ {x=x+$5} END{print "Size:" x}'...
8,466
Posted By jack1985
Thank you very much Ahmed for help me : I...
Thank you very much Ahmed for help me :

I found this code :


#!/bin/bash
FILE="/tmp/count.txt"
ls -l $1 > $FILE
echo " count : $(grep ^- $FILE -c) "
rm -f $FILE
it worked .. but it...
8,466
Posted By jack1985
it's CentOs ... it didn't work with me ... :(
it's CentOs ...
it didn't work with me ... :(
8,466
Posted By jack1985
ok , Ahmed I get that .. but when I tried the...
ok , Ahmed I get that ..
but when I tried the code it keeps give the same results .

Num of Files : 0
Tot Files Size : 0

I tried it on many directories ..
8,466
Posted By jack1985
thank you all for help : Ahmed I tried your...
thank you all for help :
Ahmed I tried your code , it works but it always give me the same result:

Num of Files : 0
Tot Files Size : 0

I called the script count .. and I made a directory "...
8,466
Posted By jack1985
count of files and number of bytes
1) I need a shell code to count the number of files ( without directories or sub-directories ) in a directory given as arguments I tried this code but it didn't work , maybe I tried the wrong one:
...
Showing results 1 to 7 of 7

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