Tag Info

Hot answers tagged

2

The short answer is "Yes". xargs -I{} cmd allows multiple occurrences of the specified replacement string, but will only supply one input item per execution of cmd, meaning in the following example, echo will be invoked three times: $ mkdir t $ cd t $ touch foo bar baz $ find . -type f | xargs -I{} echo {} {} ./bar ./bar ./baz ./baz ./foo ./foo Note ...


1

Consider the alternative: Sub WithoutRegex() For Each r In ActiveSheet.UsedRange If Left(r.Value, 2) = ", " Then r.Value = Mid(r.Value, 3) End If Next r End Sub because the pattern is both simple and easy to detect. EDIT#1: Macros are very easy to install and use: ALT-F11 brings up the VBE window ALT-I ALT-M opens ...


1

You can use -newerXY to find files between those times on a specific day, as in: find -newermt "20150203 2000" -a \! \( -newermt "20150203 2330" \) I've use the modification time because my ext4 file system does not hold creation times. If you have a file system which supports it, you can use -newerBt. If you need to find files between those times on any ...


1

You can try something like: find /var/www/vhosts -type d -name 'empro' -exec du -h {} \; If you want to keep the information only for particular directory you can use -s key: find /var/www/vhosts -type d -name 'empro' -exec du -sh {} \;


1

Try this: find /var/www/vhosts -type d -name 'empro' | xargs du -sh It's the same find sentence, and then through xargs you make a du -sh of each directory found.



Only top voted, non community-wiki answers of a minimum length are eligible