How to remove contents from file which are under bracket?
hello Friend,
In hostgroup file, i have define lots of hostgroups. I need to remove few of them without manually editing file. Need script or syntax.
I want to search particular on hostgroup_members and delete hostgoup defination of it.
for example.
for example: suppose i delete prd-server hostgroup_members then my output will be below.
Moderator's Comments:
Please wrap all code, files, input & output/errors in CODE tags.
It makes it easier to read and preserves multiple spaces for indenting or fixed width data.
Last edited by rbatte1; 09-07-2017 at 10:10 AM..
Reason: Added CODE tags
Hi
Let say a flat file contains 1000 lines. The cursor is at the 530 line number.
Now I like to delete all the line at one ahot. how it can be done? (2 Replies)
Hi,
I have two files, in which the second file has exactly the same contents of the first file with some additional records. Now, if I want to remove those matching lines from file2 and print only the extra contents which the first file does not have, I could use the below unsophisticated... (3 Replies)
So, this issue is driving me nuts! I was hoping to get a lending hand here...
I have 2 files:
file1.txt contains:
this is example1
this is example2
this is example3
this is example4
this is example5
file2.txt contains:
example3
example5
Basically, I need a script or command to... (4 Replies)
Can somebody tell me the difference between double brackets and single
brackets, when doing a test.
I have always been acustomed to using single brackets and have not
encountered any issues to date. Why would somebody use double brackets.
Ie
if ]
vs
if
Thanks to... (2 Replies)
Hi
I have to remove in a file in first column whatever is written in brackets with brackets
so one file
hgfd 123
gfhdj 483
jdgfdg 34738
the output shuld be
hgfd 123
gfhdj 483
jdgfdg 34738 (9 Replies)
Hi all
This time my input conatin 3 columns:
ERCC1 (PA155) Platinum compounds (PA164713176) Allele A is not associated with response to Platinum compounds in women with Ovarian Neoplasms as compared to allele C .
CES1 (PA107) methylphenidate (PA450464) Genotype CT is not... (4 Replies)
I am trying to use the two files shown below to either remove or rename contents in one of those files. If in file1.txt $5 matches $5 of file2.txt and the value in $1 of file1.txt is not "No Match" then that value is substituted for all values in $5 and $1 of file2.txt. If however in $1 ... (5 Replies)
Hello,
I could not remove brackets with text contents
myfile:
Please remove the bracket with text
I wish to remove:
I tried:
sed 's/\//' myfile
It gives:
Please remove the bracket with text A1
I expect:
Please remove the bracket with text
Many thanks
Boris (2 Replies)
Discussion started by: baris35
2 Replies
LEARN ABOUT DEBIAN
mod_gearman_worker
MOD_GEARMAN_WORKER(8) System Administration Utilities MOD_GEARMAN_WORKER(8)NAME
mod_gearman_worker - Agent that runs active checks from a gearman queue
DESCRIPTION
usage:
worker [ --debug=<lvl> ]
[ --logmode=<automatic|stdout|syslog|file> ] [ --logfile=<path> ] [ --debug-result
] [ --help|-h ] [ --daemon|-d ] [ --config=<configfile>
] [ --server=<server> ] [ --dupserver=<server> ]
[ --hosts
]
[ --services
]
[ --eventhandler
]
[ --hostgroup=<name>
]
[ --servicegroup=<name> ] [ --do_hostchecks ]
[ --min-worker=<nr>
]
[ --max-worker=<nr>
]
[ --max-age=<sec>
]
[ --timeout
]
[ --encryption=<yes|no> ] [ --key=<string> ] [ --keyfile=<file> ]
[ --min-worker=<nr>
]
[ --max-worker=<nr>
]
[ --idle-timeout=<nr>
]
[ --max-jobs=<nr>
]
[ --spawn-rate=<nr>
]
[ --fork_on_exec
]
[ --show_error_output
]
[ --enable_embedded_perl
]
[ --use_embedded_perl_implicitly ] [ --use_perl_cache ] [ --p1_file ]
[ --workaround_rc_25
]
see README for a detailed explaination of all options.
SEE ALSO
The Mod Gearman documentation is available in /usr/share/doc/mod-gearman/README.html
mod_gearman_worker 1.3.6-1 July 2012 MOD_GEARMAN_WORKER(8)