Search Results

Search: Posts Made By: vercsab
3,674
Posted By vercsab
At my side code: echo -n "" > testPaths.log ...
At my side code:

echo -n "" > testPaths.log
echo "Searching"
start=$(date +%s)
# exec to feed pipe one by one
find . -type f -name Makefile -print -exec echo -n "" \; | while read path
do
...
3,674
Posted By vercsab
The solution for one by one feed of while loop is...
The solution for one by one feed of while loop is

# Open the file
echo -n "" > testPaths.log
echo -n "Searching"
# exec to feed pipe one by one
find ./../../../40_Implementation_test -type f...
3,674
Posted By vercsab
Correct me if I am not right, but it seems that...
Correct me if I am not right, but it seems that "whatever we like" is executed for each file just after find is finished its job in case of

find . -type f -name Makefile -print | while read...
3,674
Posted By vercsab
I think " \;" is missing from end of...
I think " \;" is missing from end of -exec
3,674
Posted By vercsab
@al0x: It just writes a dot to stdout...
@al0x:



It just writes a dot to stdout and done. Maybe tee has no input.

@scottn:


I have tested it on a large folder set. I think that data is collected till end of find, then it is...
3,674
Posted By vercsab
find . -name Makefile -type f -print -exec echo...
find . -name Makefile -type f -print -exec echo -n "." | tee -a testPaths.log

prints dot and path to both file and stdout due to piping (dot is printed right after a file is found)

while
...
3,674
Posted By vercsab
indication of find activity - bash script
Hi All,

I wanted to show on stdout that a file was found right after it happens due to indicate the activity of long search. Further more I want to store the result of the find in a file.

I...
Showing results 1 to 7 of 7

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