Search Results

Search: Posts Made By: nguyendu0102
1,687
Posted By zaxxon
Try: ps <your flags>| grep -w bash| grep -v...
Try:

ps <your flags>| grep -w bash| grep -v grep| wc -l
38,090
Posted By pravin27
Try this, #!/bin/sh echo -n "Enter a...
Try this,

#!/bin/sh

echo -n "Enter a string:"
read var
first_char=${var:0:1}
len=$(expr length $(echo "$first_char" | tr -d "0-9") 2>/dev/null)
if [ $len > 0 ]
then
len=$(expr...
38,090
Posted By zaxxon
Not sure why it didn't work with that syntax -...
Not sure why it didn't work with that syntax - the following should work. I put it into a while loop so you don't have to execute it after each input:


echo "Enter a string:"
while read var; do...
Showing results 1 to 3 of 3

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