[SOLVED]problem about wc to check the amount of the processes through

#problem about wc to check the amount of the processes through ps
hi.this is the processes current
$ps
PID TTY TIME CMD
2674 tty3 00:00:00 bash
2689 tty3 00:00:00 mocp
2746 tty3 00:00:00 ps
$ps | wc -l
5
The problem:since there are 4 lines of ps output here,why wc -l shows the number "5"?
And if i redirect ps to a file and then check the lines number with "wc -l",it's "4".
$ps > out
$cat out
PID TTY TIME CMD
2674 tty3 00:00:00 bash
2689 tty3 00:00:00 mocp
2753 tty3 00:00:00 ps
$cat out | wc -l
4
Any idea?Thanks.
Last edited by wanghonglou82 (2011-10-07 06:49:44)

falconindy wrote:Working as intended. wc is running when you pipe ps to it.
hi.thank you.
The clue you bring here sounds reasonable.But a little more confusion to me comes around.I will check the bash rules for digest commands.thanks.

Similar Messages

  • (solved)-Windows update cannot currently check for updates, because the service is not running. You may need to restart your computer

    (solved)-Windows update cannot currently check for updates, because the service is not running. You may need to restart your computer
    Hetti Arachchige V Aravinda | Network Administrator (B.Sc, MCP, MCTS, MCSA, MCSE, MCITP, CCNA, CEH, MBCS)| http://www.windowstechinfo.com |

    Hi,
    Glad to see your problem resolved, Hope your experience is helpful with others.
    Roger Lu
    TechNet Community Support

  • HOW CAN I PUT THE AMOUNT WITH THE SIGN OF DOLLAR?

    HI!
    HOW CAN I PUT THE AMOUNT WITH THE SIGN OF DOLLAR?
    BECAUSE WHEN I WRITE THE DATA THE AMOUNT OVERWRITE THE SIGN.
    THANKS PEOPLE

    THIS IS THE WRITE PART:
    [code]
    WRITE:
              /97 t_bsid-dmbtr,          "Invoice Amount
              104 '$',
              104 t_bsid-fecha,          "Payment Date
              114 t_bsid-pago,           "Payment Amount
              116 '$'.
    [/code]

  • How can I tell how many licenses are included in a volume license?  I can login, but am unable to see the number included, just says purchased "1", but not the amount in the volume.

    How can I tell how many licenses are included in a volume license?  I can login, but am unable to see the number included, just says purchased "1", but not the amount in the volume.

    Hi networka,
    Please see this page for links to the resources you can use to manage a volume license: Customer resources | Adobe Buying Programs. You should be able to find this information by logging in to the Licensing Website.
    Best,
    Sara

  • I had an Apple Id then changed to another , how can I retrive the amount from the old Id account.?

    I had an Apple Id then changed to another , how can I retrive the amount from the old Id account.?  Can I link one Id with another ?

    Apple IDs can't be "linked" or merged.  However, if you are trying to transfer a credit balance from one account to another iTunes store support may be able to help you with that: http://www.apple.com/emea/support/itunes/contact.html.

  • [SOLVED]problems about sdcv looking up words

    hi.
    I get sdcv (sdcv 0.4.2-5)installed and also a dictionary with it.
    But when i look up word,it doesn't work complaining that "nothing similar to '$word'",sorry ".
    $ sdcv sex
    Nothing simillar to sex,sorry :(
    $sdcv -l
    bookname wordcount
    somedic 4352468
    And i've tried the stardict with the X environment.it works.
    Any clue?Thanks.
    Last edited by wanghonglou82 (2011-09-30 02:51:41)

    I've installed Oxford Advanced Learner's Dictionary for Stardict https://aur.archlinux.org/packages.php?ID=15600 and
    [karol@black ~]$ sdcv sex
    save to cache /usr/share/stardict/dic/oald.idx
    Found 1 items, similar to sex.
    -->Oxford Advanced Learner's Dictionary
    -->sex
    noun, verb
    noun
    1 [U, C] the state of being male or female
    SYN GENDER:
    How can you tell what sex a fish is? * a process that allows couples to choose the sex of their baby * Please indicate your sex and date of birth below. * sex discrimination (= the act of treating men and women differently in an unfair way) * Testosterone is the male sex hormone.
    2 [C] either of the two groups that people, animals and plants are divided into according to their function of producing young:
    a member of the opposite sex * single sex schools / education * the battle of the sexes (= the competitive relationship that exists between men and women)
    see also FAIR SEX
    3 [u] physical activity between two people in which they touch each other's sexual organs, and which may include SEXUAL INTERCOURSE:
    It is illegal to have sex with a person under the age of 16. * gay sex * the sex act * a sex attack / crime * a sex shop (= one selling magazines, objects, etc. that are connected with sex) * sex education in schools * These drugs may affect your sex drive (= your interest in sex and the ability to have it).
    see also SAFE SEX, SEXUAL INTERCOURSE
    4 (-sexed) (in adjectives) having the amount of sexual activity or desire mentioned:
    a highly-sexed woman
    verb [VN] (technical) to examine an animal in order to find out whether it is male or female

  • AP Invoice interfaced to Projects shows the amount in the quantity field

    We are noticing that AP Invoices interfaced to Projects show the invoice amount in the quantity field, e.g. in projects quantity and cost both show the invoice amount. The actual quantity is different. Anybody experienced that or has a solution?

    Hi User,
    This is intended functionality of Oracle projects:
    For AP invoices the QUANTITY = ACTUAL AMOUNT (eg 1000) of the AP invoice at the distribution level and UOM = word "CURRENCY".
    Incase of labor expenditures the quantity = the number of hours and UOM = HOURS.
    Please revert incase more information is required on this issue.
    Thanks & Regards,
    Neeta

  • OVS - Maintain the amount of the table column

    Hello all,
    when implementing the OVS for a field, it does display for every output element of my model node a column in the OVS table. How can i alter the amount of shown table columns?
    E.g. The model node which displays the table of the OVS has 20 columns (20 attributes). Now i want the OVS table not to have 20 columns but just 5.
    How can i achive this?
    cheers,
    Markus

    Hi Markus,
    You can do something like this,
    In the OVS custom controller, have a value node like Output_data which has only those attributes which you need to display in the ovs list.
    When you execute the BAPI/RFC, copy the model output data to this output node.
    From the view ,when you implement the OVS for field using method addOVSExtension, pass this new output value node, instead of using the model node(Also replace the model node with this node whereever appropriate - eg: in applyResult())
    Hope that helps,
    Thanks,
    L Menon
    Message was edited by: LM
            L Menon

  • Want to change the BSEG-SGTXT while process through the transaction:FF_5

    Hi,
    I want to change the value in BSEG-SGTXT during the process through the transaction:FF_5.
    Can any one suggest any BADI or User Exit to update the SGTXT.
    Regards,
    Hema T

    Hi
    If your text is going to remain content based certain transaction types or text in the note to payee field then you can use the below functionality.
    Advantage no ABAP help required.
    Define Search String :
    Strg Name : Text
    Strng : Test (say if you want to find the word "test" in the incoming record. You refer the help doc on Search string for combinations)
    Mapping : (keep it blank)
    In Search string use :
    1)
    Company code :
    House bank id:
    Account id:
    Int algthm :  (if you are using any)
    Strg name: Check
    Target field: BDC Field name1 BSEG-SGTXT
    2)
    Company code :
    House bank id:
    Account id:
    Int algthm : (if you are using any)
    Strg name: Text
    Target field: BDC Field value1 "text that you want to enter in the Bseg- sgtxt field"
    3)
    Company code :
    House bank id:
    Account id:
    Int algthm : (if you are using any)
    Strg name: Check
    Target field: BDC Acct type1 0
    0: First line, posting area 1
    1: First line, posting area 2
    2: Second line, posting area 1
    3: Second line, posting area 2
    Regards
    Nikhil

  • A problem about bapi dd check

    Hi, all.
        I tried to use arfc2 to call a bapi to get PO data from R/3 in 7.1.1. So I did model binding for my component controller`s context. Then I tried to get the result from these parameters programly. But I always got dd check error.
    For example. If an attribute "A" `s data type is int. But the attribute "A" is empty in R/3, so it always returns " " to the attribue "A". Then it will raise an dd check error. The bapi which I used is BAPI_PO_GET_LIST. There are many attributes with this bapi. How can I solve this problem?
    Thanks.

    Hi,
    please check if the below link can help in your case.
    [https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes/sdn_oss_bc_db/~form/handler]
    Regards
    Narendra
    Edited by: Narendra Singh on Apr 3, 2009 11:54 AM

  • [SOLVED] Problem about Buttons!

    Guys can you help me about this?. I dont know how to fix it. Thanks!
    Buttons are litte. and Texts in the boxes are not visible. I am using kde 4.6
    http://i.imgur.com/I8Fg4.jpg
    http://i.imgur.com/Z2msq.jpg
    -- mod edit: read the Forum Etiquette and only post thumbnails http://wiki.archlinux.org/index.php/For … s_and_Code [jwr] --
    Last edited by alperenel (2011-02-15 11:27:09)

    toad wrote:Seems to be a problem with gtk apps, correct? Are you using qt-curve? If not, give it a go (need to restart the app to take effect).
    ok let me try.

  • HT1349 my activation code has come off... how can i retrieve the amount of the card and redeem it?

    I have by accident scratched off my activation code for ITunes... can I retrieve it?

    You can email customer service with the CGA number on the bottom left of the card.  Read here under "I accidentally scratched off the activation code": http://www.apple.com/hk/en/support/itunes/store/giftcard/.

  • HT201209 How can my balance be lower that the amount of the card?

    I just redeemed a $10 Itunes GC but it says my balance is $7.42. How can I have less than the $10 I just redeemed????

    Click here and ask the iTunes Store staff for assistance. It may be that you previously paid more than you have.
    (102325)

  • HT203167 i am trying to redeem a gift card it shows the amount on the page but when i click what i want it asks me what kind of payment i already input the code

    what do i need to do to use my gift card

    Hi brendalynn6,
    Have you looked at the [[Opening PDF files within Firefox]] Knowledge Base article? There are a couple of different PDF plugins listed in the article. I'd suggest you give those a shot. You might also want to take a look at [[Using the Adobe Reader plugin with Firefox]].
    Hopefully this helps!

  • Arett ispy program at $ 0 99 g, equivalent to SR 18 and did not work I have a program once and for all I know I ask Malmchklh or restore the amounts of the account by Visa has been buying through your Apple Store

    انا شريت برنامج اسمه سباي من متجر الاب ستور بمبلغ وقدره حوالى بالسعودي 18 ريال وتم  سحب المبلغ من البنك عن طريق بطاقة ماستر كرد ولم يعمل البرنامج لدي لااعرف مالمشكله ارجو حل المساله والا اعادة كامل المبلغ بحسابي

    انا شريت برنامج اسمه سباي من متجر الاب ستور بمبلغ وقدره حوالى بالسعودي 18 ريال وتم  سحب المبلغ من البنك عن طريق بطاقة ماستر كرد ولم يعمل البرنامج لدي لااعرف مالمشكله ارجو حل المساله والا اعادة كامل المبلغ بحسابي

Maybe you are looking for

  • TDM for Logic Pro on a Mac Pro

    I have a Mac Pro running OSX 10.4.8 and I am wondering if anyone knows when Apple is going to release an update for TDM to will work with Logic. For some reason i cant record with Core Audio either. Can someone explain.

  • Can't locate module ocfs on RHEL 3.0

    I have problems to load ocfs on RHEL 3.0 Update 5 These the msg: [root@wari1 sbin]# /sbin/load_ocfs + /sbin/load_ocfs /sbin/modprobe -n ocfs node_name=wari1 ip_address=192.168.0.200 cs=1755 guid=E3487297FF181633F19100055D6B0410 ip_port=7000 comm_voti

  • Check Printing on two Different pages

    Hi all, Is it possible to print one page PLD on two Different pages. Actually my client  wants  to print one PLD on two different pages, he wants that one page print the acknowledgement letter and then vendor name, amount, date, amounts in words shou

  • Saving just 1 or 2 clips for future projects and deleting all the rest.

    I have several completed FCP projects that I would like to pick just a small number of clips from to save for future demos. Then I would like to delete those projects to reclaim my hard drive space. If I start a new FCP project and paste the clips in

  • Why is the Good Wife latest episode still not available on Itunes Canada?

    why is the Good Wife latest episode still not available on Itunes Canada?