LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-09-2011, 11:53 AM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,543

Rep: Reputation: 51
ls -a *vim* does not find .vimrc notwithstanding it is there.


As you can easily see:
Code:
semoi@darkstar:~$ ls .vimrc
.vimrc
semoi@darkstar:~$ ls -a *vim* 
/bin/ls: cannot access *vim*: No such file or directory
semoi@darkstar:~$
What is my mistake?
 
Old 07-09-2011, 12:09 PM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Filenames beginning with a dot aren't matched by a glob. You can use the dotglob option to make the match. Excecute --> shopt -s dotglob then try again.
 
1 members found this post helpful.
Old 07-09-2011, 12:40 PM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,543

Original Poster
Rep: Reputation: 51
I could have issued the command but instead I went first to the bash manual where I found the shopt builtin command with its -s option (set or enable) and the dotglob optname. Thanks a lot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hi i not getting my .vimrc file in this path ~/.vimrc dina3e Linux - Newbie 6 07-31-2012 04:36 PM
vim configuration (.vimrc) muthu_al Linux - Newbie 1 03-07-2011 10:56 PM
What's the command to reload .vimrc without restarting vim? cola Linux - Newbie 2 03-26-2010 01:41 PM
Configure php.vim in vimrc xeon123 Linux - Newbie 1 03-24-2010 12:16 PM
wher is my vimrc file and the .vim directory slac 10.0 rkrishna Slackware 3 04-11-2005 03:50 AM


All times are GMT -5. The time now is 04:35 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration