Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: kiran_j
1,090
Posted By stomp
read -n1 m_menu
read -n1 m_menu
7,085
Posted By RudiC
Using bash, you might be interested in the select...
Using bash, you might be interested in the select command provided?
7,085
Posted By stomp
Add: "") option_1;; Maybe you're...
Add:


"") option_1;;
Maybe you're interested in "dialog"(Needs to be installed first) too. dialog is text-based dialog.

See:
DIALOG – Script-driven curses widgets...
821
Posted By RudiC
Try awk '/username/ {print $2} /rolename/ {print...
Try awk '/username/ {print $2} /rolename/ {print $2 $3 $4}' infile
username="eramire"
rolename="VIEW_EVERYTHING"/>
username="dgarza"
rolename="VIEW_EVERYTHING"/>
rolename="EbisReadOnly"/>...
2,041
Posted By Franklin52
You can something like: FILE=`find ./ -type...
You can something like:

FILE=`find ./ -type f -name "${name[$j]}"`
if [ `echo "$FILE"|wc -l` -gt 1 ]
then
echo "$FILE present in multiple path"
fi
2,041
Posted By homeboy
you can extract the filename by command---basename
you can extract the filename by command---basename
38,223
Posted By clx
You should start new thread for different...
You should start new thread for different topic/issue.

Try something like...

Temp=`find /apps12i -name $File | wc -l`

if [ "$Temp" -gt 1 ]; then
echo "abc.log file present in multiple...
38,223
Posted By clx
I guess no need of "echo" here. x2=${x1##* }...
I guess no need of "echo" here.

x2=${x1##* }

Another way,

expr "$x1" : '.* \(.*\)'
38,223
Posted By r05h777
There is always another way in Linux ::) ...
There is always another way in Linux ::)

x1="This is Kiran"
x2= `echo $x1 | awk '{ print $NF }'
38,223
Posted By michaelrozar17
Another way.. x1="This is Kiran" x2=`echo...
Another way..

x1="This is Kiran"
x2=`echo $x1|cut -d ' ' -f3`
38,223
Posted By yinyuemi
x1="This is Kiran" x2=`echo ${x1##* }` echo...
x1="This is Kiran"
x2=`echo ${x1##* }`
echo $x2
Kiran
2,039
Posted By pravin27
Hi, Could this help you ? #!/bin/sh ...
Hi,
Could this help you ?
#!/bin/sh

isnumber (){
isnumeric=`expr length $(echo $1 |tr -d '0-9') 2>/dev/null`
echo $isnumeric
}
echo -n "Enter number of users:- "
read users
res=$(isnumber...
Showing results 1 to 12 of 12

 

Featured Tech Videos

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