S
S
Shizz2011-06-30 16:59:41
Command line
Shizz, 2011-06-30 16:59:41

A small educational program on unix console?

Not so long ago it was necessary to solve a couple of problems. I haven't found an elegant solution yet.
1. An analogue of tail -f for directory files (relevant, for example, for monitoring logs in debug mode), preferably recursively.
2. Analogue cat file | grep for a similar case (recursively through the files in a directory). Useful when searching for a specific string in sources, for example.
I would be grateful for help.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
N
niko83, 2011-06-30
@Shizz

for example
watch -n 1 ls -al
Will show once per second the contents of the current directory

L
Laplace, 2011-06-30
@Laplace

2. grep -r

M
MealstroM, 2011-06-30
@MealstroM

for tail -f you can use pearl script. you can look in SPAN use File::Tail; or github.com/mealstrom/plp2sql/blob/master/eximlog.pl in this script as used.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question