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
==> ejemplo.txt <==
10 (2 Replies)
Discussion started by: tricampeon81
2. Shell Programming and Scripting
I have 250 files that have 16 columns each - all numbered as follows stat.1000, stat.1001, stat.1002, stat.1003....stat.1250.
I would like to join all 250 of them together tail by tail as follows. For example
a b c
d e f
g h i
j k l
So that my output... (2 Replies)
Discussion started by: kayak
3. Shell Programming and Scripting
I want to write a script which will tail a particular file for 15 mins and then sleep for 10 mins and again tail for 15 mins. This cycle will go on for a limited period of time.
How can i ensure that tail command will run for 15 mins before calling sleep command
Thanks (6 Replies)
Discussion started by: @bhi
4. Shell Programming and Scripting
I have file that is being constantly written to
I am trying to create a simple script that will tail this file and at the same time using tr to change B to F on lines containing 'B'.
I tried this and it doesn't seem to work.
tail -f... (8 Replies)
Discussion started by: zerofire123
5. UNIX for Dummies Questions & Answers
I need to tail -f a file so I can monitor it as it is being written to. However, there is a lot of garbage in the file that I don't care about. So normally I would just pipe and grep for the string that is important to me. However, in this case, there are two things I need to grep for. I can't... (3 Replies)
Discussion started by: Silver11
6. Shell Programming and Scripting
My query seems to be silly but Iam unable to find where the exact problem lies.
I have a script to unzip set of files
here is the script
Count=`cat /home/gaddamja/Tempfile | wc -l`
Filename=`cat /home/gaddamja/Tempfile |tail -$Count | head -1`
cd... (7 Replies)
Discussion started by: jagadish_gaddam
7. Shell Programming and Scripting
The program that is running on my machine generates log files. I want to be able to know the number of lines that contain "FT" in the most recent log file. I wrote the following, but it always returns zero. And I know the count is not zero. Any ideas?
ls -rt *.log | tail -n 1 | grep -c FT (6 Replies)
Discussion started by: sdilucca
8. Shell Programming and Scripting
I notice that the below tail cannot be done.
How can i modify this code such that i can always "tail" a variable number of lines ?
set num = 100
cat filename|grep xxx| tail -$num (5 Replies)
Discussion started by: Raynon
9. Shell Programming and Scripting
I am trying to extract a particular line from a.log which keeps appending every sec and output that into a newfile b.log which should append itself with filtered data received from a.log
tail -f a.log |grep fail| tee -a b.log
nothing in b.log
tail -f a.log |grep fail >>b.log
... (4 Replies)
Discussion started by: wannalearn
10. Shell Programming and Scripting
I have search the forum and could not find an answer...Here is what I am trying to do. Every 15 minutes, a script send uptime output to a logfile (dailylog.log), that file contains lines like the one below:
11:21am up 44 days, 19:15, 1 user, load average: 0.00, 0.02, 0.03
... (7 Replies)
Discussion started by: qfwfq