[S.u.S.E. Linux] ls for maniacs
Dumb question; I'm trying to run a script that will give me the files in one of my XFMail folders for *today only*. How can I filter the output of ls thus? This is a crazy workaround I found... #!/bin/bash # wacky command line to cat the LATEST of all the files to a text file cat `ls -t -r ~/Mail/Pilot/? ~/Mail/Pilot/?? | gawk 'END { print $0 }' - ` > tempmail.txt The problem is that this only gives ONE file for today, I'd like a few. I know the END chunk kinda foils that... it just seems that this is getting way too complex for something that really shouldn't be. (I'm grabbing the latest PalmPilot digest and want to compile it to a compressed document format and zing it over) Any better ideas? --- jonathan@aracnet.net "The wages of sin are death; but after they're done taking out taxes, it's just a tired feeling:" -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
I have successfully gotten on to the Net(using Netscape in Linux right now!). Thank you for the help and suggestions. Problem #2: When I'm in KDE, I will have a couple of windows open and performing even a minor task. Then go to open something else, or close a program. When this happens, LInux begins to look like Windows 95 with 8MB of RAM. Everything stops responding and the hard drive starts going, and going, and going. I have walked away and left it for more than 5 minutes and the hard drive will still be going. This has happened to me three times now. Other times, KDE does start to slow down and takes time to respond to commands. My system should be capable of better performance then this. I am running: Abit IT5H HX chipset K6-233 64 MB of EDO Adaptec 2940W(an older one!) two scsi drives (2GB and 1 GB) Linux is on the 1 GB booting to /sdb1 and an 85 MB swap partition /sdb5 Diamond 3D 3000 4MB Any ideas??? -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Steve Montgomery wrote:
When I'm in KDE, I will have a couple of windows open and performing even a minor task. Then go to open something else, or close a program. When this happens, LInux begins to look like Windows 95 with 8MB of RAM. Everything stops responding and the hard drive starts going, and going, and going. I am running:
Abit IT5H HX chipset K6-233 64 MB of EDO Adaptec 2940W(an older one!) two scsi drives (2GB and 1 GB) Linux is on the 1 GB booting to /sdb1 and an 85 MB swap partition /sdb5 Diamond 3D 3000 4MB
Any ideas??? ===================================
Can only offer you a comparison....my 486-100 running 5.2 w/40 megs and an ATI mach32 2-meg almost never gets in the swap with KDE/Netscape/& lots of other junk on the desktop. Not what I would call 'snappy' but not too bad either. Something is looped on yours. Don C. -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
On Sun, May 17, 1998 at 10:43:31PM -0400, jonathan@aracnet.net wrote:
Dumb question;
I'm trying to run a script that will give me the files in one of my XFMail folders for *today only*.
How can I filter the output of ls thus? This is a crazy workaround I found...
#!/bin/bash # wacky command line to cat the LATEST of all the files to a text file cat `ls -t -r ~/Mail/Pilot/? ~/Mail/Pilot/?? | gawk 'END { print $0 }' - ` > tempmail.txt
The problem is that this only gives ONE file for today, I'd like a few. I know the END chunk kinda foils that... it just seems that this is getting way too complex for something that really shouldn't be.
How about ls -lart the key flags are r and t, t is for list in order of date and r is so that the newest date will come last. -- Andrew L. Davis Network Operations adavis@vprlnk.net ViperLink International -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
Hi! Trying to kill the keyboard, jonathan@aracnet.net produced:
Dumb question; There are only RTFM-Questions :-) (and this isn't one)
I'm trying to run a script that will give me the files in one of my XFMail folders for *today only*.
Well, there is find. And there is grep. I think you want ls -lad `find . -daystart -mtime 0` (-d since if the directory was changed, you'd want it listed, not the contents) -Wolfgang -- PGP 2 welcome: Mail me, subject "send PGP-key". If you've nothing at all to hide, you must be boring. Unsolicited Bulk E-Mails: *You* pay for ads you never wanted. Is our economy _so_ weak we have to tolerate SPAMMERS? I guess not. -- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e
participants (5)
-
adavis@hayson.vmarketing.com
-
biggles@ccms.net
-
jonathan@aracnet.net
-
srmontg@ibm.net
-
weissel@jupiter.ph-cip.uni-koeln.de