12-16-2008
Thank you ... but i have two problems
1) egrep -E does not work. it returns 'Invalid options'
2) as per the above command 'disapproved' is not removed from file
i want that line also to be removed with 'removed' or 'approved' string option.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi experts,
You cool guys already given me the awk script below-
awk '/9366109380/,printed==5 { ++printed; print; }' 2008-09-14.0.log
Morever, i have one more things-
when i awk 9366109380, i can also see the Upper 3 lines as well as below 5 lines of that string.
Line 1.... (3 Replies)
Discussion started by: thepurple
3 Replies
2. Shell Programming and Scripting
Hi,
Please provide shell script to Remove empty lines(space) between two lines containing strings in a file.
Input File :
A1/EXT "BAP_BSC6/07B/00" 844 090602 1605
RXOCF-465 PDTR11 1
SITE ON BATTERY
A2/EXT... (3 Replies)
Discussion started by: sudhakaryadav
3 Replies
3. Shell Programming and Scripting
Hi ,
Please help me with the following problem:
I have an xml file with the following lines
<cisco:name>
<cisco:mdNm>Cisco Device 7500 A Series</cisco:mdNm>
<cisco:meNm>10.1.100.19</cisco:meNm>
<cisco:ehNm>/shelf=1</cisco:ehNm>
<cisco:subname>
<cisco:sptp>Cisco PortA... (8 Replies)
Discussion started by: bhagirathi
8 Replies
4. Shell Programming and Scripting
I have a huge file and want to separate it into several subsets.
The file looks like:
C1 C2 C3 C4 ... (variable names)
1 ....
2 ....
3 ....
:
22 ....
23 ....
I want to separate the huge file using the column 1, which has numbers from 1 to 23 (but there are different amount of... (8 Replies)
Discussion started by: AMBER
8 Replies
5. UNIX for Dummies Questions & Answers
Hey all, a relative bash/script newbie trying solve a problem.
I've got a text file with lots of lines that I've been able to clean up and format with awk/sed/cut, but now I'd like to remove the lines with duplicate usernames based on time stamp. Here's what the data looks like
2007-11-03... (3 Replies)
Discussion started by: mattv
3 Replies
6. UNIX for Advanced & Expert Users
Hi All,
I have a very huge file (4GB) which has duplicate lines. I want to delete duplicate lines leaving unique lines. Sort, uniq, awk '!x++' are not working as its running out of buffer space.
I dont know if this works : I want to read each line of the File in a For Loop, and want to... (16 Replies)
Discussion started by: krishnix
16 Replies
7. Shell Programming and Scripting
The question is not as simple as the title... I have a file, it looks like this
<string name="string1">RZ-LED</string>
<string name="string2">2.0</string>
<string name="string2">Version 2.0</string>
<string name="string3">BP</string>
I would like to check for duplicate entries of... (11 Replies)
Discussion started by: raidzero
11 Replies
8. Shell Programming and Scripting
hey guys,
I tried searching but most 'search and replace' questions are related to one liners.
Say I have a file to be replaced that has the following:
$ cat testing.txt
TESTING
AAA
BBB
CCC
DDD
EEE
FFF
GGG
HHH
ENDTESTING
This is the input file: (3 Replies)
Discussion started by: DeuceLee
3 Replies
9. Shell Programming and Scripting
Hello,
I can extract lines in a file, between two strings but only one time.
If there are multiple occurencies, my command show only one block.
Example, monfichier.txt contains :
debut_sect
texte L1
texte L2
texte L3
texte L4
fin_sect
donnees inutiles 1
donnees inutiles 2
... (8 Replies)
Discussion started by: theclem35
8 Replies
10. Shell Programming and Scripting
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)
Discussion started by: omega3
13 Replies
LEARN ABOUT HPUX
vparremove
vparremove(1M) vparremove(1M)
NAME
vparremove - remove a virtual partition
SYNOPSIS
vp_name db_file]
DESCRIPTION
The command deletes a virtual partition previously created using the command. All resources associated with the virtual partition are made
available for allocation to other partitions.
Unintentional use of this command has serious consequences; therefore the user is prompted to confirm the operation unless the (force)
option is specified.
Options
recognizes the following command line options and arguments:
Specifies the unique name of the virtual partition which
is to be removed. Required.
Removes a virtual partition from the partition database
contained in db_file. If this option is omitted, the virtual partition is removed from the monitor's database. In this
case, the partition must be in the state to be removed. Thus it is an error to try to remove the current virtual partition,
the one in which the command is executing.
Specifies the force option.
Omits the confirmation dialog before removing the virtual partition. This option is intended for use by scripts and other
non-interactive applications.
SECURITY RESTRICTIONS
This command is restricted to processes owned by superuser.
When virtual partition flexible administrative capability is enabled, a virtual partition can only be removed from within a Designated-
Admin vPar.
RETURN VALUE
The command exits with one of the following values:
Successful completion.
One or more error conditions occurred.
EXAMPLES
Destroy the virtual partition in the partition database currently running in the monitor:
Destroy the virtual partition in the partition database currently running in the monitor using the force option:
Delete partition in partition database file
ERRORS
displays error messages on standard error for any of the following conditions:
o db_file does not exist, cannot be accessed, is not a virtual partition database file, or is corrupt.
o vp_name does not exist in the monitor's database or in db_file.
o vp_name in the monitor's database is in some state other than
o The command and the virtual partition monitor are at different revision levels.
o When the virtual partition flexible administrative capability is enabled and the local virtual partition is not a Designated-
Admin vPar.
AUTHOR
was developed by the Hewlett-Packard Company.
SEE ALSO
vparadmin(1M), vparboot(1M), vparconfig(1M), vparcreate(1M), vpardump(1M), vparefiutil(1M), vparenv(1M), vparextract(1M), vparmodify(1M),
vparreloc(1M), vparreset(1M), vparstatus(1M), vparutil(1M), vparresources(5), vpartition(5), vpmon(5).
vparremove(1M)