02-18-2011
10 More Discussions You Might Find Interesting
1. Solaris
Want to know if any, a command line parameter(s) of removing a user from multiple groups without using any ineractive application? (1 Reply)
Discussion started by: jquizon62
1 Replies
2. Shell Programming and Scripting
I'm doing manual way to add and remove "#" on etc/services.
Is there anyway I can modify the file using awk or sed or any other program.
I use vi to modify /etc/services for enabling telnet , the problem is I don't know how to do it automatically in script.
production state:
#telnet
... (9 Replies)
Discussion started by: skully
9 Replies
3. Shell Programming and Scripting
I'm sure this will be an easy question for you experts out there, but I have been searching the forum and working on this for a couple hours now and can't get it right.
I have a very messy data file that I am trying to tidy up - one of the issues is some records are split into multiple lines: ... (4 Replies)
Discussion started by: tink
4 Replies
4. Shell Programming and Scripting
I must write a script to change all C++ like comments:
// this is a comment
to this one
/* this is a comment */
How to do it by sed? With file:
#include <cstdio>
using namespace std; //one
// two
int main() {
printf("Example"); // three
}//four
the result should be: (2 Replies)
Discussion started by: black_hawk
2 Replies
5. Shell Programming and Scripting
How do I filter only comments and still keep Line breaks at the end of the line!?
This is one of the common tasks we all do,, How can we do this in a right way..!?
I try to ignore empty lines and commented lines using following approach.
test.sh
# \040 --> SPACE character octal... (17 Replies)
Discussion started by: kchinnam
17 Replies
6. Shell Programming and Scripting
I would like to remove carriage returns/line feeds in a text file, but in a specific cadence:
Read first line (Header Line 1), remove cr/lf at the end (replace it with a space ideally);
Read the next line (Line of Text 2), leave the cr/lf intact;
Read the next line, remove the cr/lf;
Read... (14 Replies)
Discussion started by: tomr2012
14 Replies
7. Shell Programming and Scripting
i have to remove the commented (/* . . . .*/) part which starts in one line and ends in other.help me with generic code because i have 1000 to 10k lines code which i have to remove.
data one;
set work.temp;
input name age;
infile filename;
/* dfsdf
dsfs
sdfdf
dsdd
sdfsf
sdfsf
sfs... (4 Replies)
Discussion started by: saaisiva
4 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I am trying to remove multi line and single line comments like examples below
I have tried this pattern. it works fine for single line comments and multi line comments in a single line only. but this fails when the comments are extended in multiple lines as shown in the comment 2 of... (3 Replies)
Discussion started by: ahmedwaseem2000
3 Replies
9. Shell Programming and Scripting
Hi All,
I am reading the host file by ignoring the comments and write it to the other file. I am reading with regular expression for IP address.
grep -E '^{1,3}\.{1,3}\.{1,3}\.{1,3}' $inputFile | awk '{for(i=2;i<=NF;i++)print $1,$i}' > $DR_HOME/OS/temp
After that am reading each host... (4 Replies)
Discussion started by: sharsour
4 Replies
10. Shell Programming and Scripting
Hello Gurus,
I have a multiple pipe separated files which have records going over multiple Lines. End of line separator is \n and records going over multiple lines have <CR> as separator. below is example from one file.
1|ABC DEF|100|10
2|PQ
RS
T|200|20
3| UVWXYZ|300|30
4| GHIJKL|400|40... (7 Replies)
Discussion started by: dJHa
7 Replies
LEARN ABOUT SUSE
vorbiscomment
VORBISCOMMENT(1) Vorbis Tools VORBISCOMMENT(1)
NAME
vorbiscomment - edits Ogg Vorbis comments
SYNOPSIS
vorbiscomment [-l] file.ogg
vorbiscomment -a [ -c commentfile | -t "tag=value" ] [-q] in.ogg [out.ogg]
vorbiscomment -w [ -c commentfile | -t "tag=value" ] [-q] in.ogg [out.ogg]
DESCRIPTION
vorbiscomment reads, modifies, and appends Ogg Vorbis audio file metadata tags.
OPTIONS
-a Append comments.
-c commentfile
Take comments from a file. The file is the same format as is output by the the -l option: one element per line in 'tag=value' for-
mat.
-h Show command help.
-l List the comments in the ogg vorbis file.
-q Quiet mode. No messages are displayed.
-t 'tag=value'
Specify a new tag on the command line. Each tag is given as a single string. The part before the '=' is treated as the tag name and
the part after as the value.
-w Replace comments with the new set given either on the command line with -t or from a file with -c.
EXAMPLES
To just see what comment tags are in a file:
vorbiscomment -l file.ogg
To edit those comments:
vorbiscomment -l file.ogg > file.txt
[edit the comments in file.txt to your statisfaction]
vorbiscomment -w -c file.txt file.ogg newfile.ogg
To simply add a comment:
vorbiscomment -a -t 'ARTIST=No One You Know' file.ogg newfile.ogg
SEE ALSO
See http://xiph.org/ogg/vorbis/doc/v-comment.html for documentation on the Ogg Vorbis tag format, including a suggested list of canonical
tag names.
AUTHORS
Program Authors:
Michael Smith <msmith@xiph.org>
Ralph Giles <giles@xiph.org>
Manpage Author:
Christopher L Cheney <ccheney@debian.org>
Xiph.org Foundation December 24, 2001 VORBISCOMMENT(1)