does not make much sense in terms of Regular Expressions. When using grep, you use Regular Expressions, not shell wildcards.
Try this instead:
With shell metacharacters like * you specify "any amount or none of any type of character".
In Regular Expressions you write the same with ".*" which means
Since the dot is a special character in the Regular Expressions, you have to escape it with a backslash when you want it being recognized and not substituted.
Also you could just leave the grep out and do something like "ls *.rpm".
Last edited by zaxxon; 04-14-2009 at 07:38 AM..
Reason: repaired the quote ;)
Hi
I am doing scripting using EXPECT module.
I have successfully created the code through which i can login automatically
#!/usr/bin/expect
spawn ssh 127.0.0.1
expect "abc@127.0.0.1's password:"
send "xyz\r"
now i want to create directory
#!/usr/bin/expect spawn ssh... (0 Replies)
HI
-rw-r--r-- 1 synapse synapse 5242816 Jan 14 22:02 SMSCLOG.25
-rw-r--r-- 1 synapse synapse 1224138 Jan 14 22:14 SMSCLOG.26
below is the file which are generated after every 10 mins
i am trynig do scripting in which latest generated file get cta and give ouput
I use the below code
... (1 Reply)
I have one table contains the last field is gender and it is entered in small letter ,i would like to convert to caps after checking the field?
eg:
eno ename loc gender
1 a ch f
2 b hy M
3 c hy m
4 d ... (1 Reply)
Hello guys,
I am a newbie to Shell Scripting. I have an issue. My requirement is to search a pattern in a file and then replace it with another pattern. Please note that I have thousands of files having the same pattern and I have to replace it running a script.
I have created a script as shown... (4 Replies)
I am trying to write a script that tells us whether the permissions for two files, whose names should be given as arguments to the script, are identical.
And if the permissions for the two files are identical, have to output the common permission field. or else output each filename, followed by... (0 Replies)
hI
I m very new to unix ,...
I m facing an issue
I have to search though a list of directorys, find all .gz files which are older than 7 days and delete that ,,,
Any one knows a single command to do this ..
Thnks in advance
BInu (3 Replies)
Does anyone know of some companies in the United States, preferably close to Utah that teach a crash course like for a week on UNIX fundamentals? I have looked everywhere on the net for such places, but have yet to find such a company.
Thank you in advance. (1 Reply)