03-19-2019
Oh my God,
Sorted and solved.
I am sorry Rudic
Kind regards
Boris
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am trying to replace the default home page for several mac user accounts, I wrote a script that will hunt the files down and replace them with a pre-configured set. The problem I am having is that the download destination path for the browser is hard coded into a .plist (text config file) file... (5 Replies)
Discussion started by: tret
5 Replies
2. Shell Programming and Scripting
I have a customer who logged some cc and bank account numbers in their apache logs. I got the cc numbers x'd out with
sed -e 's/args=\{16\}/args=XXXXXXXXXXXXXXXX/g' -e 's/cardnum=\{16\}/cardnum=XXXXXXXXXXXXXXXX/g'but that wasn't too difficult due to the value being 16 digits.
The bank account... (7 Replies)
Discussion started by: mk4mzid
7 Replies
3. Shell Programming and Scripting
Hi,
i call my shell like:
my_shell "my project name"
my script:
#!/bin/bash -vx
projectname=$1
sed s/'PROJECT_NAME ='/'PROJECT_NAME = '$projectname/ <test_config_doxy >temp
cp temp test_config_doxy
the following error occurres:
sed s/'PROJECT_NAME ... (2 Replies)
Discussion started by: vivelafete
2 Replies
4. AIX
I was trying to replace a string ( for eg - @@asterisk@@ to * ) in variable using
cat $INFILE | while read LINE
do
stmt1=`echo $LINE | sed 's/@@asterisk@@/\*/g'`
stmt=$stmt' '$stmt1
stmt2=`echo $LINE`
STATEMENT=$STATEMENT' '$stmt2
done
echo 'Statement with sed -- > '... (5 Replies)
Discussion started by: Vaddadi
5 Replies
5. Shell Programming and Scripting
e.g.
/home/$USER/.config replace it with "" (empty)
Is this possible?
I think you should play a bit with sharps ## and sed:b: (2 Replies)
Discussion started by: hakermania
2 Replies
6. Shell Programming and Scripting
Hi Fellows,
I am new to shell, please help we me out in this..
i have file which some lines like this..
$$param1='12-jan-2011'
$$param2='14-jan-2011'
$$param3='30-jan-2011'
.
.
.....so on..
I want to change $$param3 to '31-dec-2011'. i have variable which is storing(30-jan-2011 this... (1 Reply)
Discussion started by: victor369
1 Replies
7. Shell Programming and Scripting
Can someone tell me how I can do this?
e.g:
a=$(echo -e wert trewt ertert ertert ertert erttert
erterte
rterter
tertertert
ert)
How do i replace the STRING with $a?
I try this:
sed -i 's/STRING/'"$a"'/g' filename.ext
but this don' t work (2 Replies)
Discussion started by: jforce
2 Replies
8. Shell Programming and Scripting
I have a file having some text like:
PATH_ABC=/user/myLocation
I have to replace "/user/myLocation" with a session variable say, $REPLACE_PATH,
where $REPLACE_PATH=/user/myReplaceLocation
The following sed command is not working. It is writing PATH_ABC=$REPLACE_PATH in the file
... (2 Replies)
Discussion started by: SKhan
2 Replies
9. UNIX for Dummies Questions & Answers
Hi All, Hoping someone can help....
I am trying to work out how I can ammend a log file to remove variable strings in order to remove confidential information which I cant pass on.
As an example I have used phone numbers. A large log file contains multiple lines containing something like the... (6 Replies)
Discussion started by: mutley2202
6 Replies
10. Shell Programming and Scripting
Hi,
Wish to remove "DR-" from the string variable (var).
var="DR-SERVER1"
var=`echo $var | sed -e 's/DR-//g'`
echo "$var"
Expected Output:
However, I get the below error:
Can you please suggest. (4 Replies)
Discussion started by: mohtashims
4 Replies
LEARN ABOUT DEBIAN
tfbs::patterni
TFBS::PatternI(3pm) User Contributed Perl Documentation TFBS::PatternI(3pm)
NAME
TFBS::PatternI - interface definition for all pattern objects (currently includes matrices and word (consensus and regular expressions )
DESCRIPTION
TFBS::PatternI is a draft class that should contain general interface for matrix and other (future) pattern objects. It is not defined and
not used yet, as I need to ponder over certain unresolved issues in general pattern definition. User feedback is more than welcome.
FEEDBACK
Please send bug reports and other comments to the author.
AUTHOR - Boris Lenhard
Boris Lenhard <Boris.Lenhard@cgb.ki.se>
APPENDIX
The rest of the documentation details each of the object methods. Internal methods are preceded with an underscore.
ID
Title : ID
Usage : my $ID = $icm->ID()
$pfm->ID('M00119');
Function: Get/set on the ID of the pattern (unique in a DB or a set)
Returns : pattern ID (a string)
Args : none for get, string for set
name
Title : name
Usage : my $name = $pwm->name()
$pfm->name('PPARgamma');
Function: Get/set on the name of the pattern
Returns : pattern name (a string)
Args : none for get, string for set
class
Title : class
Usage : my $class = $pwm->class()
$pfm->class('forkhead');
Function: Get/set on the structural class of the pattern
Returns : class name (a string)
Args : none for get, string for set
tag
Title : tag
Usage : my $acc = $pwm->tag('acc')
$pfm->tag(source => "Gibbs");
Function: Get/set on the structural class of the pattern
Returns : tag value (a scalar/reference)
Args : tag name (string) for get,
tag name (string) and value (any scalar/reference) for set
all_tags
Title : all_tags
Usage : my %tag = $pfm->all_tags();
Function: get a hash of all tags for a matrix
Returns : a hash of all tag values keyed by tag name
Args : none
delete_tag
Title : delete_tag
Usage : $pfm->delete_tag('score');
Function: get a hash of all tags for a matrix
Returns : nothing
Args : a string (tag name)
perl v5.14.2 2008-01-24 TFBS::PatternI(3pm)