0

I know the thread here which proposals (... | cut -c 80) however give single letter outputs like n r s t p. I do

# https://unix.stackexchange.com/a/293147/16920
find -L $(find . -type l -name 'Math*') -name '*.tex' -exec fgrep word /dev/null {} +

Some matches have too much content which I would like to cut; most other matches are ok but long-one liners are a problem in contents

...
/Math/16.5.2014.tex:Feedback Control of Hormone SecrAlthough the plasma concentrations of many hormones fluctuate in response to various stimuli that occur throughout the day, all hormones studied thus far appear to be closely controlled. In most instances, word [lot more]
...

1 Answers1

0

Do piping of the result [Sato]

find | 
| cut -c -80

or

find ... \
| sed 's/^\(.\{80\}\).*/\1/' 

or

find - \
| perl -lpe 's/^.{80}\K.*//'

which give correct outputs.