Search Results

Search: Posts Made By: dampio
4,513
Posted By Chubler_XL
This is working as expected in bash 4.4.12 $...
This is working as expected in bash 4.4.12

$ var="/etc/tomcat/server.xml /etc/tomcat/test/server.xml"
$ var2=( $var )
$ echo ${var2[0]}
/etc/tomcat/server.xml
$ echo ${var2[1]}...
1,838
Posted By rbatte1
Might I also suggest a case statement rather that...
Might I also suggest a case statement rather that if...then...elif...then...elif...then...elif...then...fi

Perhaps this might be neater:-case "${OSType1}" in
Linux) echo "This is Linux" ...
2,745
Posted By Scott
Your desired output is inconsistent. You want the...
Your desired output is inconsistent. You want the trailing /, or not?

sed "s|\(.*/logs\)[$/].*|\1|" # no
sed "s|\(.*/logs[$/]\).*|\1|" # yes


grep -o can do the same thing, probably more...
1,560
Posted By apmcd47
SunOS (Solaris) is not Linux. Don't expect Linux...
SunOS (Solaris) is not Linux. Don't expect Linux utilities to have the same behaviour as Solaris utilities of the same name. Have you checked the man page for fuser on Solaris?
Solaris:
-s sig...
Showing results 1 to 4 of 4

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