Unfortunately it may not always at the begining of line and if iam not wrong in sed ^ refers to non-matching.
Anyway, i could figure out something, but fiddling around to finid out a way
In vi we can use sed to replace by bracing the < and >, which works fine.
However I am not able to replicate the same in shell.
I tried to have the replace file withthe braces and escape chars
'\/\<CELL\>'
my data file : 1~hello /CELL
Iam suppose to replace /CELL in data file to 'X'
my code looks like :
However whenever I read the replace file , it's reading as
and never will find a match so no replace happens.
Even I tried with single quote, but in vain.
'/<CELL>'
So Iam kind of lost how to pass the text with / from the file ??
Also, the sed statement %s,\/\<CELL\>,X,g works in vi but not in shell
Last edited by braindrain; 12-11-2006 at 01:40 PM..
Our users have the tendency to use only one login account, to do their jobs. Obvious itīs a matter of training our users. But our internal audit team insists on restrictions from our system.
So is there an option to restrict an account to only login once into the system?
We use HP-UX 11.0.
... (0 Replies)
Hi all,
I am using Sun OS 5.10. I am new to Unix.
Is there some way to restrict a specific user to certain command say "/usr/bin/more" ??
for example: I want that user1 can execute more command & user2 can't.
Can we somehow edit .profile file in the home directory of user to achieve... (1 Reply)
Dears,
how to determine the commands that could be used by certain user..like I want to prevent some users from running pwd command????
Thanx (4 Replies)
Hi,
How can i restrict use of USB in redhat. & also is it possible to allow USB devices for only specific devices or only few known penDrives......?
Thank you (4 Replies)
Hi
I have requirement to create 3 new users on my server but to restrict their access to a set of particular folders.
/export/home/kapil/shared,
/export/home/kapil/shared/Folder1
/export/home/kapil/shared/Folder2
These folders should be accessible to all the 3 users and to me too.... (1 Reply)
hi all,
i want to restrict commands to run from a specifc directory..and to make that only some specific commands to run ,,not all.
please help me ...how can i make this happen. (3 Replies)
I'm trying to use squid to restrict elinks' access to certain websites(only http traffic).
I have tried some configs in squid.conf but no luck. Hope someone has a bit of time to explain me how can you make these config's :)
---------- Post updated at 05:40 PM ---------- Previous update was at... (1 Reply)
Hi,
I wanted add a group to the sudoers file so they can run sudo commands and blocked su command but it seems they can just run sudo -i to switch to root which defeats my purpose.
Is it possible to block sudo -i with the help of sudoers file or any other way.
Please advise.
The below... (1 Reply)