11-29-2013
that's just giving an error geeky
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I want to change a particular string in a file with another string. This is part of a larger script file. I m using SED for this purpose:
sed -e 's/hostname.domainname/${HOST}.${DOMAIN}/g' $sed_file>$tmp_file
Where the occurance hostname.domainname has to be replaced with the... (4 Replies)
Discussion started by: mahatma
4 Replies
2. Shell Programming and Scripting
Okay, title is kind of confusion, but basically, I have a lot of scripts on a server that I need to replace a ps command, however, the new ps command I'm trying to replace the current one with pipes to sed at one point. So now I am attempting to create another script that replaces that line.
... (1 Reply)
Discussion started by: cbo0485
1 Replies
3. UNIX for Dummies Questions & Answers
my script:
amount1=`tail /tmp/file1.txt`
amount2=`tail /tmp/file2.txt`
sed -e 's/'${amount2}'/'${amount1}'/g' filename1 > filename2
what did i do wrong ? i just want to replace amount1 with amount2 value. (2 Replies)
Discussion started by: tjmannonline
2 Replies
4. Shell Programming and Scripting
Hi,
i am following content in file
cat file
Install Installation-path variable
Now i need to replace Installation-path with some text to be provided as argument in csh script invocation
My question is , can i replace this by only using path
eg.
sed "s/path/$1" file
but it... (1 Reply)
Discussion started by: sarbjit
1 Replies
5. Shell Programming and Scripting
How do i replace a string using sed into the same file without creating a intermediate file? (7 Replies)
Discussion started by: gomes1333
7 Replies
6. UNIX for Dummies Questions & Answers
I'm trying to change a "." in a file name with a "_"
I have tried;
sed -e 's/./_/g'
However this then replaces the entire filename with a load of "_"
For example;
ls /usr/local/feed/service/customers/test1/configs/test1.httpsend | awk -F/ '{print $9}' | tr "" "" | sed -e "s/./_/g"
... (2 Replies)
Discussion started by: JayC89
2 Replies
7. Shell Programming and Scripting
Hello,
I have a comman separated file lets day data.txt in following format
,:000002 CH XIN9I.INDX, 34.7534909645,:000002 CH,:Index XIN9I.INDX
,:000063 CH XIN9I.INDX, 6.3062924781,:000063 CH,:Index XIN9I.INDX
,:000776 CH XIN9I.INDX, 2.7001954832,:000776 CH,:Index XIN9I.INDX
I would like... (9 Replies)
Discussion started by: srattani
9 Replies
8. Shell Programming and Scripting
Hi,
I have values in a file at Place $1 as AmericanDollar, AustralianDollar, Singapore1Dollar and so on on various rows. I want to replace Dollar with Pound for all those records where no numeric character is present in the string. Means in above mentioned values 'Singapore1Dollar' should not be... (11 Replies)
Discussion started by: DannyMirashi
11 Replies
9. Shell Programming and Scripting
Hi,
i have a file as give below
>cat sample_file
param1 val1 2012-06-19
##there can be one or more space after 2012-06-19 in the above file
i want to replace val1 with a with value passed through a variable...
below is the command i tried
>parval='param1 val2'
>par1=param1
>sed... (3 Replies)
Discussion started by: midhun19
3 Replies
10. Shell Programming and Scripting
How can we empty or replace with null, following block of code (within the php quotes including the quotes) from inside a file.
*** some other data above this code
<?
#317008#
... (5 Replies)
Discussion started by: fed.linuxgossip
5 Replies
LEARN ABOUT SUSE
vlock-plugins
VLOCK-PLUGINS(5) Linux Programmer's Manual VLOCK-PLUGINS(5)
NAME
vlock-plugins - plugin support for vlock
DESCRIPTION
If vlock-main(8) is compiled with plugin support its default features are very limited: it can only lock the current session and ask for
authenticiaton. However it is possible to extend this functions through plugins. These plugins are loaded when vlock-main starts and can
provide hooks that are called at certain points during the lifetime of the vlock-main process.
DEFAULT PLUGINS
The following plugins are provided when installing vlock with default options:
all
This plugin locks all sessions by disabling console switching. It is also loaded when giving the -a,--all option to vlock(1).
new
This plugin switches to a new virtual console before disabling console switching through the "all" plugin. It is also loaded when
giving the -n,--new option to vlock(1).
nosysrq
Linux only. This plugin disables the Linux SysRQ mechanism before the console switching is locked by the "all" plugin. It is also
loaded when giving the -s,--disable-sysrq option to vlock(1).
ADDITIONAL PLUGINS
The following plugins are only available if explicitely selected at build time:
caca
This plugin runs a random libcaca screensaver when the screen is locked.
WRITING PLUGINS
For information about writing plugins see the PLUGINS file in the vlock source distribution.
SEE ALSO
vlock(1), vlock-main(8)
AUTHORS
Frank Benkstein <frank-vlock@benkstein.net>
Linux 10 November 2007 VLOCK-PLUGINS(5)