command question


 
Thread Tools Search this Thread
# 1  
command question

Hi all! I would like to ask..

What's the correct ls command or any other unix related command to List all files/directories that contain either an uppercase or lowercase G (or whichever letters) in their name?

Thank you Smilie
# 2  
Code:
ls *[gG]*

Cheers,
K
kamitsin
# 3  
Thank you soo much K
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #955
Difficulty: Medium
Modern antivirus programs cannot detect virus-patterns inside ordinary programs by scanning them for so-called virus signatures.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX and Linux Applications

Ls command question

I am scratching my head right now. I am trying to archive a ton of files in a directory. I am attempting to tar them by year. On our development server if I type ls *_2008* it returns all of the files I am expecting to see. (The format of the filename includes xx_xx_xxx_2008-09-29_xxx.xxxx.xxxx)... (8 Replies)
Discussion started by: jmartin99
8 Replies

2. UNIX for Dummies Questions & Answers

New to Unix command line and have a question about the "sort" command

I am going through the Unix Made Easy second edition book by John Muster. So far it's been very informative and I can tell it may be a bit out of date. In one of the exercises it talks about the "sort" command and using it to sort column's of data etc. The "sort" command has changed a bit and... (1 Reply)
Discussion started by: budfoxcat
1 Replies

3. Shell Programming and Scripting

question about cd command

I am a beginner in unix and need to work on a new unix server. When I tried cd by using the following command, it didn't work: $ cd /web/tariffs/tbcc and it returned me an error log like this: ksh: /web/r^?tariffs/tbcc: not found. But if I did it one folder at a time, it works $ cd /web $... (6 Replies)
Discussion started by: snow123451
6 Replies

4. UNIX for Advanced & Expert Users

ac command question

I found this thread, but it was closed: https://www.unix.com/unix-dummies-questions-answers/14300-wtmpx.html Computer at hand: Linux BH087608 2.6.9-78.0.17.ELsmp #1 SMP Thu Mar 5 04:52:17 EST 2009 i686 i686 i386 GNU/Linux Red Hat Enterprise Linux WS release 4 (Nahant Update 7) Yes I know its... (1 Reply)
Discussion started by: hpg4815
1 Replies

5. UNIX for Dummies Questions & Answers

mv Command question

When I use the mv command like say, mv file1 ../, it will move file1 to the parent directory of my current working directory. But where would the file go if I do mv file ... (with 3 periods), where would this move file1? (4 Replies)
Discussion started by: MaStErXLY
4 Replies

6. UNIX for Dummies Questions & Answers

cp command question

Hi, I am trying to copy a directory (uc-books) and its subdirectories and files. I am in the directory I want to copy the directories and files to and I am using the following command: cp - r /shares/apps/temp/uc-books . I don't get an error message but it's not copying anything either as... (4 Replies)
Discussion started by: kkcarlton
4 Replies

7. UNIX for Dummies Questions & Answers

Command Question

What does 'directory=`pwd $1` ' mean, I know pwd is present working directory, so does that command take the present working directory of the directory the user is in depending on the varible ($1)? (2 Replies)
Discussion started by: Jayden
2 Replies

8. Solaris

question about command

On Solaris 8 - what is the equal command to chfs. Thanks carson (3 Replies)
Discussion started by: cmackin
3 Replies

9. UNIX for Dummies Questions & Answers

question about using tr command

Hello all: I'm trying to use the tr command to change some text in a file, but it is not working as expected. Here's what I'm trying: tr 'INVOIC01' 'INVOICZZ' < inputfile > outputfile It looks to be changing not just the entire string, but any characters within. I just want to change the... (2 Replies)
Discussion started by: merliech
2 Replies

10. UNIX for Dummies Questions & Answers

question about rm command

i have a lot of messages file in the var directory i want to delete now i want to keep messages.1 to messages.10 and then delete everything else after 10 which is like 10 to 96 obviously i cant delete these files individual, can someone tell me the command to delete messages.11 to... (1 Reply)
Discussion started by: IMPTRUE
1 Replies

Featured Tech Videos