Search Results

Search: Posts Made By: MorpheusC
4,605
Posted By MorpheusC
It seems that works, but i had seen that the...
It seems that works, but i had seen that the total that is displayed ./a /home/MorpheusC/ 4000 files.txt
4108 is not correct, is the total size of the files greater than 4000 , i want to display the...
4,605
Posted By MorpheusC
It seems that du doesn`t have -bS ..... ./a...
It seems that du doesn`t have -bS .....
./a /home/MorpheusC/ 10 files.txt
du: unknown option -- b
usage: du [-a | -s] [-chkrx] [-H | -L | -P] [file ...]
4,605
Posted By MorpheusC
Sorry for my english, is not very good. I...
Sorry for my english, is not very good.

I want to make a script that calculates the total size in bytes from files from a directory(first argument) and displays "Total :xxxxx", the second...
4,605
Posted By MorpheusC
I tried this : #!/bin/sh find $1 -type f...
I tried this :
#!/bin/sh
find $1 -type f -size +$2c -exec dirname {} \; | sort -u | xargs ls -lh
Displays: total 8
-rwxrwxrwx 1 MorpheusC MorpheusC 82B Dec 27 11:39 a
-rw-r--r-- 1...
4,605
Posted By MorpheusC
There is any possibility to execute "ls -lh" for...
There is any possibility to execute "ls -lh" for the directory, not for each file in the directory?
4,605
Posted By MorpheusC
Hi. It worked with c, but i have a problem. Dont...
Hi. It worked with c, but i have a problem. Dont know how to display the total size in bytes of all the files.

The actual code of the script is :
#!/bin/sh
find $1 -type f -size +$2c -exec ls...
4,605
Posted By MorpheusC
Hi again. I tried on another system and it says :...
Hi again. I tried on another system and it says :
(MorpheusC@elitter)(~)$ ./a /home/MorpheusC/ 100 files.txt
find: -size: +100k: illegal trailing character
4,605
Posted By MorpheusC
Yes. cd /var/tmp morpheusc@bshellz:/var/tmp$...
Yes. cd /var/tmp
morpheusc@bshellz:/var/tmp$ pwd
/var/tmp
morpheusc@bshellz:/var/tmp$


---------- Post updated at 09:23 AM ---------- Previous update was at 09:20 AM ----------

If i type...
4,605
Posted By MorpheusC
./a /var/tmp 1000 hhh.txt find: /var: No such...
./a /var/tmp 1000 hhh.txt
find: /var: No such file or directory


Maybe is something with the free shell, because i don`t have anywhere to test it.
4,605
Posted By MorpheusC
I had looked at the rules right now, i modified...
I had looked at the rules right now, i modified the title :) Now can it stays here, or i must post there ?
4,605
Posted By MorpheusC
find problem with exec
Hi, i want to make a script that calculates the total size in bytes from files from a directory(first argument) and displays "Total :xxxxx", the second argument must indicate the minimum size of...
Showing results 1 to 11 of 11

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