Search Results

Search: Posts Made By: Scarlos
2,210
Posted By Scarlos
This is the value: echo $PASSWORD martinsc...
This is the value:

echo $PASSWORD
martinsc

However, I dont want to use the value in the file. I need to use the variable $PASSWORD.

Thank you.
2,210
Posted By Scarlos
Awk with variables
Hi

I have a file with a line like this, wich is read by an awk script :

Logical Name | Server Type | Server1 | DB1 | User1 | $PASSWORD | Serv2 |DB2 | User2 | $PASSWORD

Awk reads it fine,...
17,230
Posted By Scarlos
Make sed ignore lines
Hi

I use sed in a script for severall changes in files. I whish one of the substitutions I made to be aplied to every line that has the word "scripts" with the exception for the ones that start...
4,087
Posted By Scarlos
getting a substring
Hi,

I have several lines like this ones:

123456789abcde /aa/bb/123456_$data.log
123456789abcde /aa/bb/123456_not_a_data_log
987654321ab /aa/bb/xpto123456_$data.log

...

How do I get into...
1,564
Posted By Scarlos
For with files
Hi again.

I have a simple question now, but i dont know how to solve it.

I have a script where i make several changes to files. I currently run it for the whole directory. I want to run it just...
3,553
Posted By Scarlos
Thanks, it works just fine =D
Thanks, it works just fine =D
3,553
Posted By Scarlos
Ok, I have a file with other substitution...
Ok,

I have a file with other substitution commands. The one concerning this case is as follows:

s/scrpts/$BUSINESS_SCRIPTS/

Then I invoke sed like this:

sed -f sedscript input_file >...
3,553
Posted By Scarlos
Sed - substitution for whole string
Hello

I have several files where a string similar to this appears:

/home/workload/bin/ProcDly/scrpts/T54.sh > $LOG


I need to change it to something like this:

$VARIABLE > $LOG

...
2,528
Posted By Scarlos
Add a line to a file.
Hi

I need to add a line to several files. But this line can only be added if it has an 'a' or 'A' in its current first line and only for the first line of each file.

I tried sed, but i cant...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 11:33 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy