Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Help Required in Unix Command Post 81913 by Taline0 on Thursday 25th of August 2005 03:43:10 AM
Old 08-25-2005
grep -A

i think it should do the deal if you want to collect the data for one hour of a specific day.

just do this :

grep -A 3 "08:23:2005 01:" data_file

where your file is data_file.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

UNIX PATH info required PLEASE HELP (I'm new to unix)

I need to know how to enter a unix path in a cgi script for a guest book: example: My URL is http://www.kitachi.info I have an html file in the main folder on my site, the file is called : gbook.html what would the correct unix path for this file be ??? the part of the script... (1 Reply)
Discussion started by: akitachi
1 Replies

2. Solaris

unix command required.

I need to get a few details from the command line. I need to get the kilobytes per second that my server is transfering to another or has available and I need to test the connection to make sure that its a sound connection. I also need to keep track of the response time. I have been playing... (1 Reply)
Discussion started by: nowayin
1 Replies

3. UNIX for Dummies Questions & Answers

Unix command help required

Hi All, Can anyone please help me in sort out the command to get the following command say File abc.log contains .... ...... This is the first line This is the second line This is the third line This is the fourth line This is the fifth line This is the first line This is the... (7 Replies)
Discussion started by: thaduka
7 Replies

4. UNIX for Advanced & Expert Users

help required in unix command/script

Hi All, Please help me in writting the script File contains: ========= 11424444, <basicpage> jfalfksf <dateofbirth>10/02/2005</dateofbrith> jkaklgja lg'd .... 11423224444, <basicpage> jfalfksf <dateofbirth>11/02/2005</dateofbrith> jkaklgja lg'd 11433523224444, <basicpage>... (1 Reply)
Discussion started by: thaduka
1 Replies

5. UNIX for Advanced & Expert Users

Required unix command!!!

Hi, In a file I have data like... -rw-r----- 1 ftpuser users 1036695 Jul 6 14:59 ./APRIL 2007/Ujjain/My Disc (D)/9565DW07.04B -rw-r----- 1 ftpuser users 124080 Jul 6 14:59 ./APRIL 2007/Vadodara/vad_APRIL07/2082DW07.04B The above data is extracted using "find . -name... (12 Replies)
Discussion started by: ronald_brayan
12 Replies

6. Shell Programming and Scripting

Help Required regarding wc command

Hi guys, I want to find the number of records in a particular file and store that value in any other variable. I am trying this below command but it is not working and giving me an error "Uninary Operator Expected". say I have taken a variable name 'count' in which I have to store the no. of... (7 Replies)
Discussion started by: dtidke
7 Replies

7. Cybersecurity

Help Required: Command to find IP address and command executed of a user

Hi, I am trying to write a script which would figure out who has run which command and their IP. As i dont have any clue as to which commands would do this job, i request some gurus to help me on this. Thanks Vishwas (2 Replies)
Discussion started by: loggedout
2 Replies

8. Shell Programming and Scripting

Getting required fields from a test file in required fromat in unix

My data is something like shown below. date1 date2 aaa bbbb ccccc date3 date4 dddd eeeeeee ffffffffff ggggg hh I want the output like this date1date2 aaa eeeeee I serached in the forum but didn't find the exact matching solution. Please help. (7 Replies)
Discussion started by: rdhanek
7 Replies

9. Shell Programming and Scripting

Required Command in awk command

Hi Firends, I wanted to extract the first record of the file which starst with character say "X". And I tried an awk command which works when i try to execute it individually: awk 'substr($1,1,1)=="X"' inputfile.txt But when I use the same command in my script for which I am passing the... (2 Replies)
Discussion started by: Ajay Venkatesan
2 Replies

10. UNIX for Beginners Questions & Answers

How to search a text in file and retrieve required lines following it with UNIX command?

I have requirement to search for a text in the file and retrieve required lines that is user defined with unix command. Eg: Find the text UNIX in the below file and need to return Test 8 & Test 9 Test 1 Test 2 Test 3 Test 4 UNIX Test 5 Test 6 Test 7 Test 8 Test 9 Result can... (8 Replies)
Discussion started by: Arunkumarsak4
8 Replies
LIBLINEAR-TRAIN(1)					      General Commands Manual						LIBLINEAR-TRAIN(1)

NAME
liblinear-train - train a linear classifier and produce a model SYNOPSIS
liblinear-train [options] training_set_file [model_file] DESCRIPTION
liblinear-train trains a linear classifier using liblinear and produces a model suitable for use with liblinear-predict(1). training_set_file is the file containing the data used for training. model_file is the file to which the model will be saved. If model_file is not provided, it defaults to training_set_file.model. To obtain good performances, sometimes one needs to scale the data. This can be done with svm-scale(1). OPTIONS
A summary of options is included below. -s type Set the type of the solver: 0 ... L2-regularized logistic regression 1 ... L2-regularized L2-loss support vector classification (dual) (default) 2 ... L2-regularized L2-loss support vector classification (primal) 3 ... L2-regularized L1-loss support vector classification (dual) 4 ... multi-class support vector classification 5 ... L1-regularized L2-loss support vector classification 6 ... L1-regularized logistic regression 7 ... L2-regularized logistic regression (dual) -c cost Set the parameter C (default: 1) -e epsilon Set the tolerance of the termination criterion For -s 0 and 2: |f'(w)|_2 <= epsilon*min(pos,neg)/l*|f'(w0)_2, where f is the primal function and pos/neg are the number of positive/negative data (default: 0.01) For -s 1, 3, 4 and 7: Dual maximal violation <= epsilon; similar to libsvm (default: 0.1) For -s 5 and 6: |f'(w)|_inf <= epsilon*min(pos,neg)/l*|f'(w0)|_inf, where f is the primal function (default: 0.01) -B bias If bias >= 0, then instance x becomes [x; bias]; if bias < 0, then no bias term is added (default: -1) -wi weight Weight-adjusts the parameter C of class i by the value weight -v n n-fold cross validation mode -q Quiet mode (no outputs). EXAMPLES
Train a linear SVM using L2-loss function: liblinear-train data_file Train a logistic regression model: liblinear-train -s 0 data_file Do five-fold cross-validation using L2-loss SVM, using a smaller stopping tolerance 0.001 instead of the default 0.1 for more accurate solutions: liblinear-train -v 5 -e 0.001 data_file Train four classifiers: positive negative Cp Cn class 1 class 2,3,4 20 10 class 2 class 1,3,4 50 10 class 3 class 1,2,4 20 10 class 4 class 1,2,3 10 10 liblinear-train -c 10 -w1 2 -w2 5 -w3 2 four_class_data_file If there are only two classes, we train ONE model. The C values for the two classes are 10 and 50: liblinear-train -c 10 -w3 1 -w2 5 two_class_data_file Output probability estimates (for logistic regression only) using liblinear-predict(1): liblinear-predict -b 1 test_file data_file.model output_file SEE ALSO
liblinear-predict(1), svm-predict(1), svm-train(1) AUTHORS
liblinear-train was written by the LIBLINEAR authors at National Taiwan university for the LIBLINEAR Project. This manual page was written by Christian Kastner <debian@kvr.at>, for the Debian project (and may be used by others). March 08, 2011 LIBLINEAR-TRAIN(1)
All times are GMT -4. The time now is 03:57 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy