Hi, I've been searching in this forum for the last 4 hours trying to do one thing: search 2 lines and delete the above line. So far I have not be able to find something similar in this forum, so I need help. This is what I'm trying to do. For example, I have a file called file1:
file1
word1... (4 Replies)
I have a file in which email messages are stored in. Every email is separated by by a ^Z character (Control-Z).
I need to extract all emails after the 65,00th one to another file and delete them from the original file.
Any suggests on accomplishing this? (2 Replies)
Hi all coders,
I need a help to process some data.
I have this file,
3 09/21/08 03:32:07 started undef mino Oracle nmx004.wwdc.numonyx.co
m
Message Text : The Oracle session with the PID 1103 has a CPU time
consuming of 999.00... (3 Replies)
Hi all!
A bit of background: I am trying to create a script that formats SQL statements. I have gotten so far as to add new lines based on certain match criteria like commas, keywords etc. In the process, I end up adding newlines where I don't want.
For example: substr(colName, 1, 10)... (3 Replies)
Guys,
I manages to get awk to search and print the files that I want to delete. However I am stuck on the delete portion.
Here is the command that I am using to fins these files.
find /usr/local/apache/conf/vhosts/ -type f | awk '/e$/'
The output is perfect. The files look like so:
... (4 Replies)
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)
HI group members
I am new in unix
I want to search # symbol in a file.
if found need to delete the entire row in the file.
need to move the actual data(with out # symbol data) to another file.
Thanks (2 Replies)
Hello,
i have a question.
My problem is that i have a file like:
TEST
JOHN
ADAM
MICHAEL
SEBASTIAN
ANDY
i want find for MICHAEL and want delete lines like this:
TEST (4 Replies)
Hi All,
Do you have any sample script,
- auto get file from SFTP remote server and delete file in remove server after downloaded.
- only download specify filename
- auto upload file from local to SFTP remote server and delete local folder file after uploaded
- only upload specify filename
... (3 Replies)
Discussion started by: weesiong
3 Replies
LEARN ABOUT LINUX
update-xmlcatalog
UPDATE-XMLCATALOG(8) xml-core UPDATE-XMLCATALOG(8)NAME
update-xmlcatalog - maintain XML catalog files
SYNOPSIS
update-xmlcatalog --add --root --package package --type type --id id
update-xmlcatalog --del --root --package package --type type --id id
update-xmlcatalog --add --package package --local local --type type --id id
update-xmlcatalog --del --package package --local local --type type --id id
update-xmlcatalog --add --local local --file file --type type --id id
update-xmlcatalog --del --local local --file file --type type --id id
update-xmlcatalog --help
DESCRIPTION
update-xmlcatalog add entries to and removes entries from the root XML catalog file, a package XML catalog file or a local XML catalog
file.
OPTIONS --add
Adds the entry to the root XML catalog file, a package XML catalog file or a local XML catalog file. If the XML catalog file does not
exist yet, it is automatically created.
--del
Deletes the entry from the root XML catalog file, the package XML catalog file or the local XML catalog file. A resulting empty XML
catalog is not automatically deleted from the filesystem.
--file file
Indicates a local filename.
--id id
Indicates the XML catalog file entry identifier.
--local local
Indicates a local XML catalog file.
--package package
Indicates a package XML catalog file.
--root
Indicates the root XML catalog file.
--type type
Indicates the XML catalog file entry type (public, system, uri).
--help
Displays the usage information.
NOTES
update-xmlcatalog is the de-facto standard tool to be used to maintain XML catalog files on a Debian system, similar to that
update-catalog(8) is the standard tool to be used to main SGML catalog files on a Debian system. A Debian XML Policy document to this
effect is currently under development.
update-xmlcatalog and xmlcatalog(1) are incompatible. The former has an internal database of all the entries in all the XML catalog files
it maintains and regenerates the indicated XML catalog file completely from scratch upon an update. The latter updates the indicated XML
catalog file directly. This means that any change made to an XML catalog file using xmlcatalog(1) is overwritten the next time that XML
catalog file is updated using update-xmlcatalog.
SEE ALSO
/usr/share/doc/xml-core/README.Debian
AUTHOR
Ardo van Rangelrooij <ardo@debian.org>
perl v5.10.0 2008-10-14 UPDATE-XMLCATALOG(8)