Search Results

Search: Posts Made By: nixie
2,053
Posted By alister
Chubler_XL is correct. Here's the relevant bit...
Chubler_XL is correct. Here's the relevant bit from the POSIX documentation:



Regards,
Alister
2,053
Posted By Chubler_XL
Problem is you don't have a -print argument so...
Problem is you don't have a -print argument so all true expressions will print, including the prune.

Try:

find /home/xxxxxxxx -type d \( -iwholename "/home/xxxxxxxx/Backup/.system" \) -prune...
6,948
Posted By methyl
The code tags thing is so everyone can see...
The code tags thing is so everyone can see significant space characters in commands or messages. It is much easier to read a post if code is separated from comment. It is not necessary to put every...
6,948
Posted By methyl
See man find for your system (whatever that is?)....
See man find for your system (whatever that is?). If it is not there, just use \; as usual. The + can be faster on certain Operating System (e.g. modern Solaris).



Apache is a package which you...
6,948
Posted By alister
find "$path" -type d \( -iwholename "$ScriptDir"...
find "$path" -type d \( -iwholename "$ScriptDir" -o -iwholename "$anotherDir" \) -prune \
-o -type f -exec md5sum {} +


This approach should also run faster because md5sum is no longer...
7,850
Posted By jim mcnamara
Try using FILENAME with a little restructuring: ...
Try using FILENAME with a little restructuring:

excludefile=somefile.dat
infile=anotherfile.dat

awk v- in="$infile" -v exf="$excludefile" '
FILENAME==exf
{n=0;while (getline...
7,850
Posted By bartus11
You have missed one letter in the variable name:...
You have missed one letter in the variable name: excludefile=somefile.dat
awk -v EXF=${excludefile} 'BEGIN {n=0;while (getline < EXF > 0){ex[n]=$0;n++}} {for(var in ex){print var "-" ex[var] $0...
Showing results 1 to 7 of 7

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