10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have below file structure and need to display hours, minutes and seconds as different fields.
Incase hour or minute field is not there it should default to zero.
*** Total elapsed time was 2 hours, 54 minutes and 40 seconds.
*** Total elapsed time was 42 minutes and 36 seconds.... (7 Replies)
Discussion started by: fristyguy
7 Replies
2. Shell Programming and Scripting
Hi All,
I have situation where my file looks like this log.file. ID Start time IP SQL
1256152 05-Aug-15, 11:25:06 MST 10.54.20.33 Select * from TES
1004768 05-Aug-15, 11:25:06 MST 10.54.20.33 Select dummy
323323 05-Aug-15, 12:00:06 MST 10.15.20.77 ... (1 Reply)
Discussion started by: netdbaind
1 Replies
3. Shell Programming and Scripting
Sample txt file :
OK00001111112|
OK00003443434|skjdaskldj
OK32812983918|asidisoado
OK00000000001|
ZM02910291029|sldkjaslkjdasldjk
what would be the shell script to figure out the blank space (if any) after the pipe sign? (4 Replies)
Discussion started by: chatwithsaurav
4 Replies
4. Shell Programming and Scripting
Hi all,
I have a flatfile 300 lines
tiger,tampa10-pc,yellow,none,2013-02-25 08:56:51.000,2013-02-25 21:41:11.380,12hrs : 44min
cat,tampa10-pc,white,none,2013-02-28 08:56:58.000,2013-03-04 23:18:23.003,110hrs : 21min
dog,tampa10-pc,yellow,none,2013-03-05 09:50:17.000,2013-03-07... (5 Replies)
Discussion started by: sabercats
5 Replies
5. Shell Programming and Scripting
Hi all,
1. I have a log file
2011/11/14 00:42:50 | 38:guess pid=008499 opened Testing 0, 1, 2, 3
2011/11/14 11:43:42 | 38:guess pid=008499 closed
2011/11/14 11:47:08 | 39:guess pid=017567 opened Testing 0, 1, 2, 3
2011/11/14 11:47:08 | 40:guess pid=012780 opened Testing 0, 1,... (4 Replies)
Discussion started by: sabercats
4 Replies
6. Shell Programming and Scripting
I have a pipe delimited file with 27 fields. Each record has 26 fields. I need to search for the 25,26,27 fields and replace "," with nothing.
How can I acheive this. Sed is more preferred.
e.g
data row
o/p (5 Replies)
Discussion started by: dsravan
5 Replies
7. Shell Programming and Scripting
I need to be able to search a flat file (comma-separated values) for a specific value and then return the following 2 fields into variables. Here's a sample flat file:
SN,Account,IPaddress
W120394YF,adam,10.0.20.2
W394830PR,betty,10.0.20.3
W847582TD,charlie,10.0.20.4... (7 Replies)
Discussion started by: da2357
7 Replies
8. Shell Programming and Scripting
I need to be able to search multiple fields within a file that contain blank (nothing).
Not sure what command to use? thought it would be grep but not sure how to write it
The reason is i have a script that when it does this and identifies a field which has a blank it errors out of the script... (4 Replies)
Discussion started by: Pablo_beezo
4 Replies
9. Shell Programming and Scripting
Hi all,
I have a file with format as below:
cat 0 animal 90 number90 cat_number_name
cat 1 animal 91 number91 cat_animal_name
cat 2 animal 92 number92 cat_name_animal
kiwi 0 bird 90 number90 ... (3 Replies)
Discussion started by: jisha
3 Replies
10. UNIX for Dummies Questions & Answers
Hi
i want to search and replace different field on each files.
file 1
FIELD2=xxxxxxxxx
FIELD4=xxxxxxxx
FIELD3=xxxxxxx
FIELD1=20000
file 2
FIELD1=
FIELD2=
file 3
FIELD2=xxxxxxxxx (3 Replies)
Discussion started by: tungaw2004
3 Replies
tracker-search(1) User Commands tracker-search(1)
NAME
tracker-search - Search all content for keywords
SYNOPSIS
tracker-search [OPTION...] EXPRESSION [EXPRESSION...]
DESCRIPTION
tracker-search searches all indexed content for EXPRESSION. The resource in which EXPRESSION matches must exist (see --all for more infor-
mation). All results are returned in ascending order. In all cases, if no EXPRESSION is given for an argument (like --folders for example)
then ALL items in that category are returned instead.
EXPRESSION
One or more terms to search. The default operation is a logical AND. For logical OR operations, see -r.
OPTIONS
-?, --help-all
Display all help options available.
-l, --limit=N
Limit search to N results. The default is 10 or 512 with --disable-snippets.
-o, --offset=N
Offset the search results by N. For example, start at item number 10 in the results. The default is 0.
-r, --or-operator
Use OR for search terms instead of AND (the default)
-d, --detailed
Show the unique URN associated with each search result. This does not apply to --music-albums and --music-artists.
-a, --all
Show results which might not be available. This might bebecause a removable media is not mounted for example. Without this option,
resources are only shown if they exist. This option applies to all command line switches except
--disable-snippets
Results are shown with snippets. Snippets are context around the word that was searched for in the first place. This gives some idea
of if the resource found is the right one. Snippets require Full Text Search to be compile time enabled AND to not be disabled with
--disable-fts. Using --disable-snippets only shows the resources which matched, no context is provided about where the match
occurred.
--disable-fts
If Full Text Search (FTS) is available, this option allows it to be disabled for one off searches. This returns results slightly
using particular properties to match the search terms (like nie:title) instead of looking for the search terms amongst ALL proper-
ties. It is more limiting to do this, but sometimes searching without FTS can yield better results if the FTS ranking is off.
--disable-color
This disables any ANSI color use on the command line. By default this is enabled to make it easier to see results. --music-albums
and --music-artists.
-f, --files
Search for files of any type matching EXPRESSION (optional).
-s, --folders
Search for folders matching EXPRESSION (optional).
-m, --music
Search for music files matching EXPRESSION (optional).
--music-albums
Search for music albums matching EXPRESSION (optional).
--music-artists
Search for music artists matching EXPRESSION (optional).
-i, --images
Search for images matching EXPRESSION (optional).
-v, --videos
Search for videos matching EXPRESSION (optional).
-t, --documents
Search for documents matching EXPRESSION (optional).
-e, --emails
Search for emails matching EXPRESSION (optional). Returns a list of subjects for emails found.
-c, --contacts
Search for contacts matching EXPRESSION (optional). Returns a list of names and email addresses found.
--software
Search for software installed matching EXPRESSION (optional). Returns a list of desktop files and application titles found.
--software-categories
Search for software categories matching EXPRESSION (optional). Returns a list of urns and their categories (e.g. Settings, Video,
Utility, etc).
--feeds
Search through RSS feed information matching EXPRESSION (optional). Returns a list of those found.
-b, --bookmarks
Search through bookmarks matching EXPRESSION (optional). Returns a list titles and links for each bookmark found.
-V, --version
Print version.
SEE ALSO
tracker-store(1), tracker-stats(1), tracker-tag(1), tracker-info(1).
GNU
July 2009 tracker-search(1)