If each section ended with something predictable (e.g. the Solaris section ends with EndSolaris) then you could use:
To extract the Solaris section.
Once the Solaris section is in its own file you could then use:
To replace "rubbish" with "good".
If the "rubbish" you want to replace is always at the beginning of the line and there are mentions of "rubbish" that are not at the beginning of the line you do not want to replace you could use:
Where the "^" (caret) denotes start of line.
If on the other hand you do want to replace absolutely all mentions of "rubbish" with "good" then you would use:
Where the g denotes global replace, without the g only the first mention of "rubbish" in each line would get replaced.
I am in a test environment where i need to test several versions of UNIX, such as linux, solaris, SCO (ODT and Unixware). What i would like to know is there a universal way to work with the contents of a floppy diskette? I know some give you dos-like commands, but am looking for a way to access and... (1 Reply)
ok so i am trying redhat linux
and i create a partiton and install it no worries
then i start and i cant access any of my other drives
i can mount cd roms and floppies
so i am logged in as root
what i want to do is
mount the following drives
drive 1 ide partition 2
drive 2 to 5 seen... (2 Replies)
I would like to know if I should install unix over a windows 98. I want to use a home computer to host websites right now, but I know how much Windows likes resources ;)
So, my question is... Should I get a Unix OS? If no, then do not read more and just reply :)
If yes, then, which one? How... (2 Replies)
Has anyone gotten netqmail patched with qmail-smtp-auth to not just allow, but require ESMTP authentication? I'm in the processes of setting up a port 587 (submission) server for my remote users to be able to send mail through while they're on the road, but I don't want it to usable without... (0 Replies)
Hi,
Does anyone know how to make BASH provide a list of possible completions on the first tab, and then start cycling through the possibilites on the next tab?
Right now this is what I have in my .bashrc:
bind "set show-all-if-ambiguous on"
bind \\C-o:menu-complete
This allows... (0 Replies)
I'm working on making a menu system on an HP-UX box with Bash on it. The old menu system presents the users with a standard text menu with numbers to make selections. I'm re-working the system and I would like to provide something more akin to iterative search in Emacs.
I have a list of 28... (2 Replies)
Hello,
I am having a problem with my wireless. Seems to be a relatively new problem over the past few weeks. I have an intel wireless. It seems like it can be fine for days, then in will quite working to the point a reboot is necessary. It may happen once and be fine, or may happen several times... (0 Replies)
Hi everyone! I've been browsing the forum for a couple of days, and thought it was about time to chime in.
I'm having a pre-mid-life mid-life crisis (I think), and am seriously debating a career shift. I currently use a bash shell in my day to day work (very basic file management, FTP, backups,... (8 Replies)
I’m using the below snipped for setting the certificate and key for client authentication.
curl_easy_setopt(curl,CURLOPT_SSLCERT,"clientCert.pem");
curl_easy_setopt(curl,CURLOPT_SSLCERTPASSWD,"changeit");
curl_easy_setopt(curl,CURLOPT_SSLCERTTYPE,"PEM"); ... (2 Replies)
Hi I'm trying to create a basic script that pauses for user input to verify a file name before generating the output.
I have numerous SSL certificate files which I am trying to determine the expiry date so what I'm trying to do is write a script so that is pauses to request the name of the .pem... (9 Replies)
Discussion started by: Buddyluv
9 Replies
LEARN ABOUT ULTRIX
projdel
projdel(1M) System Administration Commands projdel(1M)NAME
projdel - delete a project from the system
SYNOPSIS
projdel [-f filename] project
DESCRIPTION
The projdel utility deletes a project from the system and makes the appropriate changes to the system file.
OPTIONS
The following options are supported:
-f filename Specify the project file to modify. If no filename is specified, the system project file, /etc/project, is modified.
OPERANDS
The following operands are supported:
project The name of the project to be deleted.
EXIT STATUS
The following exit values are returned:
0 Successful completion.
2 The command syntax was invalid. A usage message for projdel is displayed.
3 An invalid argument was provided to an option.
4 The projid given with the -p option is already in use.
5 The project files contain an error. See project(4).
6 The project to be modified, group, user, or resource does not exist.
9 The project is already in use.
10 Cannot update the /etc/project file.
FILES
/etc/project System project file
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWesu |
+-----------------------------+-----------------------------+
|Interface stabilty | See below. |
+-----------------------------+-----------------------------+
Invocation is evolving. Human readable output is unstable.
SEE ALSO projects(1), groupadd(1M), groupdel(1M), groupmod(1M), grpck(1M), logins(1M), projadd(1M), projmod(1M), useradd(1M), userdel(1M), user-
mod(1M), project(4), attributes(5)DIAGNOSTICS
In case of an error, projdel prints an error message and exits with a non-zero status.
NOTES
projdel deletes a project definition only on the local system. If a network name service such as NIS or LDAP is being used to supplement
the local /etc/project file with additional entries, projdel cannot change information supplied by the network name service.
SunOS 5.10 4 May 2004 projdel(1M)