check these
from the bash manual it says for [[ expression ]]
and you can try like this [but wild char(asteriks) doesnot cause the expansion]
i remove the parentheses because it does not like seem as special chars.
and this may be like this
if used the asteriks(*) char in the your regex then you must be it in the quotes for escaping its meaning so shell is not to expand it.
so it is ok because asteriks char matches S* -> [ SK_BTS04A_hiQ_01b ]
with single square brackets bash gives error beacuse of [a-z] and other expression's expansion brings a lot of char sets and does not recognized by shell by globbing '*' and single bracket have not capable of manage this.
with double brackets bash manages it with quotes (you can think word splitting automatically created with the double quotes in the [[..]] to IFS)
regards
ygemici
These 2 Users Gave Thanks to ygemici For This Post:
Hi
I have installed solaris 10 on an intel machine. Logged in as root. In CDE, i open terminal session, type login alex (normal user account) and password and i get this message
No utpmx entry: you must exec "login" from lowest level "shell" :confused:
What i want is: open various... (0 Replies)
Hi,
The below script should should create a file "COUNTFILE.log" if not found. But I am trying to run this and it is not creating the file .
#!/bin/sh
find . -name "COUNTFILE.log" > /dev/null 2>&1
if ; then
echo 0> COUNTFILE.log
fi
Please advice why it is not creating... (8 Replies)
Hi,
This is odd, however here goes. There are several shell scripts that run in our production environment AIX 595 LPAR m/c, which has sufficient memory 14GB (physical memory) and horsepower 5CPUs. However from time to time we get the following errors in these shell scripts. The time when these... (11 Replies)
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)