10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have an input file as shown below:
20140109;13:30;FR-AUD-LIBOR-1W;2.475... (2 Replies)
Discussion started by: shash
2. Shell Programming and Scripting
I have a input file having hundreds of rows. I want them to translate in to columns if column 1 is same.
zm14 ucp (9 Replies)
Discussion started by: suresh3566
3. UNIX for Dummies Questions & Answers
I have an Output file which has the result
I would like to display the above along with a single line with above info. Final output should be
YYYY 95 (3 Replies)
Discussion started by: priyanka.premra
4. Shell Programming and Scripting
I have following input file. I wish to retain those lines which match multiple search criteria. The search criteria is stored in a variable seperated from each other by comma(,).
SEARCH_CRITERIA = "REJECT, DUPLICATE"
ERROR,MYFILE_20130214_11387,9,37.75... (3 Replies)
Discussion started by: angshuman
5. Shell Programming and Scripting
each individual (row) has genotype expressed for each SNP (column)
1 1 A G A T G T A A A A A A A A A A A A A A A A A A A A A
2 2 G A A A A A A A A A A A A A A A A A A A A A A A A A A
3 3 A A A A A A A A A A A A A A A A A A A A A A A A A A A
4 4 G A G T A T A A A A A A A A A A A... (3 Replies)
Discussion started by: johnkim0806
6. Shell Programming and Scripting
I have a file with multiple columns and for column 5 I want to extract that row into another file if it is equal to or greater than a certain value.
FAR 4 5 7 LOP
GAT 3 3 3 POL
I want values that are greater than 5 for column 4. So the final file will look like... (1 Reply)
Discussion started by: phil_heath
7. Shell Programming and Scripting
I manages to get awk to search and print the files that I want to delete. However I am stuck on the delete portion.
Here is the command that I am using to fins these files.
find /usr/local/apache/conf/vhosts/ -type f | awk '/e$/'
The output is perfect. The files look like so:
... (4 Replies)
Discussion started by: jaysunn
8. Shell Programming and Scripting
I need to delete rows based on the number of lines in a different file, I have a piece of code with me working but when I merge with my C application, it doesnt work.
sed '1,'\"`wc -l < /tmp/fileyyyy`\"'d' /tmp/fileA > /tmp/filexxxx
Can anyone give me an alternate solution for the above (2 Replies)
Discussion started by: Muthuraj K
9. Shell Programming and Scripting
A bit of background: I am trying to create a script that formats SQL statements. I have gotten so far as to add new lines based on certain match criteria like commas, keywords etc. In the process, I end up adding newlines where I don't want.
For example: substr(colName, 1, 10)... (3 Replies)
Discussion started by: jayarkay
10. Shell Programming and Scripting
I want a UNIX command that can filter out rows with certain criteria.
The file is tab deliminated. Row one is just a value. Basically what I want to do is select based on the name and character at the end (o). So lets lets say i want a row that has WashU and (o) then it would print... (2 Replies)
Discussion started by: phil_heath
Prelude(1) User Commands Prelude(1)
preludedb-admin - tool to copy, move, delete, save or restore a prelude database
preludedb-admin copy|move|delete|load|save arguments
preludedb-admin can be used to copy, move, delete, save or restore a prelude database, partly or in whole, while preserving IDMEF data con-
copy Make a copy of a Prelude database to another database.
delete Delete content of a Prelude database.
load Load a Prelude database from a file.
move Move content of a Prelude database to another database.
save Save a Prelude database to a file.
Running a command without providing arguments will display a detailed help.
Obtaining help on a specific command:
# preludedb-admin save
Usage : save <alert|heartbeat> <database> <filename> [options]
Example: preludedb-admin save alert "type=mysql name=dbname user=prelude" outputfile
Save messages from <database> into [filename].
If no filename argument is provided, data will be written to standard output.
type : Type of database (mysql/pgsql).
name : Name of the database.
user : User to access the database.
pass : Password to access the database.
--offset <offset> : Skip processing until 'offset' events.
--count <count> : Process at most count events.
--query-logging [filename] : Log SQL query to the specified file.
--criteria <criteria> : Only process events matching criteria.
--events-per-transaction : Maximum number of event to process per transaction (default 1000).
Preludedb-admin can be useful to delete events from a prelude database :
preludedb-admin delete alert --criteria <criteria> "type=<mysql> name=<dbname> user=<prelude-user> pass=<pass>"
where criteria is an IDMEF criteria :
preludedb-admin delete alert --criteria "alert.classification.text == 'UDP packet dropped'" "type=mysql name=prelude user=prelude-user pass=prelude-pass"
This will delete all event with the classification text "UDP packet dropped" from the database.
The Prelude Handbook: https://trac.prelude-ids.org/wiki/PreludeHandbook
Prelude homepage: http://www.prelude-ids.com/
Creating filter using IDMEF Criteria: https://trac.prelude-ids.org/wiki/IDMEFCriteria
Prelude IDMEF Path: https://trac.prelude-ids.org/wiki/IDMEFPath
To report a bug, please visit https://trac.prelude-ids.org/
This manpage was Written by Pierre Chifflier.
Copyright (C) 2006 PreludeIDS Technologies.
This is free software. You may redistribute copies of it under the terms of the GNU General Public License
<http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law.
preludedb-admin June 2007 Prelude(1)