Search Results

Search: Posts Made By: ThuongTranVN
72,258
Posted By ThuongTranVN
Thank you so much for your help. I've got it as...
Thank you so much for your help.
I've got it as follows:
FOO="\/scratch\/databases"
echo $FOO | sed 's/\\$//' > tmp.log
DAEHOME=`cat tmp.log`
I can not use
DAEHOME=`echo $FOO | sed 's/\\$//'`
72,258
Posted By ThuongTranVN
Re: \\
Hello,
Thank you so much for your reply.
I tried
Code:
:%s/\\$// don't replcae '\' character at the end of line
:%s/\\// replace only first '\' character of line
:%s/\\//g replace all '\'...
72,258
Posted By ThuongTranVN
Shell Script: Cut '\' character in string
I have a string "\/scratch\/databases\". I want
to have a new string "\/scratch\/databases" by cutting last '\' character using shell script. I can't do this
Please help me.
Thanks in advance...
Showing results 1 to 3 of 3

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