My String variable is holding value as - abc"def
I want to replce " with \"
I tried with awk :
echo $var | awk '{gsub(/"/,"\"");print}'
and I am getting an error, `)' is not expected. (1 Reply)
I need to replace anything immediately after the pattern "standard01/" in a file with the value of a variable
I don't know the length of the characters stored in that variable. - that might vary.
I know there is some string after the pattern "standard01/", i don't know the what the string is or... (1 Reply)
Input file - tmp
<begin>
./00003/
./00004/
<end>
I would like to replace "." with the value of pwd
so that the output will look like
/dev/project/00003/
t=`pwd`
sed -e "s/\./$t/g" tmp > tmp1;
The above piece of code is not working. Appreciate your help. (4 Replies)
Hi,
If I have a variable
var1 ='TH 12/1234'
How can I set this too in a script
var1 ='TH 12~1234'
Bearing in mind "/" might be in a difference place each time and that the "/" might not even exist each time
the variable is set.
Thanks (3 Replies)
All I want to do is replace the 2nd line in a file with a variable, eg,
var=xxx
the file 'test' containing:
aaa
bbb
ccc
replace bbb with xxx
aaa
xxx
ccc
I had it working with sed on a redhat machine, but it doesn't work on a mac machine. (4 Replies)
Hi guys
In my shell script I have a variable that contains a string that contains the current time.
I want to replace the spaces and colons in the value with underscores.
TIME=`date`
echo $TIME
gives me: Thu Sep 24 16:40:53 BST 2009
I want it to show:... (4 Replies)
Hi,
I've a variable for example..
ACTIVATION_DATE=2010-11-11
(the date above is a result of a sql query and not hardcoded)
now there is another file (test_2.parm) where there are many variables predefined..
REG_CODE=111
ACT_DATE=2010-10-10
CAN_DATE=8888-31-12
Now I want to search for... (1 Reply)
Hi all,
I have a script in file1 which gets input from the user say variable "TYPE". This variable is present in the other file2. I want to replace the variable in the file2 with the value given by the user and print the file. How can I achieve this task?
file1
code
echo "Give... (3 Replies)
input.txt
I want to make 3 seprate ouputs such that
toast1.txt
ICH.txt
ICH_SV.txt
I have tried "echo" and "sed 's/k/toast1/g' to replace k, but its not quite working. Please help me out :)
Thanks! (4 Replies)
Discussion started by: johnkim0806
4 Replies
LEARN ABOUT DEBIAN
siteconfig
siteconfig(1) wzdftpd tools siteconfig(1)NAME
siteconfig - online configuration of FTP server (wzdftpd)
SYNOPSIS
siteconfig [OPTION] [-m ACTION]
DESCRIPTION
The siteconfig command can be used to show or change wzdftpd's parameters online.
If no action is specified, it reads it from the standard input.
OPTIONS -h Display a short usage description, including all available options.
--user,-u XXX
Use username XXX instead of wzdftpd.
--pass,-w XXX
Use password XXX with the username.
--host,-h XXX
Connect to the specified host.
--port,-p XXX
Employ the specified port number for connecting to the server.
--secure,-s Enforce a secure connection, aborts if negotiation fails.
--insecure,-t
Do not try to negotiate a secure connection.
-m XXX Use action XXX instead of reading it from standard input.
ACTION
site vars get [all/variable/help]
Display value of variable if the name is given, or all available variables if parameter is all. A contextual help is displayed if
the parameter is help.
site vars set variable value
Change parameter to the new value. A contextual help is displayed if the parameter is help (in this case the second parameter is
ignored).
AUTHORS
wzdftpd is written and maintained by Pierre Chifflier <chifflier@cpe.fr>, and some others contributors, full credits can be found in
/usr/share/doc/wzdftpd/AUTHORS
SEE ALSO wzdftpd(8),ftp(1),siteuptime(1),sitewho(1)
Full documentation on wzdftpd, including configuration and FAQs, is available at http://www.wzdftpd.net
For help/support, try the wzdftpd mailing lists, detailed on http://sourceforge.net/mail/?group_id=78247
Report bugs at http://www.wzdftpd.net/smf/index.php
siteconfig (wzdftpd) November 2004 siteconfig(1)