Search Results

Search: Posts Made By: snowbiker99
17,655
Posted By snowbiker99
ok now this finally works: MYSTRING=`pwd...
ok now this finally works:

MYSTRING=`pwd |awk -F \/ '{print $3}'|tr '[a-z]' '[A-Z]'`
MYSTRING="$MYSTRING\:\\\:"
MYVAR=`subst |grep $MYSTRING | sed -e 's/.*\\\//'`;

basically I needed to...
17,655
Posted By snowbiker99
a possible result of subst is e.g. following four...
a possible result of subst is e.g. following four lines:

M:\: => C:\subdir1\subdir11\subdir111
N:\: => D:\subdir2\subdir22\subdir222
W:\: => C:\subdir3\subdir33\subdir333
Z:\: =>...
17,655
Posted By snowbiker99
Hi and thanks for replying. I tried your...
Hi and thanks for replying.

I tried your suggestion but the command never returns.

if I echo $MYSTRING the result is M:\:

Is there another method by first constructing a string with the...
17,655
Posted By snowbiker99
assign subst|grep|sed command result to a variable
Hi,
I'm quite new to scripting and I want to modify following line of an existing script:

MYVAR=`subst |grep 'L:\\\:' | sed -e 's/.*\\\//'`;

What I have to do is to use the content of a...
Showing results 1 to 4 of 4

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