Re: moves dot files to different directory

2002-06-28 Thread Bob Proulx
> >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

Re: moves dot files to different directory

2002-06-28 Thread Bob Proulx
> >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 ' ' |

Re: moves dot files to different directory

2002-06-28 Thread Derrick 'dman' Hudson
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

Re: moves dot files to different directory

2002-06-28 Thread Travis Crump
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

Re: moves dot files to different directory

2002-06-28 Thread Gary Turner
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

Re: moves dot files to different directory

2002-06-28 Thread Bob Proulx
> > > 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

Re: moves dot files to different directory

2002-06-28 Thread Brian Nelson
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

Re: moves dot files to different directory

2002-06-28 Thread Vineet Kumar
* 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

Re: moves dot files to different directory

2002-06-28 Thread Anthony Campbell
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

Re: moves dot files to different directory

2002-06-28 Thread Steve Juranich
> 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

Re: moves dot files to different directory

2002-06-28 Thread Derrick 'dman' Hudson
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

Re: moves dot files to different directory

2002-06-28 Thread David Z Maze
"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

RE: moves dot files to different directory

2002-06-28 Thread Sean 'Shaleh' Perry
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

moves dot files to different directory

2002-06-28 Thread Henning, Brian
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. thanks, brian -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECT