Solve a shell problem

Source: Internet
Author: User
I have not asked questions on csdn for a long time. could you ask me a question about shell? could you help me? thank you very much.
#! /Bin/bashtmp_fifo = "/tmp/$. fifo "mkfifo $ tmp_fifo # create the pipeline descriptor file exec 6 <> $ tmp_mongoorm $ tmp_mongoofile ="/tmp/file. t "# assume that there are 10 rows in the file, and the content is random. Normally, the row is for (I = 0; I <10; I ++ )); do echo 1 done> & 6 while read line; do for (I = 0; I <6; I ++ )); do read-u6 k # Here there is only one file descriptor, and the program is suspended echo k donedone <$ file # The following is directed # Replace the read file with the following to retrieve 6 while read line <$ filedo for (I = 0; I <6; I ++); do read-u6 k # Here the file descriptor only has one program in the suspended state echo k donedone


.... You have to leave the eight younger siblings to score 88 points ....


Reply to discussion (solution)

What functions do you want to implement?

What functions do you want to implement?


Now I want to know why the sub-channel character is changed to one in the while read, and I started to write six in.


What functions do you want to implement?


Now I want to know why the sub-channel character is changed to one in the while read, and I started to write six in.


The O & M area of the Linux section should be familiar to many people. the skill speed of the O & M Linux commands of our company is fast, and the speed of typing is basically unnecessary. It is recommended to ask about the O & M of the Linux section.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.