Color with more, less, tail, head, ect?

Is it possible to have the more, less, tail, or head commands retain the color in the console?  For instance, "pacman-color -Ss kde4 | more" will strip all the colors.  ...or is there an alternative command that I may not know about that retains the colors?
Thanks,
Jason

test1000 wrote:
ls --color=auto means: show colors if stdout is a terminal, if the output is(sent into) a pipe, don't use colors.
you have to use the always flag if you always want colors... same behaviour in grep and some other tools too if i recall correctly.
btw, this is in info documentation(for colored info docs, use pinfo). 'pinfo ls'
--color=always This was it!
I always did alias to ls='ls --color=auto', although I should have known better, having read man ls, info ls so many times.
When feeding through less, remember to allow raw control codes, though.
ls -l --color=always | less -R
does its coloring job.
Ah, well, another topic to remember firmly. Thanks!
Last edited by bernarcher (2009-03-21 12:39:25)

Similar Messages

  • Reports with more than 100 columns

    I am using Apex 3.2. I am using a classic report with more than 100 columns. So to use the custom heading in the report, I exported the page,did modification in exported sql file and imported back.
    But when I am passing the parameters from a input screen for the first time either it is showing the all data avilable in the database or with only header. If I do the refresh in input screen and try it then it is working as intended. I am updating at the below loaction of the page.Let me know if I have to update anything more in the sql file.
    declare
    s varchar2(32767) := null;
    begin
    s := null;
    wwv_flow_api.create_report_columns (
    p_id=> 200100535534034253 + wwv_flow_api.g_id_offset,
    p_region_id=> 2003453533453 + wwv_flow_api.g_id_offset,
    p_flow_id=> wwv_flow.g_flow_id,
    p_query_column_id=> 157,
    p_form_element_id=> null,
    p_column_alias=> 'XYZ',
    p_column_display_sequence=> 157,
    p_column_heading=> 'XYZ 123',
    p_column_alignment=>'LEFT',
    p_disable_sort_column=>'Y',
    p_sum_column=> 'N',
    p_hidden_column=> 'N',
    p_display_as=>'WITHOUT_MODIFICATION',
    p_pk_col_source=> s,
    p_column_comment=>'');
    end;
    /

    Hi,
    Its just a general thought and I realize you know your application and user community better I do, but do you think your users are going to be very happy when they are presented with a report with more than a hundred columns? Have you considered maybe presenting the data in some sort of rolled up form from which the user can then drill down to the data they are particularly interested in. Also, I'm sure your LAN administrator would be happy not to see 100+ column by x number row reports being regularly shipped across the network.
    Also, 100+ column reports suggests tables with 100+ columns which are probably not designed in a very relationally compliant way. I find that good DB design usually results in applications that have to make less compromises, such as hacking export files in order to fool the API into making ridiculous, unsupported and unsupportable compromises.
    Just a thought..................
    Regards
    Andre

  • How to synchronize colors with two different video cameras

    I own Sony FX1 and HC9 video cameras. The color between the two video cameras can be pretty noticeable, and I tend to flip between the two cameras a lot during editing. Ideally I would get them to match up better before I start filming, but despite my attempts, I still can see a noticeable difference between them in post-production. I know I can use the color corrector filter to adjust the colors, but is there a more effective way to adjust the colors of the two video so they match better? I have used that eyedropper on the "visual" screen of the color corrector to adjust the white balance. Is there something similar where I could for example click the eyedropper on the blue of one video and it would change the blue of the video from the second camera to match?

    You don't really have the controls for that in FCE. You can't fine tune the color with real precision for color matching in FCE. There is a match hue function with the eyedropper, but without separate shadows, mids, and highlight color controls there is only so much you can do.

  • HP Color Laserjet 1600 cannot print in color with Pages 09

    Hi, everybody!
    I got a huge problem for me that the HP Color Laserjet 1600 cannot print in color with Pages 09 after I upgrade to 10.6.1. It worked very well in 10.5.8. Since there is no official driver from HP website for 1600, so I used foomatic/foo2hp as the driver.
    It is very strange that I can print in color with Safari and Preview in 10.6.1, but cannot with Pages 09. When I print with Pages 09, it always shows that the print job was completed but my printer was nothing happened.
    I just re-install the 10.6 OS "complete new", install the printer driver with the instructions on this forum.
    It would be high appreciated if somebody can help me on it!

    Why doesn't MAC just give us the driver for the HP Color Laserjet 1600? It's one of the most popular home based business laserjets. It's the one I use and a lot of other people in business use it so I'm at a loss as to why they don't.
    I bought my MAC Pro tower for video editing and I can't print from it and have had to reinstall the OS on it once already because Safari wouldn't open a window. So much for the MAc advertising statement of "We're so much easier to use."
    After spending close to $10,000 on MAC equipment, Tower, Laptop, Monitor, etc. if they think I'm going to spend more for a new printer just because I can't get a driver to print they're thinking wrong. I going to re-think my new cell phone purchase too. Has anyone had software issuses with their phones before I go out and buy one?

  • Throw Information message for sale order created with value less that 5$

    Hi all,
            I am basically an abaper, I have got a requirement in SD. The requirement is any sales order created with value less that 5$, should be prompted with an error message saying the minimum order value should be more than 5$. Could any one help me on this.
    Thanks in advance,
    shiv

    userexit_save_document_prepare,main program - sapmv45a, issue an error message if your document value is less than 5$ (VBAK-NETWR) but check if your order has any non-rejected item, I would not issue this message if all items are rejected:
    loop at xvbap where updkz ne 'D' and abgru = ' '.
      exit.
    endloop.
    if sy-subrc = 0.  "-you have at least one non-rejected, non-deleted item.
    NOTE: sapmv45a works NOT only for orders, so please check document types in your logic which are relevant to your messge only (VBAK-VBTYP and/or VBAK-AUART).

  • Case structure with more than 200 cases, slower lab view app

    Problem Description :
    i am currently making a vi which compose of a simple case structures, a case structure with more than 200 cases, what i noticed is that the more i added cases the slower the labview reacts, it takes time for me to route wire on each of the cases.
    i dont know if there are any setting in the labview environment that i can increase the buffer size? i dont know... but its getting slow (only on the
    vi with more cases in a case structure)
    mytestautomation.com
    ...unleashed the power, explore and share ideas on power supply testing
    nissanskyline.org
    ...your alternative nissan skyline information site

    Can you clarify what you mean by "slow". Does it run more slowly or does it feel sluggish during editing?
    Could you attach the actual VI?
     Overall, I agree with the notion of local variable overuse. For example, you read the same local variable twice in the same case. Is there a need for this? Is there a chance that it varies between the two reads? Typically, you would place the terminal in front of the case structure and wire to all the locations where you need the value. This ensures that the data is consistent. Still, this should not cause any slowdown problem.
    (On a sidenote, the code in the upper left corner is inefficient. You convert the same data to lower case with each iteration, so you might want to place this before the loop and do it only once (well, if you are lucky, LabVIEW will fold the operation, but still....). Also your "index array" operation can be replaced by autoidenxing of the 2D array on the outer loop boundary.)
    LabVIEW Champion . Do more with less code and in less time .

  • Service interface with more than one operation

    Hi all,
    is it possible to have a service interface with more than one operation?
    I have found this blog:
    http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414900)ID0209118050DB10459657028039341762End?blog=/pub/wlg/15123
    But this sentence:
    ABAP proxy (inbound/ outbound) cannot be developed out of a Service Interface having Operations with different type of messages included. If an ABAP proxy is to be developed then all the messages included should be of one type i.e. either the included messages should be Message Type, External Message, IDOC or RFC Message. This behavior can be observed when a Service Interface is created and then subjected for a check
    regards

    Hi,
    now the interface is running but I get another error in .NET.
    "The header 'Diagnostic' from the namespace 'http://sap.com/xi/XI/Message/30' was not understood by the recipient of this message, causing the message to not be processed.  This error typically indicates that the sender of this message has enabled a communication protocol that the receiver cannot process.  Please ensure that the configuration of the client's binding is consistent with the service's binding. "
    Any ideas?
    regards

  • How to compensate Cyan color with other colors with using profile

    Hi Guys,
    I am using Adobe Illustrator CS3. Mac OS 10.4.11. I need a help regarding color compensate. let me explain clearly. I am doing a project in that i need to delete Cyan color and need to compensate with MYK colors. Is there any short way to get with good result.
    FYI: we have UCR (Under Color Remover) profile which is for Black. With using this profile we can compensate black color with CMY with good result. Like this way only I want Cyan color compensate.
    Is there any profile or method for that. If there, please share with me....
    HARI

    I am doing a project in that i need to delete Cyan color and need to compensate with MYK colors. Is there any short way to get with good result.
    You are getting rid of the C channel completely and trying to create the same color balance usign the M,Y and K plates? Quite simply - impossible unless your images have a narrow color spectrum. The K to some extent can be used to replace a lot of the density normally associated with the C. But there is a large part of the color wheel that you cannot produce with no C at all.
    with actions and scripting it is not possible. because all the images are different, we need to work according to image.
    This is not true. Actions are probably more powerful than you are aware and can be designed to bring up dialogs to allow you to tailor each image to your needs.

  • I have a L7680 All in with two new print heads but the new cyan/magenta shows yellow monitor status.

    I have a L7680 All in with two new print heads but the new cyan/magenta shows yellow monitor status. Ink status, cyan more than 50% and magenta is a 25% w/no low ink warnings... Just ran a clean print head again, print out looks good now but the status of the new cyan/magenta shows yellow monitor status. Is it time to buy another..When I purchased this printer it had to be replaced 3 times because of problems... Just a lemon?
    thx for your help in advance...
    Jim

    Could you share a link to the page?
    Seeing it in context and in our browsers is much easier to debug.
    If not, make sure to run the validator here The W3C Markup Validation Service and clear out any problems. HTML errors, especially structural ones, will cause all kinds of display problems in various browsers/versions/platforms.

  • Cisco ACE loadbalancing matching more than one header in L7 class map

    Dear All,
    This is regarding Cisco ACE loadbalancing matching more than one header in L7 class map. I have a small setup with ACE 30 module in Cisco6500. I have got three webservers. Presently I have following configuration where I am mathing one url header.
    class-map type http loadbalance match-all L7_WEB_HEADER_MATCH
    description MATCH THE HOST HEADER OF HTTP REQUEST
    2 match http header Host header-value ".*abhisar.com*"
    So for above configuration, when traffic is coming for abhisar.com, it is working fine.
    Now, I have following headers and DNS entry is pointing to same virtual IP for all http url header same as abhisar.com
    abhisarindia.com
    indiaabhi.com
    So new configuration will be
    class-map type http loadbalance match-any L7_WEB_HEADER_MATCH
    description MATCH THE HOST HEADER OF HTTP REQUEST
    2 match http header Host header-value ".*abhisar.com*"
    4 match http header Host header-value ".*abhisarindia.com*"
    6 match http header Host header-value ".*indiaabhi.com*"
    So just want to confirm if this is fine.
    Thank You,
    Abhisar.

    Dear Rajesh,
    Thank you for reply. I will let you know once I carry out this activity.
    Thank You,
    Abhisar.

  • What will I notice with more RAM? or FCE HD?

    Right now FCE2 seems to be laboring between tasks. Since I just upgraded to the intel it is kind of a disappointment because my g4 Ibook never blinked (at all)... I like the new mac but seems like the old one handled more with less processor and same ram... Is it the older FCE2 or do I need more RAM? Would like to get dialed in for performance... so I can get more work done...

    FCE2 is running under Rosetta. Since it is not a Universal Binary program it will not work as well as FCE3. 512 Mb ram is not much even for running FCE3. You would get better performance with more RAM. RAM is very cheap right now, I paid $39.00 US for a 1 GB stick recently. More RAM would help your FCE2 run better. You would also find it improves a lot of other things on your Mac.

  • How can I replace a color with a pattern fill?

    Hi everyone, thanks for any responses in advance!
    I've created quite a detailed design that works with 4 pixels per cm and 16 colors, canvas size 120x170cm. I'm wanting to replace all of a single color with a pattern, is there a way to do this?
    I can replace a color with another flat color by using adjustments etc... but I want to fill the entire of one color area with a pattern instead. The only way I can think to do this would be to use the magic wand tool to select every pixel of the same color, then create a new layer and overlay with a fill of the desired pattern, however as the design is so detailed it would take me an awful long time to select each color!
    Can anyone suggest a quicker more efficiant way to do this?
    Thanks!

    Select --> Color Range
    Mylenium

  • Using Portable Home Directories with more than one client

    Hi, I've got a general question about Portable Home Directories (PHD) that I'm hoping someone with more experience can help me with. I've only ever tied used PHDs to tie a Network Home to a single laptop in the past. But now I'd like to sync the home directories of a user that uses both an iMac (in the office) and a MacBook Air (on the road).
    Any caveats to watch out for if we do this?
    What if the user is logged into both machines at the same time?
    What if the home directory on the iMac is larger than the entire SSD on the MacBook?
    Appreciate any advice before heading down this path…

    well... my english is not so good but i will try to explain it to you...
    iTunes have a funcion that put the music in the iPod automaticaly and it will put the music of THAT computer in your iPod.
    so when you conect your iPod go to options and select put the music manually or something like that (i have it in spanish XD)
    or go to the "help" in iTunes > "help iTunes" then... charge iPod > charge iPod manually
    this is dificult to explain in english im from argentina XD i hope you understand me XD

  • OAS 4.0 and Oracle 8i refuse to exec stored proced with more than 20 params

    Hi,
    I'm programming a web application with stored plsql procedures and Oracle Application Server.
    I started using Oracle 8.0.5 and OAS 4.0. It was working fine until I needed to use dynamic plsql and decided to upgrade to Oracle 8i (8.1.7).
    Some of my stored procedures have more than 20 input parameters and didn't supose any problem in the "old" installation, but now when I try to execute
    them via OAS over Oracle 8i it returns an error as if the number of parameters I gave were incorrect.
    Modifying the procedure so it has less than 20 parameters works fine.
    In resume: with the same input form and the same stored procedure with more than 20 input parameters works under Oracle 8.0.5 but fails under 8i.
    Any ideas why the newest version doesn't accept more than 20 parameters?
    Thank you.
    Miquel Salvà
    [email protected]

    Hi Martin.
    So, as far as i understood is the step where data is loaded into database that is taking too long ?
    Wich one of these is your cenario ??
    Cenario 1
    Step 1) Export product data as CSV fike
    Step 2) 3rd party app parses data (some processing is done in CSV file) generating another (or overwritting the original) CSV file
    Step 3) CSV file generated in step 2 is pushed to database using sqlloadr
    Step 4) Some pos-loading transformation is done
    Cenario 2
    Step 1) Export product data as CSV fike
    Step 2) CSV file is loaded into database using SqlLoader
    Step 3) After sqlloader is finish, some post-load processing is done
    Step 4) 3dr party transformation is done
    I think your problem can be in loading that data into database.
    Is the CSV file big?
    you can fasten sqlloader using direct-mode, destination tables can be in nologging mode (faster) and with the right space allocated (avoiding segment alocattion overhead)
    Best Regards
    Rui Madaleno

  • Owa_text.vc_arr: can't handle the string with more than 4000 characters?

    In the Oracel Web Application Server 4.0 documment, it says
    about owa_text.vc_arr :Type vc_arr is table of varchar2(32767)
    index by binary_integer.
    I amusing PL_SQL with Oracle8i and OWA4.0 web server.I want to
    use owa_text.vc_arr to pass the multple line texts in my form.
    If the text length is less than 4000 characters, everything works
    fine.However when the texts are longer than 4000 characters but
    less than the max length 32767 characters, I got this error
    message:
    OWS-05101: Execution failed due to Oracle error 2005
    ORA-02005: implicit (-1) length not valid for this bind or define
    datatype.
    Owa_text.vc_arr is supposed to handle the string with more
    than 4000 characters, is it true? Could anyone tell me why? Any
    help will be greatly appreciated!!!
    Thanks very much.
    Helena Wang
    Here is the pl_sql procedure to create my form:
    PROCEDURE myform
    IS
    BEGIN
    htp.p('
    <form action="'||service_path||'helena_test.saveform3"
    method=post>
    <input type=hidden name=tdescription value="X">
    Input1: <textarea name=tdescription rows=50 cols=70
    WRAP=physical></textarea>
    Input2: <textarea name=tdescription rows=50 cols=70
    WRAP=physical></textarea>
    <input type=submit name=WSave value="Save">
    </form>
    END;
    /***** here is the pl_sql procedure which I use to save the
    form***/
    procedure saveform3(tdescription in owa_text.vc_arr,
    WSave in varchar2 default 'No')
    is
    len pls_integer;
    begin
    for i in 2..tdescription.count loop
    len := length(tdescription(i));
    htp.p(len);
    htp.p(tdescription(i));
    end loop;
    end;

    Helena, I think you might get a better response either from the SQL-PL/SQL forum, or perhaps the Portal Applications forum - both of these tend to have folks very familiar with PL/SQL and the OWA packages.
    This forum is on Web services based on SOAP, WSDL and UDDI. These can be PL/SQL based but typically don't use the mod_psql or OWA web solution.
    As a pointer, I suspect you may already be familiar with, but just in case, you can always take a look at chapter 3 of the OAS documentation, "Developer's Guide: PL/SQL and ODBC Applications" where they go through a number of examples using parameters. See:
    http://technet.oracle.com/doc/appsrvr4082/guides/plsql.pdf
    Hope this or folks from the other list can help.
    Mike.

Maybe you are looking for

  • Photoshop CS4 Issue with NVIDIA 8800 Video Card?

    I have an Mac Pro Intel 2 x 2.8 GHz Quad-Core Xeon with 6GB RAM running OS X 10.5.5 and an NVIDIA GeForce 8800 GT driving two monitors. I just installed Adobe Photoshop CS4 fresh from a factory CD. When I perform a Distort -> Lens Correction or do a

  • 8330 SD Card Problem

    I just purchased a Kingston 8GB SDHC card and put it into my 8330 with OS v4.3.0.127 . When I go to format the card, I get an error message "Media Card Format Failed". According the compatability chart, v4.3.0 supports the 8GB card. Anyone have any s

  • Unable to create attribute dimension in Essbase Studio

    Hi All, As per the process,I am create an Attribute for an dimension as below Hierarchy Family(gen1) SKU(gen2) Attribute1(gen1) SKU(gen2) Attribute2(gen2) SKU(gen3) Here the issue i am unable to create an 2nd attribute parallel to first on i mean att

  • I just got the canon 7d mark 2 and lightroom 5, i cannot read my raw files

    why can i not easily get a number for Adobe, i am getting so frustrated

  • Want to learn Webdynpro!!

    Hi All I want to learn SAP NETWEAVER WEBDYNPRO, Please state the steps and links or materials to be followed to learn Webdynpro.waiting for a effective advice. thanks and Rgdsc in advance. Brad