Hi everyone
I have this script that appends a line to a file to log the running status of an application. I need to write another script to run as a scheduled job in cron to trim the first x number of lines of this file.
Could someone give me an idea how to do this?
Regards (1 Reply)
I was using the following bash command inside the emacs compile command to search C++ source code:
grep -inr --include='*.h' --include='*.cpp' '"' * | sed "/include/d" | sed "/_T/d" | sed '/^ *\/\//d' | sed '/extern/d'
Emacs will then position me in the correct file and at the correct line... (0 Replies)
Hi,
How can I remove the unwanted spaces in the line.
123456 789 ABC DEF. - I wanna remove the sapces in this line, I need the output 123456789ABCDEF.
Pls help me...... (3 Replies)
I know this should be simple, but I've been manning sed awk grep and find and am stupidly stumped :(
I'm trying to use sed (or awk, find, etc) to find 4 characters on the second line of a file.txt 44-47 characters in. I can find lots of sed things for lines, but not characters. (4 Replies)
I'm trying to parse an output log and I've managed to reduce the output to the lines I need. But I'm having trouble pulling out only the info I'm interested in. The output is 40+ lines and here is a sample
Installing AppFresh 0.8.5.pkg from ./InstallerFiles/CustomPKG/26 (26)
Installing... (2 Replies)
My file looks like this:
But I would like to 'trim' all sequences to the same lenght 32 characters, keeping intact all the identifier (>GHXCZCC01AJ8CJ)
Would it be possible to use awk to perform this task? (2 Replies)
I want to only store date of all files. However, the below script also store
unwanted FTP related lines to output file.
Could someone tell me how to ignore them (see output first 6 lines)?
Thanks
#Defining variables and assigning values
USR='admin'
PASSWD='abc'... (3 Replies)
Hi I need to trim white spaces from strings in a file.
Input file is like this:
1_rrc_CatalogGroups.csv = 607
1_rrc_Sales_TopCatalogGroups.csv = 4
1_rrc_Sales_CatalogEntries_CatalogGroup_Rel.csv = 7
Need to trim space before and after = symbol.
This is my script:
#!/usr/bin/ksh
... (2 Replies)
Hi i have a log file
P12345_15728710:DEBUG:Begin
P12345_15728710:DEBUG:Being
P12345_15729310:DEBUG:GetAgen
P12345_15726510:DEBUG:end
i want to trim this file and i want like this
15728710
15728710
15729310
15726510
i tried sed ..but not working..
sed "s/.*P12345__ \(.*\)... (4 Replies)
Hi Team,
I have a file a1.txt with data as follows.
dfjakjf...asdfkasj</EnableQuotedIDs><SQL><SelectStatement modified='1' type='string'><!
The delimiter string: <SelectStatement modified='1' type='string'><!
dlm="<SelectStatement modified='1' type='string'><!
The above command is... (7 Replies)
Discussion started by: kmanivan82
7 Replies
LEARN ABOUT DEBIAN
br_pmfetch
BIORUBY(1) General Commands Manual BIORUBY(1)NAME
br_pmfetch -- PubMed Client
SYNOPSIS
br_pmfetch [options...] ["query string"]
br_pmfetch [--query"query string"] [other options...]
DESCRIPTION
This manual page documents briefly the br_pmfetch.
br_pmfetch is a command line program to query PubMed. It can take a variety of options (documented below) to restrict your search query,
which is specified by the query string.
OPTIONS -q--query
Query string for PubMed search.
-t--title
Title of the article to search.
-j--journal
Journal title to search.
-v--volume
Journal volume to search.
-i--issue
Journal issue to search.
-p--page
First page number of the article to search.
-a--author
Author name to search.
-m--mesh
MeSH term to search.
-f--format
Summary output format. Options are endnote, medline, bibitem, bibtex, report, abstract nature, science, genome_res, genome_biol,
nar, current, trends, cell.
--pmidlist
Output only a list of PudMed IDs.
-n--retmax
Number of articles to retrieve at the maximum.
-N--retstart
Starting number of articles to retrieve.
-s--sort
Sort method for the summary output. Options are author, journal, pub+date.
--reldate
Search articles published within recent # of days.
--mindate
Search articles published after the date YYYY/MM/DD.
--maxdate
Search articles published before the date YYYY/MM/DD.
--help
Output help and then exit.
--examples
Output example usages and then exit.
--version
Output version number and then exit.
SEE ALSO
The following pages have information on the PubMed search options: http://www.ncbi.nlm.nih.gov/entrez/query/static/help/pmhelp.html
http://www.ncbi.nlm.nih.gov/entrez/query/static/esearch_help.html
AUTHOR
This manual page was written by David Nusinow dnusinow@debian.org for the Debian system (but may be used by others). Permission is granted
to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by
the Free Software Foundation.
On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.
BIORUBY(1)