Search Results

Search: Posts Made By: rajneesh4U
13,609
Posted By Scrutinizer
If you want to do what is in the comments: ...
If you want to do what is in the comments:
##First name should be equal to 8 digits
case $var in
([0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])
echo "The first part of name equals 8 digits"
...
1,781
Posted By wisecracker
Well here you go... (I also missed the "done"...
Well here you go...
(I also missed the "done" statement on my first post.)
#!/bin/bash
str="rajneesh_kumar"
IFS=_
ary=($str)
for key in "${!ary[@]}"; do echo "$key ${ary[$key]}";done
cat >...
Showing results 1 to 2 of 2

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