> >ls -Ald ~/.??* | grep '^-' | sed 's/^\([^ ]*[ ]*\)\{8,8\}\([^ ]*\)/\2/'
>
> ls -Ald ~/.[^.]* | grep '^-' | tr -s ' ' | cut -d' ' -f9
> It is not that much shorter, but it sure is prettier at least to my eyes. :)
Or if we are just trying to have fun with one line scripting...
for i in $(echo
> >To ignore . and .., use -A (almost all). I also figured that
> >directories weren't needed, so grepped for regular files. Then used sed
> >to print only the 9th word.
> >
> >ls -Ald ~/.??* | grep '^-' | sed 's/^\([^ ]*[ ]*\)\{8,8\}\([^ ]*\)/\2/'
>
> ls -Ald ~/.[^.]* | grep '^-' | tr -s ' ' |
On Fri, Jun 28, 2002 at 07:56:16PM -0400, Brian Nelson wrote:
| Derrick 'dman' Hudson <[EMAIL PROTECTED]> writes:
| > On Fri, Jun 28, 2002 at 11:21:18AM -0500, Henning, Brian wrote:
| > | hello all-
| > | I have the task of moving all my hidden files to another
| > | directory. how can i select onl
Gary Turner wrote:
On Fri, 28 Jun 2002 12:23:44 -0500, Derrick 'dman' Hudson wrote:
On Fri, Jun 28, 2002 at 11:21:18AM -0500, Henning, Brian wrote:
| hello all-
| I have the task of moving all my hidden files to another directory. how can
| i select only these files and not the standard file
On Fri, 28 Jun 2002 12:23:44 -0500, Derrick 'dman' Hudson wrote:
>On Fri, Jun 28, 2002 at 11:21:18AM -0500, Henning, Brian wrote:
>| hello all-
>| I have the task of moving all my hidden files to another directory. how can
>| i select only these files and not the standard files.
>|
>| ls .* doesn
> > > ls -ad ~/.[^.]*
This is one of the FAQs in fileutils. Check it out!
http://www.gnu.org/software/fileutils/doc/faq/#ls%20-a%20*%20does%20not%20list%20dot%20files
Bob
pgpTmwImw1vEO.pgp
Description: PGP signature
Derrick 'dman' Hudson <[EMAIL PROTECTED]> writes:
> On Fri, Jun 28, 2002 at 11:21:18AM -0500, Henning, Brian wrote:
> | hello all-
> | I have the task of moving all my hidden files to another directory. how can
> | i select only these files and not the standard files.
> |
> | ls .* doesn't seem t
* Steve Juranich ([EMAIL PROTECTED]) [020628 10:49]:
> > ls -ad ~/.[^.]*
>
> I prefer:
>
> ls -ad ~/.??*
>
>
> Many less keystrokes, but to each his own.
... but not quite the same effect. This shell glob won't catch a file
called, say .g -- it requires 2 characters after the '.' . That's
prob
On 28 Jun 2002, Steve Juranich wrote:
> > ls -ad ~/.[^.]*
>
> I prefer:
>
> ls -ad ~/.??*
>
>
> Many less keystrokes, but to each his own.
>
Midnight Commander is good for this sort of thing.
AC
--
Anthony Campbell - running Linux GNU/Debian (Windows-free zone)
For electronic books on the
> ls -ad ~/.[^.]*
I prefer:
ls -ad ~/.??*
Many less keystrokes, but to each his own.
--
Stephen W. Juranich [EMAIL PROTECTED]
Electrical Engineering http://students.washington.edu/sj
On Fri, Jun 28, 2002 at 11:21:18AM -0500, Henning, Brian wrote:
| hello all-
| I have the task of moving all my hidden files to another directory. how can
| i select only these files and not the standard files.
|
| ls .* doesn't seem to work.
It does (but without "-a" you won't see them), but it
"Henning, Brian" <[EMAIL PROTECTED]> writes:
> I have the task of moving all my hidden files to another directory. how can
> i select only these files and not the standard files.
>
> ls .* doesn't seem to work.
Really? It does for me (or at least 'ls -d .*'). 'ls -a' will list
all files, even if
On 28-Jun-2002 Henning, Brian wrote:
> hello all-
> I have the task of moving all my hidden files to another directory. how can
> i select only these files and not the standard files.
>
> ls .* doesn't seem to work.
>
try:
find . -name ".*" -print
and go from there.
--
To UNSUBSCRIBE, emai
13 matches
Mail list logo