On 12/30/2014 11:24 AM, Hylton Conacher (ZR1HPC) wrote:
:~> find $HOME/Maildir -type d | egrep -v "/new"\|"/cur"\|"/tmp"\|"/courie* |sort > /home/hylton/maillistdir
All this gives me is a > prompt not my usual :~> and and no file to view. Inly Ctrl-C reverts to te standard prompt.
All this is SO close yet we are all missing something!!
Aw Gee, why don't you RTFM What you've gor there are a series of piped commands: 1. Find $HOME/Maildir -type d 2. Egrep -v "/new" 3. "/cur" 4. "/tmp" 5. "/courie* |sort > /home/hylton/maillistdir What the line should read is to omit the internal closing quotes and backslashes and have a proper closing quote: find $HOME/Maildir -type d | egrep -v "/new|/cur|/tmp|/courie*" |sort > /home/hylton/maillistdir If you're going to use backslashes to escape anything, the it should be the forward slashes in a regular expression egrep -v -E "\/new|\/cur|\/tmp|\/courie*" If you'd read the man page on shell, the sections I'd referred to, you'd see what I'm getting at here. Hylton, you real problem here is that you are doing cut and paste from a number of people who are using the shell in slightly different ways without any learning on your part going on. If you stepped back and tried learning, tried experimenting with parts rather than focusing on just this one command sequence then (a) you'd be able to generate the correct command sequence on your own and (b) you'd understand how to write shell command sequences, pipes and filters in the future and save all this hassle. i'm known for the line Context is Everything and its pretty much a maxim here because everyone has their system configured in their own way. Linux is not as restrictive as Windows. We can't solve your problems in detail, we can advise but you have to experiment and learn and interpret in your own context. There has to be effort on your part and just doing this cut-and-paste is not helping you learn. All the problems you are encountering could have been avoided of you read the manuals and examples on the web and experimented with parts. Linux, Unix, is not Windows, it is not about dumb pressing buttons and checking boxes on a GUI, it takes initiative and paying attention to what's in the manuals. -- /"\ \ / ASCII Ribbon Campaign X Against HTML Mail / \ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org