02-18-2015
Thank you all. It works pefectly.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
On Unix, it is easy to get those lines that match a pattern, by
grep pattern file
or those lines that do not, by
grep -v pattern file
but I am editing a file on Windows with Ultraedit.
Ultraedit support regular expression based search and replace.
I can delete all the lines that match a... (1 Reply)
Discussion started by: JumboGeng
1 Replies
2. Shell Programming and Scripting
Hi all,
I have the following data in a file x.csv:
> ,this is some text here
> ,,,,,,,,,,,,,,,,2006/11/16,0.23
> ,,,,,,,,,,,,,,,,2006/12/16,0.88
< ,,,,,,,,,,,,,,,,this shouldnt be deleted
I need to use SED to match anything with a > in the line and delete that line, can someone help... (7 Replies)
Discussion started by: not4google
7 Replies
3. Shell Programming and Scripting
I am searching a dhcpd.conf to find the hardware ethernet match, then once the match is found delete just the line above it. For example:
testmachine.example {
hardware ethernet 00:00:00:00:00:00;
fixed address 192.168.1.100;
next-server 192.168.1.101;
filename "linux-install/pxelinux.0";
}... (3 Replies)
Discussion started by: cstovall
3 Replies
4. Shell Programming and Scripting
Hi there,
I need help about using sed. Iam using sed to delete and print lines that match the port number as listed in sedfile. I am using -d and -p command for delete match port and print them respectively. However, the output is not synchonize where the total deleted lines is not similar with... (3 Replies)
Discussion started by: new_buddy
3 Replies
5. Shell Programming and Scripting
First of all, I know this can be more eassily done with perl or other scripting languages but, that's not the issue. I need this in sed. (or wander if it's possible )
I got a file (trace file to recreate the control file from oracle for the dba boys)
which contains
some lines
another line... (11 Replies)
Discussion started by: plelie2
11 Replies
6. UNIX for Advanced & Expert Users
Hi,
A text file contains lines of fields seperated by some delimiter; space for example; some lines but not all will have in the second field a value like an inital (e.g., A. or B. or Jr.) for those lines with such a value in field 2, we wish to have that value deleted. We also wish to do this... (1 Reply)
Discussion started by: rfransix
1 Replies
7. Shell Programming and Scripting
Hi
Im trying to do the following in sed. I want to delete any blank line at the start of a file until it matches a pattern and then stops. for example:
Input
output:
I have got it to work within a range of two patterns with the following:
sed '/1/,/pattern/{/^]*$/d}'
The... (2 Replies)
Discussion started by: duonut
2 Replies
8. Shell Programming and Scripting
Hi,
How to delete the last line if is match the below string else no action...
String checking "END OF FILE. ROW COUNT: "
9f680174-cb87-4f71-887a-93b6f62fa5aa|20077337254|2
9f680174-cb87-4f71-887a-93b6f62fa5aa|20077337254|0
229f680174-cb87-4f71-887a-93b6f62fa5aa|20077337254|3
END OF... (2 Replies)
Discussion started by: bmk
2 Replies
9. Ubuntu
I need to modify this so it delete all date files and not leave the 2 newest.
TARGET_DIR='/media/andy/MAXTOR_SDB1/Ubuntu_Mate_18.04/'
REGEX='{4}-{2}-{2}_{2}:{2}' # regular expression that match to: date '+%Y-%m-%d_%H:%M'
LATEST_FILE="$(ls "$TARGET_DIR" | egrep "^${REGEX}$" | tail -1)"... (4 Replies)
Discussion started by: drew77
4 Replies
10. UNIX for Beginners Questions & Answers
Hi Guys ,
I am having a file as stated below
File 1
sa0 -- i_core/i_core_apb/i_afe0_controller/U261/A
sa0 -- i_core/i_core_apb/i_afe0_controller/U265/Z
sa1 -- i_core/i_core_apb/i_afe0_controller/U265/A
sa1 -- i_core/i_core_apb/i_afe0_controller/U268/Z
sa1 -- ... (7 Replies)
Discussion started by: kshitij
7 Replies
LEARN ABOUT DEBIAN
perlbal::manual
Perlbal::Manual(3pm) User Contributed Perl Documentation Perlbal::Manual(3pm)
NAME
Perlbal::Manual - Guide and reference manual for Perlbal
VERSION
Perlbal 1.78.
DESCRIPTION
This is the comprehensive guide and reference manual for Perlbal.
Perlbal::Manual::Configuration
How to configure Perlbal: pools, services, syntax and more.
Perlbal::Manual::Contributing
How to contribute to Perlbal.
Perlbal::Manual::Credits
Author and contributor credits for Perlbal.
Perlbal::Manual::Debugging
How Perlbal's Debugging system works.
Perlbal::Manual::FailOver
How Perlbal's Fail Over mechanism works.
Perlbal::Manual::HighPriority
Perlbal's high/low priority queueing system and how to use it.
Perlbal::Manual::Hooks
Existing hooks and how they work.
Perlbal::Manual::Install
Installation procedures for Perlbal.
Perlbal::Manual::Internals
Perlbal's architecture at a glance. Useful for developers.
Perlbal::Manual::LoadBalancer
Setting up a Perlbal Load Balancing service.
Perlbal::Manual::Logging
How Perlbal's Logging system works.
Perlbal::Manual::Management
Setting up a "management" service, connecting to that service and managing Perlbal on-the-fly.
Perlbal::Manual::Plugins
Known plugins and how to create new ones.
Perlbal::Manual::ReverseProxy
Setting up a Perlbal "reverse_proxy" service.
Perlbal::Manual::Roles
Brief description of existing roles.
Perlbal::Manual::Selector
Setting up a Perlbal "selector" service.
Perlbal::Manual::WebServer
Setting up a Perlbal "web_server" service.
AUTHORS
Bruno Martins and JosA~X Castro.
SEE ALSO
Perlbal::FAQ.
There are sample configuration files under conf/, including samples for using and configuring existing plugins.
perl v5.14.2 2011-01-23 Perlbal::Manual(3pm)