Search Results

Search: Posts Made By: liorfe
7
4,845
Posted By liorfe
sorry, i didnt express myself correctly, he run...
sorry, i didnt express myself correctly, he run rm ~ , no data was deleted but now when he enters his account, instead of going to his home directory, he goes in root directory.
7
4,845
Posted By liorfe
No data was deleted, but when he enters the user,...
No data was deleted, but when he enters the user, he is not directed to his home directory.
7
4,845
Posted By liorfe
rm ~
Some friend of mine used rm ~ and deleted his home directory, how can he restore it ?
22,838
Posted By liorfe
sed 's!\(+ sqlplus -S.*/\).*\(@.*\)!\1****\2!'
sed 's!\(+ sqlplus -S.*/\).*\(@.*\)!\1****\2!'
22,838
Posted By liorfe
One last thing, I need to limit it only to line...
One last thing, I need to limit it only to line that start with
+ sqlplus -S , not any line that contains / @ symbols.
22,838
Posted By liorfe
Thats right Franklin52, thats my desired output. ...
Thats right Franklin52, thats my desired output.

It works perfectly ! Thanks !
22,838
Posted By liorfe
Thank you Dan for your help. I have another...
Thank you Dan for your help.

I have another problem to resolve involving sed:
In the log I have the following line :

+ sqlplus -S env10/env10pass@DBL9

I put :

s/^\(.*+ sqlplus -S...
22,838
Posted By liorfe
Thank you Alex for the examples, its exactly what...
Thank you Alex for the examples, its exactly what I needed.
I used sed 's/^\(.*PASS=\).*/\1*****/' and it did the job.
Can you explain me what this sed contains? Or maybe give a link to read? I...
22,838
Posted By liorfe
Replace environment variables with sed
Hi,

I need to write a sed that replaces the value of all environment variables that have PASS in the name with ***** . I have a log file who prints the value of all environment variables...
Showing results 1 to 9 of 9

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