09-03-2012
HI People i used your script and i am getting the first file without any issue. but second xml file i am getting first two lines tag. you can see the abouve our pt i pasted.... thee you can see <xml version 1.0> tag and <notification> tag occuring in second and third file...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
how can I skip the new line of echo? In SH!!!!
echo "the date is :"
date
and result I want is
the date is : Tue Oct 11 22:24:37 WEST 2005
I've already tried including the \c inside the echo, but it didn't work.
Thanks! (2 Replies)
Discussion started by: pmpx
2 Replies
2. Shell Programming and Scripting
Hello,
I'm trying to make a shell script to skip comments from an XML file, but with the code below only deletes comments that are in one line.
Can you tell me what can be added here?
nawk '
{
if($0 !~/<!--/) { a=0 }
if($0 ~/<!--/ && $0 ~/-->/) {a=1}
if($0 ~/<!--/) {a=1}
if... (1 Reply)
Discussion started by: majormark
1 Replies
3. UNIX for Dummies Questions & Answers
I need to put single quotes on the columns of a .csv file. The first row contains the column headers. I need to skip the first row and put quotes for rest of the rows. Would please someone help me with this.
Thanks
JP (4 Replies)
Discussion started by: JPalt
4 Replies
4. Shell Programming and Scripting
Hi,
I like to set a variable "name" automatically by reading an xml file. My code looks like this:
set name = `awk '/<generationTime>/,/<\/generationTime>/ p' $xml_name`
the "name" is thus set to
<generationTime>2004-12-01T08:23:50.000000</generationTime>
How can I separate this line,... (3 Replies)
Discussion started by: friend
3 Replies
5. Shell Programming and Scripting
Hi,
I like to set a variable "name" automatically by reading an xml file. The name should be set to the date, which is a part of the following line of the xml file:
<sceneID>C82_N32_A_SM_strip_008_R_2009-11-24T04:22:12.790028Z</sceneID>
How can I separate this line, that the name will... (6 Replies)
Discussion started by: friend
6 Replies
6. Shell Programming and Scripting
Hello,
I have two text files (txt1 and txt2). txt1 contains many lines with a single number in each line. txt2 (xml format) contains information about the numbers given in txt1. I need to insert one line in txt2 within the scope of each number taken from txt1.
Sample problem:
txt1:
12
23... (1 Reply)
Discussion started by: shekhar2010us
1 Replies
7. UNIX for Dummies Questions & Answers
Folks,
how do i skip the first line in a csv, while doing the read of a csv file in to a variable line by line.
eg :
do
echo $line
done < $rpt
where rpt is path to csv file
The initial 1st line is a garbage that i want to avoid, and start reading from 2nd line
... (2 Replies)
Discussion started by: venu
2 Replies
8. Shell Programming and Scripting
Hi All
I have a sample file like below:
012312112
1372422843 1236712
1372422843 1275127
3109301010
from which I wan't to:
1.)delete... (10 Replies)
Discussion started by: swasid
10 Replies
9. UNIX for Advanced & Expert Users
Hi all,
I'm new in unix. Need some help here.
I have a file called server.cfg which contains the servers name, if I don't want to run on that server, I'll put a "#" infront it.
username1@hostname.com
username2@hostname.com
#username3@hostname.com
#username4@hostname.com... (17 Replies)
Discussion started by: beezy
17 Replies
10. UNIX for Dummies Questions & Answers
I need to amend the code blow such that it reads a "black list" before the "print" statement; if "substr($1,1,6)" is found in the "blacklist" it will ignore that record and continue. the code is from an awk script that is being called from shell script which passes the input values.
BEGIN { "date... (5 Replies)
Discussion started by: bazel
5 Replies
LEARN ABOUT DEBIAN
bup-tag
bup-tag(1) General Commands Manual bup-tag(1)
NAME
bup-tag - tag a commit in the bup repository
SYNOPSIS
bup tag
bup tag <tag name> <committish>
bup tag -d <tag name>
DESCRIPTION
bup tag lists, creates or deletes a tag in the bup repository.
A tag is an easy way to retreive a specific commit. It can be used to mark a specific backup for easier retrieval later.
When called without any arguments, the command lists all tags that can be found in the repository. When called with a tag name and a com-
mit ID or ref name, it creates a new tag with the given name, if it doesn't already exist, that points to the commit given in the second
argument. When called with '-d' and a tag name, it removes the given tag, if it exists.
bup exposes the contents of backups with current tags, via any command that lists or shows backups. They can be found under the /.tag
directory. For example, the 'ftp' command will show the tag named 'tag1' under /.tag/tag1.
Tags are also exposed under the branches from which they can be reached. For example, if you create a tag named 'important' under branch
'computerX', you will also be able to retrieve the contents of the backup that was tagged under /computerX/important. This is done as a
convenience, and should the branch 'computerX' be deleted, the contents of the tagged backup will be available through /.tag/important as
long as the tag is not deleted.
OPTIONS
-d, --delete
delete a tag
EXAMPLE
$ bup tag new-puppet-version hostx-backup
$ bup tag
new-puppet-version
$ bup ftp "ls /.tag/new-puppet-version"
files..
$ bup tag -d new-puppet-version
SEE ALSO
bup-save(1), bup-split(1), bup-ftp(1), bup-fuse(1), bup-web(1)
BUP
Part of the bup(1) suite.
AUTHORS
Gabriel Filion <lelutin@gmail.com>.
Bup unknown- bup-tag(1)