CrazyEngineers
  • programming problems in UNIX/LINUX..??

    himanshupatidar

    himanshupatidar

    @himanshupatidar-Onh2we
    Updated: Oct 26, 2024
    Views: 1.2K
    Hey CEans please help me in following problems.These are a part of my Linux/Unix project but I am unable to do solve them due to lack of skills in Linux. Besides, I successfully made some of these on C++, but Linux is going out of way for me. 😕 😕


    1. Create a file called wlcc.txt with some lines and display how many lines, words and characters
    are present in that file.

    2. Append ten more simple lines to the wlcc.txt file created above and split the appended file into 3
    parts. What will be the names of these split files? Display the contents of each of these files.
    How many lines will be there on the last file?

    3. Given two files each of which contains names of students. Create a program to display only those names that are found on both the files.

    4. Create a program to find out the inode number of any desired.

    5.Write a pipeline of commands, which displays on the monitor as well as saves the information
    about the number of users using the system at present on a file called usere.ux.

    6.Write a shell script that reports the logging in of a specified user within one minute after he/she
    logs in. The script automatically terminates if the specified user does not login during a
    specified period of time.

    7.Write a shell script that accepts any number of arguments and prints them in the reverse order.


    Please CEans...
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • neha mourya

    MemberNov 3, 2011

    i cnt get the programms properly
    Are you sure? This action cannot be undone.
    Cancel
  • ashishpatel.1992

    MemberNov 22, 2011

    Please Visit #-Link-Snipped-# for solution.
    All programs in Doc file 😁
    Are you sure? This action cannot be undone.
    Cancel
  • KenJackson

    MemberNov 25, 2011

    I think number 1 is actually two steps:
    1a. Create a file called wlcc.txt with some lines.
    1b. Display how many lines, words and characters are present in that file.

    Presumably you would use a text editor to create wlcc.txt with some junk lines. Or rename any readme.txt file you find laying around. The second part seems to be a way of getting you familiar with the wc command.

    Number 4 was done long ago. The program is called ls. For example, try: ls -il
    So are you supposed to write a C or C++ program that does the same thing? Or a shell script that just calls ls?
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register