10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
because the tail +2 on the first line gives me the file name pomga I do not want anything like what I miss
tail +2 ejemplo.txt
ouput
==> ejemplo.txt <==
1
2
3
4
5
6
7
8
9
10 (2 Replies)
Discussion started by: tricampeon81
2 Replies
2. Shell Programming and Scripting
Dears
i have a scrip run in unix that need to use the tail -f command, as below:
DATE=`date '+%m%d%y'`
tail -f /var/messages | grep "start" >> /export/logs/start_${DATE}.out
but the problem that the tail -f will be stop and working in the background in then end of the day (23:59:59)... (0 Replies)
Discussion started by: thehero
0 Replies
3. Shell Programming and Scripting
hi
i need to run from a bash script
tail -f /var/log/access_log >> access1
tail -f /var/log/prod/prod1 >> access1
tail -f /var/log/prod/prod2 >> access1
this script purpose is to start at server boot time
and should always run.
what is the best way to put it on a script
Thanks
Dan (1 Reply)
Discussion started by: dan12341234
1 Replies
4. Shell Programming and Scripting
I need to execute a program which will generate some alarms. I wish to capture those alarms in a single output file.
I executed with following command on linux:
tail -f test1.alarms -f test2.alarms|awk 'NR>20' >> output
But however when I tried to execute same on solaris platforms it fails.... (2 Replies)
Discussion started by: bhallarandeep
2 Replies
5. Shell Programming and Scripting
Is there a way to view the log progress from multiple files.
For eg: I have 10 log files from 10 different instances. Instead of opening 10 terminal and doing tail -f on each, is it possible to view all the log changes in one tail -f?
Say I have file1,file2 .. file10
I have tried
tail -f... (9 Replies)
Discussion started by: un1xl0ver_rwx
9 Replies
6. Shell Programming and Scripting
Hi,
As part of our project, we need to load historical data for a year before our system is live. We have the data feed files that we need to load. However, I need to make sure that the file structure (number of fields separated by a comma) on the field is same for all the files of the same... (1 Reply)
Discussion started by: raj.jha
1 Replies
7. Solaris
Hi there, I'm trying to run a simple command in Solaris 10:
tail -10 *.log
But this gives me in the output just last 10 rows of a SINGLE log file :eek: (and there are many in active directory).
Please, do you have any idea what's the problem? :confused: Is it a Solaris issue?
Thank you in... (2 Replies)
Discussion started by: MartinF
2 Replies
8. Shell Programming and Scripting
Hi! I have a large set of pairs of text files (each pair in their own subdirectory) and each pair shares head/tail (a couple of first and last lines) but differs in the middle part. I need to delete the heads/tails and keep only the middle portions in which they differ. The lengths of heads/tails... (1 Reply)
Discussion started by: dobryden
1 Replies
9. UNIX for Dummies Questions & Answers
I have a log file which is continuously added to, called log.file. I'd like to
monitor this file, and when certain lines are found, update some totals in
another file. I've played around with tail -f, grep, and awk, but can't seem
to hit the right note, so to speak.
The lines I'm... (0 Replies)
Discussion started by: nortonloaf
0 Replies
10. Shell Programming and Scripting
The system I work on, produces several kinds of status-files in a single directory. I would like to be able to see the files as they are added to this directory.
I was wondering if it would be possible to get a "tail -f" alike view of the ls-command, in such a way that a newly added file is... (4 Replies)
Discussion started by: rschelkers
4 Replies