08-04-2008
Do you want to comment out the contents of the field, or the start and end tags too?
If the file is regularly formatted, the sed scripts by Annihilannic will work (perhaps with some minor modifications if you want to keep the start and end tags and just comment out the contents). If the file is free-form, perhaps you should look into XSLT.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How to comment a set of lines in a script?
we use # to comment a single line , is there ant other cmd to comment a block? (2 Replies)
Discussion started by: rolex.mp
2 Replies
2. Shell Programming and Scripting
Hi
can any body pls help me :
I have a file Which Content is like following:
p3:s1234:powerfail:/usr/sbin/shutdown -y -i5 -g0 >/dev/msglog 2<>/dev/msglog
ca:3:respawn:/opt/GoldWing/currentPM/local/critagt > /dev/msglog 2<>/dev/msglog
ca:3:respawn:/opt/GoldWing/currentPM/local/startcia.sh... (2 Replies)
Discussion started by: Aditya.Gurgaon
2 Replies
3. Shell Programming and Scripting
Hi,
I need to comment the below lines in a file using sed.These are the few lines of the jsp file that need to be commented.
if(top.location != location){
top.location.href = location.href;
}
Using the below command two lines can be commented:
if(top.location != location){
... (9 Replies)
Discussion started by: meetu
9 Replies
4. Shell Programming and Scripting
Hi All,
I am struggling to get my head around the following issue.
I am having to comment out lines between two delimiters by placing an asterix in position 7 but retain all lines in the file and in the same order.
so for example a file containing:
...
...
DELIM1
...
...
DELIM2... (2 Replies)
Discussion started by: Bruble
2 Replies
5. Shell Programming and Scripting
Hi All,
I know we can comment by using "#" .... I want to know... is there any way to comment a whole big script easily....
In a file i need to comment more than 15 lines ........ and check the script and un comment back.
I am learning VI now so its taking lot of time to comment and un... (4 Replies)
Discussion started by: firestar
4 Replies
6. UNIX for Dummies Questions & Answers
Hi,
Can anyone let me know how to comment multiple lines in VI editor?
Many thanks.
Regards,
Venkat. (3 Replies)
Discussion started by: venkatesht
3 Replies
7. Shell Programming and Scripting
Hi
I'm trying to comment out specific lines from /etc/fstab file, for simplicity I'm trying to use perl one liner but it errors out,
Below is the Perl oneliner I'm using,
perl -wlp -i -e 'BEGIN{$flag=0}if (!/root/) && (!/boot/) && (!/tmpfs/) ) {$flag =1;} elsif (/^$/) {$flag=0} if ($flag)... (2 Replies)
Discussion started by: mbak
2 Replies
8. Shell Programming and Scripting
Hi All,
I'm stuck with adding multiple lines(irrespective of line number) to a file before a particular xml tag. Please help me.
<A>testing_Location</A>
<value>LA</value>
<zone>US</zone>
<B>Region</B>
<value>Russia</value>
<zone>Washington</zone>
<C>Country</C>... (0 Replies)
Discussion started by: mjavalkar
0 Replies
9. Shell Programming and Scripting
I have an xml file which has following code :
<abc-ref>
<abc-name>abc.efg.hij.klm</abc-name>
</abc-ref>
I want to comment this whole section out and I have written the following script : (where "hij" is unique string in the file)
TEMPFILE=replaceYY.tmp
file=hello.xml
sed -n... (6 Replies)
Discussion started by: Dish
6 Replies
10. Shell Programming and Scripting
I want to comment a block of code in xml. Note that the tags will be similar. In the below xml code, I want to block the listener block for com.pkg1.class2. How do i do it ?
Thanks in Advance
<listener>
<listener-class>com.pkg1.class1</listener-class>
</listener>
.........
<listener>... (4 Replies)
Discussion started by: Lakshmikumari
4 Replies
ID3(1) General Commands Manual ID3(1)
NAME
id3 - an ID3 tag editor.
SYNOPSIS
id3 [-tTaAycg newdata] file1 [file2 [file3...]]
id3 -l file1 [file2 [file3...]]
id3 -d file1 [file2 [file3...]]
id3 -L
DESCRIPTION
id3 is an ID3 v1.1 tag editor. ID3 tags are traditionally put at the end of compressed streamed audio files to denote information about the
audio contents. Up to thirty characters of Title, Artist, and Album information can be stored, as well as a 28-character comment, four-
digit year, track number up to 255, and an enumerated genre.
OPTIONS
-t title
Sets the title tag to the first 28 characters of title.
-T track
Sets the track tag to a number between 0 and 255.
-a artist
Sets the artist tag to the first 28 characters of artist.
-A album
Sets the album tag to the first 28 characters of album.
-y year
Sets the year tag to the first 4 characters of year.
-c comment
Sets the comment tag to the first 28 characters of comment.
-g genre
Sets the genre number tag using a genre number or predefined genre label.
-l List/view the ID3 tag.
-L List all genre tags.
-R Use rfc822-style output for tag printout.
-d Delete the ID3 tag.
BUGS
The ID3 format has some shortcomings. There is a 1 in 16777216 chance of your mp3 having a certain bit-pattern, causing id3 to write over
the last 128 bytes of your mp3 upon tag creation. If you add a track number to an ID3 v1.0 tag, the last two characters of the comment
string will be truncated. Any bugs found in id3 should be forwarded to the author, Robert Woodcock <rcw@debian.org>.
ID3(1)