Hi All,
I need to select only those records having a non zero record in the first column of a comma delimited file.
Suppose my input file is having data like:
"0","01/08/2005 07:11:15",1,1,"Created",,"01/08/2005"
"0","01/08/2005 07:12:40",1,1,"Created",,"01/08/2005"... (2 Replies)
I'll try explain this as best I can. Let me know if it is not clear.
I have large text files that contain data as such:
143593502 09-08-20 09:02:13 xxxxxxxxxxx xxxxxxxxxxx 09-08-20 09:02:11 N line 1 test
line 2 test
line 3 test
143593503 09-08-20 09:02:13... (3 Replies)
Hi all!
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)
Hello,
Need help with following scenario.
A file contains following text:
{beginning of file}
New: This is a new record and it is not
on same line. Since I have lost touch with script
take this challenge and bring all this in one line.
New: Hello losttouch. You seem to be struggling... (4 Replies)
Hi,
I would like to know how can I select lines of one file based on a common ID column from another file (keeping the order of the second file).
Example of file1:
ID A B C D
1-30 1 2 3
5-60 4 5 6
1-20 7 8 9
Example of file2:
ID chr pos
1-20 1 20
1-30 1 30
5-60 5 60
Desired... (2 Replies)
I have a file.....
xxx 2345 455
abc 345 555
cdf 456 777
fff 555 888
Now my requirement is, Say if, i want to select only those records prior to the record fff 555 888...
how do i go about doing this in unix....
The fff would be hardcoded as it wud be fixed and everytime when i... (7 Replies)
Hello,
I use UBUNTU 12.04.
I want to write a short program using awk to select some lines in a file based on a second file.
My first file has this format with about 400,000 lines and 47 fields:
SNP1 1 12.1
SNP2 1 13.2
SNP3 1 45.2
SNP4 1 23.4
My second file has this format:
SNP2
SNP3... (1 Reply)
Hi All,
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"
Input File:
ERROR,MYFILE_20130214_11387,9,37.75... (3 Replies)
Hello,
I have two files of the following form. I would like to remove from File.A where the first three colum matches values in File.B to give the output in File.C
File.A
121 54321 PQR CAT
122 765431 ABC DOG
124 98765 ZXY TIGER
125 86432 GEF LION
File.B
122 765431 ABC
125 86432 GEF... (4 Replies)
Discussion started by: Gussifinknottle
4 Replies
LEARN ABOUT CENTOS
secret-tool
SECRET-TOOL(1) User Commands SECRET-TOOL(1)NAME
secret-tool - Store and retrieve passwords
SYNOPSIS
secret-tool store --label='Label' {attribute} {value} ...
secret-tool lookup {attribute} {value} ...
secret-tool clear {attribute} {value} ...
secret-tool search [--all]{attribute} {value} ...
DESCRIPTION
secret-tool is a command line tool that can be used to store and retrieve passwords.
Each password is stored in an item. Items are uniquely identified by a set of attribute keys and values. When storing a password you must
specify unique pairs of attributes names and values, and when looking up a password you provide the same attribute name and value pairs.
STORE
To store a password run secret-tool with the store argument. You must also specify a label for the passward with the --label argument. This
label will be displayed in the password manager.
Make sure to pass a unique set of attributes names and values when storing a password. If the attributes match an already existing item, it
will be updated instead of creating a new item.
If invoked from a terminal or tty, then the password to store will be prompted for and only one line will be accepted.
A password to store can also be piped in via stdin. The password will be the contents of stdin until EOF. If you provide a newline via
stdin it will be stored as part of the password.
LOOKUP
To lookup a password run secret-tool with the lookup argument. Specify the same same attribute names and value pairs that you passed when
storing the password.
If multiple items match the attribute provided, then the first password that is already unlocked will be returned. If necessary an item
will be unlocked.
When printing the password to a terminal or tty, an extra newline will be added after the password.
CLEAR
To remove a password run secret-tool with the clear argument. Specify the same attirbute name and value pairs that you passed when storing
the password.
All unlocked items that match the attributes will be removed.
SEARCH
This command searches for and prints details on matching items in secret service. Specify the same attribute and value pairs that you
passed in when storing the password. You can use the following options:
--all
Return all matching results, rather than just the one of the matches. Without this option, the first unlocked match returned from the
service will be printed.
--unlock
Unlock items that are locked and then print out their details. Without this option, locked items are skipped.
EXIT STATUS
On success 0 is returned, a non-zero failure code otherwise.
EXAMPLES
Example 1. Storing, retrieving, and clearing a password
$ secret-tool store --label='My password' key1 value1 key2 value2
Password: My password
$ secret-tool lookup key1 value1 key2 value2
My password
$ secret-tool clear key1 value1 key2 value2
XDG SECRET-TOOL(1)