Search Results

Search: Posts Made By: kiran_j
2,744
Posted By stomp
read -n1 m_menu
read -n1 m_menu
13,298
Posted By RudiC
Using bash, you might be interested in the select...
Using bash, you might be interested in the select command provided?
13,298
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...
1,145
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,386
Posted By homeboy
you can extract the filename by command---basename
you can extract the filename by command---basename
2,386
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
62,658
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...
62,658
Posted By yinyuemi
x1="This is Kiran" x2=`echo ${x1##* }` echo...
x1="This is Kiran"
x2=`echo ${x1##* }`
echo $x2
Kiran
62,658
Posted By michaelrozar17
Another way.. x1="This is Kiran" x2=`echo...
Another way..

x1="This is Kiran"
x2=`echo $x1|cut -d ' ' -f3`
62,658
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 }'
62,658
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" : '.* \(.*\)'
2,391
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

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