03-06-2010
Changing / to - with vi
Hi just learning Unix in college now and this is my first post here, so I dunno if this goes here, or in the homework section technically.
Anywho, trying to change all the / in a file into - using vi...
i went into the command prompt, and put in :%s///-/g and it comes up with E488: Trailing characters.
Where did I go wrong lol?
10 More Discussions You Might Find Interesting
1. Solaris
Hi
Someone logged on the system with a Normal user and changed the password , for this user , how can i know ? who changed the password from which terminal ?
regards
Georges (5 Replies)
Discussion started by: itsgeorge
5 Replies
2. Shell Programming and Scripting
Hi,
At the moment, I have inserted an actual filename to conduct searches through it etc... Instead, I want the user to choose a filename and then do the searches against this file, instead of already having specified the file in the code. How would I do this? I tried doing the following, but it... (5 Replies)
Discussion started by: kev269
5 Replies
3. Windows & DOS: Issues & Discussions
Hi ,,, i just come across this forum and i make it a must to be pay a visit here everyday and through it am learning a lots of things which am sure i will be able to share later...
So i have a prob with my pc when i try to change my Ip address in the dos command using ipconfig command i got a... (1 Reply)
Discussion started by: Lutchumaya
1 Replies
4. Post Here to Contact Site Administrators and Moderators
Hello,
is it possible to change my nickname?
Thank you. (4 Replies)
Discussion started by: Bashar
4 Replies
5. HP-UX
I work on a UNIX HP 10.20 system that recently crashed. I am new with UNIX but I pick things up quick. The system I work on consists of two computers with the same basic hardware config. I have been having trouble loading the program software it uses, NOT the UNIX software, so I used the a... (1 Reply)
Discussion started by: gizmoking
1 Replies
6. Shell Programming and Scripting
Hello,
I want to write a ksh script about changing UID and changing group with GID. There are multiple servers i want to perform that job.
linux1
linux2
linux3
linux4
linux5 ......
.
.
.
.
.
1.) How can i enter "password" in script rather asking me?
I was trying this...
ssh... (2 Replies)
Discussion started by: deal732
2 Replies
7. Solaris
Hi experts
I have to change the default router of some system
I tried changing by deleing the existing route by following line
#route delete default 172.24.2.101
then I added executed the below line to add the new router
#route add default 172.24.1.254
... (9 Replies)
Discussion started by: kumarmani
9 Replies
8. Shell Programming and Scripting
Write a shell program to replace the starting alphabet "a" with "k" for the file names in the current directory.
Note : Change only the file names starting with "a". Rest of the file names remains unchanged.
Homework. Replies deleted. Closed. (0 Replies)
Discussion started by: shashwat2691
0 Replies
9. Shell Programming and Scripting
Hi all
Im trying to learn the basics of bash and am struggling with some file manipulation. I am trying to run a script that once you have logged in allows you to change your password which is held (along with the corresponding username) in a different file called usernames. When i try to run my... (2 Replies)
Discussion started by: somersetdan
2 Replies
10. UNIX for Dummies Questions & Answers
I have a input file like this
select column1,column2 from tablename where column3='1000000001';
select column1,column2 from tablename where column3='1000000002';
select column1,column2 from tablename where column3='1000000003';
select column1,column2 from tablename where column3='1000000004';... (4 Replies)
Discussion started by: nsuresh316
4 Replies
LEARN ABOUT DEBIAN
dbix::dbschema::colgroup
DBSchema::ColGroup(3pm) User Contributed Perl Documentation DBSchema::ColGroup(3pm)
NAME
DBIx::DBSchema::ColGroup - Column group objects
SYNOPSIS
use DBIx::DBSchema::ColGroup;
$colgroup = new DBIx::DBSchema::ColGroup ( $lol_ref );
$colgroup = new DBIx::DBSchema::ColGroup ( @lol );
$colgroup = new DBIx::DBSchema::ColGroup (
[
[ 'single_column' ],
[ 'multiple_columns', 'another_column', ],
]
);
$lol_ref = $colgroup->lol_ref;
@sql_lists = $colgroup->sql_list;
@singles = $colgroup->singles;
DESCRIPTION
This class is deprecated and included for backwards-compatibility only. See DBIx::DBSchema::Index for the current class used to store
unique and non-unique indices.
DBIx::DBSchema::ColGroup objects represent sets of sets of columns. (IOW a "list of lists" - see perllol.)
METHODS
new [ LOL_REF ]
Creates a new DBIx::DBSchema::ColGroup object. Pass a reference to a list of lists of column names.
lol_ref
Returns a reference to a list of lists of column names.
sql_list
Returns a flat list of comma-separated values, for SQL statements.
For example:
@lol = (
[ 'single_column' ],
[ 'multiple_columns', 'another_column', ],
);
$colgroup = new DBIx::DBSchema::ColGroup ( @lol );
print join("
", $colgroup->sql_list), "
";
Will print:
single_column
multiple_columns, another_column
singles
Returns a flat list of all single item lists.
AUTHOR
Ivan Kohler <ivan-dbix-dbschema@420.am>
COPYRIGHT
Copyright (c) 2000 Ivan Kohler Copyright (c) 2000 Mail Abuse Prevention System LLC All rights reserved. This program is free software; you
can redistribute it and/or modify it under the same terms as Perl itself.
BUGS
SEE ALSO
DBIx::DBSchema::Index, DBIx::DBSchema::Table, DBIx::DBSchema::ColGroup::Unique, DBIx::DBSchema::ColGroup::Index, DBIx::DBSchema, perllol,
perldsc, DBI
perl v5.14.2 2007-06-27 DBSchema::ColGroup(3pm)