Panyam, Its working gud..but i need to delete that line untill i find some space.for example i have input
the output should be just aaaaPlease let me know how should i change the command that you have provided.
Hi There!
My final task for today is to delete lines starting with certain numbers
for e.g., my text block is
and i want to delete all lines starting with 11 or 17 or 21
I know i can use multiple sed commands like
sed '/^11,/d' <filename>
sed '/^17,/d' <filename>
sed '/^21,/d'... (2 Replies)
I have my input sometyhing like this
aaa
bbbbbb cccccc
ddddd eeeee
1234 ravi kumar
aaaaaa vvvvvvv
5678 ravi kumar
rrrrrrr mmmmmmm
I want the output as follows.
aaa
bbbbbb cccccc
ddddd eeeee
1234 ravi kumar
aaaaaa vvvvvvv
5678 ravi kumar (2 Replies)
I have my data something like this. I want to delete all the lines before the frist instance of the key word 'ravi kumar'
aaa
bbbbbb cccccc
ddddd eeeee
1234 ravi kumar
aaaaaa vvvvvvv
5678 ravi kumar
rrrrrrr mmmmmmm
I want the output as follows.
1234 ravi kumar
aaaaaa... (8 Replies)
I have my data something like this
I need to search for the keyword yyyy in the susequent lines and if it is present, delete the second line with keyword.
In other words, if a keywords is found in two subsequent lines delete the second line.
input data:
aaaa bbbbb cccc dddd
xxxx... (4 Replies)
Hi all,
I am trying to remove the words which has XYZ as a prt of that.
My input file is something like this :
PHNDAZLF-UPS-XYZ' aaaaaaa bbbbb
ADFRTEJKS-XYZ cccccccc ddddddd rrrrrr
SGETHEHDJ-ABC-RXY' hhhhh ttttt' kkkk
FHJSKSJDKD-XXX-YYY
Output expected is :
aaaaaaa... (7 Replies)
im a new student in programming and im stuck on this question so please please HELP ME. thanks.
the question is this:
enter a command to delete all files that have filenames starting with labtest, except labtest itself (delete all files startign with 'labtest' followed by one or more... (2 Replies)
Hi Geeks :b:,
I need to delete a line from file that contains a particular keyword.
I had read in some forum of unix.com that below code could be used
sed "/$titlesearch/d" movielist >tmp
mv tmp movielist
But my file contains lines which contain slashes (/)
FOr eg:
/etc/movie/title/... (5 Replies)
consider the contents of a file has many stuff including few stuff that i need.. so i perfromed the below function
cat filename | grep "ALTER TABLE"
its output is as shown below
.
.
.
.
. SET @sql:=CONCAT('ALTER TABLE RecordMixProfile AUTO_INCREMENT=', @maxId) ;
SET... (14 Replies)
Platform : RHEL 5.8
I have text file called myapplication.log . In this file, I have around 800 lines which start with the followng three strings
PWRBRKER-3493
PWRBRKER-7834
SCHEDULER-ERROR
How can I delete these lines in one go ? (13 Replies)
Hi
I want to implement something like this:
if( keyword1 exists)
then
check if(keyword2 exists in the same line)
then replace keyword 2 with New_Keyword
else
Add New_Keyword at the end of line
end if
eg:
Check for Keyword JUNGLE and add/replace... (7 Replies)
Discussion started by: dashing201
7 Replies
LEARN ABOUT DEBIAN
aoecfg
aoecfg(8) System Manager's Manual aoecfg(8)NAME
aoecfg - manipulate AoE configuration strings
SYNOPSIS
aoecfg [-c cmd] [-s cfgstr] [-t timeout] [shelf slot] [netif]
DESCRIPTION Aoecfg(8) sends AoE configuration commands that control the retrivial, conditional or unconditional setting of AoE configuration strings.
Since configuration happens before the MAC address of the target is known, the packet is broadcast. AoE targets with a matching shelf and
slot respond. Since the default shelf and slot are the wildcard values 0xffff and 0xff, with no arguments aoecfg(8) will return configura-
tion strings from all targets visible on the default interface, eth0.
OPTIONS -c cmd specify the AoE configuration command. The default is read. The available commands are
read Read the server config string without performing any test and respond.
test Respond only if the specified string exactly matches the server configuration string.
prefix Respond only if the specified string is a prefix of the server configuration string.
set If the current server config string is empty, set the server config string to the argument string and respond. If the current server
config string is not empty, return a response with Flags bit E set and Error set to 4.
fset Force set the server config string to the argument string and respond.
-s cfgstr
specify the config string.
-t timeout
specify the timeout in seconds. The default is no timeout. If neither the shelf nor the slot are specified, aoecfg(8) will exit
after the first result. Otherwise, aoecfg(8) will exit only after the timeout has expired since it does not know how many
responses to expect.
shelf slot
specify the shelf and slot used in the query. If unspecified, they default to broadcast.
netif specifiy the network interface. The default is eth0.
SEE ALSO aoe-discover(8), aoe-interfaces(8), aoe-mkdevs(8), aoe-mkshelf(8), aoe-stat(8), aoeping(8), AoE (ATA over Ethernet): http://sup-
port.coraid.com/documents/AoEr10.txt, ATA specification
AUTHOR
Erik Quanstrom (quanstro@coraid.com)
aoecfg(8)