I have a lot of script files that were created by Extract in a dir that no longer exists. Now that I have to run these scripts they 'all' have to be changed. I'm looking for a way to do a 'mass' change if possible.
So far, I've dumped all of the script file names to a file and sorted them to... (5 Replies)
I am having a shell script that connects to database half hourly and pulls out the backlog from some tables. Now that logfile is growing too big and I need to housekeep it! effectively I want to keep last 30 days data in that file and move rest to archived file.
The file contents are as below.... (14 Replies)
/\/\*/!b
:x
/\*\//!{
N
bx
}
s/\/\*.*\*\///
This scipt should remove c like commnets /**/
i know what de last line does
but i dont't know what the first lines do
Can anyone explain please (3 Replies)
I am trying to run a sed command within a script to edit a file.
I am trying to put the value of MYUSER into the sshd_config file.
Instead of putting the value of the variable, MYUSER, it puts in the string ${MYUSER}.
Anyone know a good solution to this?
cat ${SSHD_CONFIG} | sed... (1 Reply)
how to convert the follow sed script file into a command line ?
example:
/^\.TS/,/^\.TE/{
/^$/p
}
I have tried the below but it is not working:
# sed -n "/^\.TS/,/^\.TE/{/^$/p}" file
file:
111
.TS
222
$333 << extract this line
444
.TE
555 (2 Replies)
:rolleyes:
I have a series of folders /temp/a /temp/b /temp/c
In folders a, b, and c, I have files
a1.txt..........a20.txt
b1.txt..........b40.txt &
c1.txt..........c60.txt
Each file has the same data format :-
Line... (2 Replies)
I'm trying to write a simple script that replaces a string. The script works for uninterrupted strings, but as soon as sed encounters a space it stops reading the new string. I've tried double quotations in sed and backslashes before the $, however these don't work. Below is the script. Any help... (9 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Create a sed script that will display a list of all users in the /etc/passwd file that belong to the group... (0 Replies)
I am beginner for Unix. I practicing unix shell script. I worked out some sed script example from internet. Everything fine.
But in real unix environment, where sed script is mainly used.?
Can anyone give some examples for the usage of sed script in real unix environment. It will be useful for... (1 Reply)
I am having a file as stated below :
File 1:
##########################
idnd a
integer 2;
list 1 ;
list2 ;
chip top alist( .a(1) , .b(2) , .c(3) ,
.d(1) , .e(7) , .n(80),
.d(1) , .g(7) , .n(80),
.f(1) , .e(7) , .m(80));
lis 7 nfj ;
jdjd kn;
jsjd l ; (4 Replies)
Discussion started by: kshitij
4 Replies
LEARN ABOUT SUSE
nwbpset
NWBPSET(1) nwbpset NWBPSET(1)NAME
nwbpset - Create a bindery property or set its value
SYNOPSIS
nwbpset [ -h ] [ -S server ] [ -U user name ] [ -P password | -n ] [ -C ]
DESCRIPTION
nwbpset Reads a property specification from the standard input and creates and sets the corresponding property. The format is determined by
the output of 'nwbpvalues -c'. nwbpset will hopefully become an important part of the bindery management suite of ncpfs, together with
As another example, look at the following command line:
nwbpvalues -t 1 -o supervisor -p user_defaults -c |
sed '2s/.*/ME/'|
sed '3s/.*/LOGIN_CONTROL/'|
nwbpset
With this command, the property user_defaults of the user object 'supervisor' is copied into the property login_control of the user object
'me'.
nwbpvalues -t 1 -o me -p login_control -c |
sed '9s/.*/ff/'|
nwbpset
This command disables the user object me.
Feel free to contribute other examples!
nwbpset looks up the file $HOME/.nwclient to find a file server, a user name and possibly a password. See nwclient(5) for more information.
Please note that the access permissions of $HOME/.nwclient MUST be 600 for security reasons.
OPTIONS -h
-h is used to print out a short help text.
-S server
server is the name of the server you want to use.
-U user
user is the user name to use for login.
-P password
password is the password to use for login. If neither -n nor -P are given, and the user has no open connection to the server, nwbpset
prompts for a password.
-n
-n should be given if no password is required for the login.
-C
By default, passwords are converted to uppercase before they are sent to the server, because most servers require this. You can turn off
this conversion by -C.
AUTHORS
nwbpset was written by Volker Lendecke. See the Changes file of ncpfs for other contributors.
nwbpset 8/7/1996 NWBPSET(1)