Sponsored Content
Full Discussion: Changing / to - with vi
Top Forums UNIX for Dummies Questions & Answers Changing / to - with vi Post 302401526 by SoVi3t on Saturday 6th of March 2010 04:13:27 PM
Old 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

changing password

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

changing to a different file

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

Changing IP address

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

changing my nickname

Hello, is it possible to change my nickname? Thank you. (4 Replies)
Discussion started by: Bashar
4 Replies

5. HP-UX

Changing the machine name

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

Changing userID and Changing group and GID

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

Defaultrouter not changing !!

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

Changing Name of File

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

password changing

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

Changing different value to single value

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
GRADM(8)						      System Manager's Manual							  GRADM(8)

NAME
gradm - Administration program for the grsecurity RBAC system SYNOPSIS
gradm [ -E ] [ -R ] [ -C ] [ -F ] [ -L <logfile> ] [ -O <filename|stream> ] [ -M <filename|uid> ] [ -D ] [ -P [rolename] ] [ -a <rolename> ] [ -n <rolename> ] [ -p <rolename> ] [ -u ] [ -V ] [ -h ] [ -v ] DESCRIPTION
gradm is the userspace RBAC parsing and authentication program for grsecurity grsecurity aims to be a complete security system for Linux 2.4. gradm performs several tasks for the RBAC system including authenticated via a password to the kernel and parsing rules to be passed to the kernel. OPTIONS
All options to gradm are mutually exclusive, except for -L and -O. -E Enable the RBAC system -R Reload the RBAC system (only valid while in admin mode) -C Perform a check of the RBAC policy, running the same analysis against it that is performed when enabling. -F Toggle full learning mode. If used only with -L, it enables the RBAC system in full learning mode. If used with -L and -O, it parses the full learning logs and generates a complete ruleset. -M <filename|uid> Remove an execution ban on a given uid or filename that has been put in place by the RES_CRASH resource restriction of the RBAC sys- tem. -L <logfile> Parses the learning logs. Accepts an argument which specifies the logfile to scan for the learning logs. If "-" is specified as the logfile, stdin will be used as the learning log. This option can be used with -E, -O, or -F. -O <filename|stream> Specifies output mode. Requires a single argument that can be "stdout", "stderr", or a regular file. Only used with -L or -F. -D Disable the RBAC system -P [rolename] Without an argument, it sets the password for administering the RBAC system. With a role name as an argument, it sets the password for that given special role. -a <rolename> Authenticate to a special role that requires a password. -n <rolename> Authenticate to a special role that does not require a password. -p <rolename> Authenticate through PAM to a special role. -u Removes yourself from your current special role, reverting back to the normal role selection. To be used, for instance, for logging out of an admin role without exiting your shell. -V Displays verbose policy statistics when enabling the RBAC system or checking the RBAC policy. Can only be used with -C, -E, or -F -L <filename> -h Display help information -v Print version information and exit REPORTING BUGS
Please include as much information as possible(using any available debugging options) and send bug reports for gradm or the grsecurity RBAC system to spender@grsecurity.net. AUTHOR
grsecurity and gradm were created and are maintained by Brad Spengler <spender@grsecurity.net> GRADM(8)
All times are GMT -4. The time now is 07:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy