09-11-2006
This would be easier with sed but I got this to work in vim and I think that it will work in plain old vi:
:%s+\(/.*\)=+\1=../..\1 777 user group+
It will certainly work in sed:
sed 's+\(/.*\)=+\1=../..\1 777 user group+' < inputfile > outputfile
5 More Discussions You Might Find Interesting
1. Solaris
i have one stupid question... so please don't laught at me :-)
actually i have linux on my pc, but i want to install a solaris...
i heard that solaris is not free, but my friend said that there is a free solaris dostridution in gnu licence... is it real?
if yes where can i get it?
if no -... (4 Replies)
Discussion started by: pgas
4 Replies
2. Shell Programming and Scripting
When do PHP variables/objects vanish?
Say, I have a database structure in index.php, I called connect(). Then I sent the user another page, say index2.php. Should I create a fresh database structure and call connect() again, or is there a way around this? (6 Replies)
Discussion started by: rayne
6 Replies
3. Shell Programming and Scripting
In a bash script:
src=”cooltrack.wav”
dst=”cooltrack.mp3”
lame $src $dst
I would like to add some line that would delete the source wav file like:
rm $src
but I would like this only if the encoding was successful.
What should I include before deleting the original to check that the... (2 Replies)
Discussion started by: Aia
2 Replies
4. Shell Programming and Scripting
Hi.
I am trying to write an sh script that will:
1. take each wav file in ~/Documents
2. convert each into mp3 format using "lame" encoder
3. save the new mp3 in ~/Documents/newmp3s.
It has to follow the 3 steps in this order for each wav file before taking the next file.
I tried a... (8 Replies)
Discussion started by: Kingzy
8 Replies
5. What is on Your Mind?
I have a UDP joke but i don't know if you will get it:
Also, I have a TCP joke and i know you will get it.
:) (2 Replies)
Discussion started by: TUX servers
2 Replies
IOPL(2) Linux Programmer's Manual IOPL(2)
NAME
iopl - change I/O privilege level
SYNOPSIS
#include <sys/io.h>
int iopl(int level);
DESCRIPTION
iopl changes the I/O privilege level of the current process, as specified in level.
This call is necessary to allow 8514-compatible X servers to run under Linux. Since these X servers require access to all 65536 I/O ports,
the ioperm call is not sufficient.
In addition to granting unrestricted I/O port access, running at a higher I/O privilege level also allows the process to disable inter-
rupts. This will probably crash the system, and is not recommended.
Permissions are inherited by fork and exec.
The I/O privilege level for a normal process is 0.
RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
ERRORS
EINVAL level is greater than 3.
EPERM The current user is not the super-user.
CONFORMING TO
iopl is Linux specific and should not be used in processes intended to be portable.
NOTES
Libc5 treats it as a system call and has a prototype in <unistd.h>. Glibc1 does not have a prototype. Glibc2 has a prototype both in
<sys/io.h> and in <sys/perm.h>. Avoid the latter, it is available on i386 only.
SEE ALSO
ioperm(2)
Linux 0.99.11 1993-07-24 IOPL(2)