Hi,everyone:
I'm new to shell, and I'm confued with some script:
In the first three lines, I'm not sure the "|","!","[" usage. I only know that "!" is used to inverse the action of a command. And is "s" here used to exchange strings?
In the last line, "s" is used as exchange command, but I don't understand the usage of "^".
I have a question. Take the following statement
awk -F\| '{print $21}' testfile | sed 's/\//\\/g' > newfile
This will grab the 21st column of a | delimited text file, replace the forward slashes "/" , with back slashes "\", and redirect the output newfile. Now, how do I get the output... (4 Replies)
Hi,
Below is a small piece of my Korn shell script - what i am trying to do is substitute all occurrences of the word given by the ${src} parameter with the word given by the ${dest} parameter in that particular textfile. But i get the errors below...
for i in `ls... (19 Replies)
Hi,
$ echo 1 titi | sed -e "s/1/$(echo \&)/"
1 titi
but
$ echo 1 titi | sed -e "s/1/$(date \&)/"
date: invalid date `&'
titi
how can i do for handle '\&' with date ?
Thx (7 Replies)
Hi.
I'm going to learn scripting and i have the following topics on the list: sed, awk, shell scripting, perl.
My question is, whehter i should learn sed and awk? Aren't this tools outdated?
Although i see that GNU upgrade it's versions of these tools from time to time.
And, the next... (9 Replies)
Hello everyone,
i wonder if someone could give me an advice regarding the following problem using sed.
Given ist a structure as shown below:
<aaa>text1<b>text2</b>text3<c>text4</c>text5</aaa>
Now I want to change the outer tag from "aaa" to "new" and replace all tags inside the outer tags... (4 Replies)
I am searching for a specific pattern and replacing with ( ) for matched pattern .I am not getting the expected result .....
Here is the file
cat test
cool
change
Frinto Francis
Frinto cool
change Attitude
/usr/bin
sed 's/*/( & )/' test
( cool )
( change )
( )Frinto Francis... (2 Replies)
Hi,
I can't seem to understand what the sed and & do.. Why is the set of numbers appear twice ? how the command really work ?
echo "123 abc" | sed 's/*/& www &/'
Output:
123 www 123 abc (3 Replies)
I want to know the working of & here step by step using sed command. (1 Reply)
Discussion started by: Preeti07
1 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)