Question

Write a shell script to display the line count over several files(given as arguments)

27 Apr 2023
Answer :
Word Count : 289

 Here is a shell script that displays the line count over several files given as arguments:


#!/bin/bash

# Check if arguments are provided
if [ $# -eq 0 ]
then
    echo "Error: No arguments provided. Usage: $0 file1 file2 file3 ..."
    exit 1
fi

# Loop _________ ___ ____ __________ _______ _____ ______ _____ __________.
_______ ___ _________ __________ ______ ________ ______ _______ ___.
_____ __________ _____ __________ _________ ________.
______ ____ _________ _____ ___.
_______ ______ _____ _________ ____ _____ _________.
______ _________ ________ _____ ______.
___ ____ _____ _____ _______ _______ ________ ________ ________ ______.
____ ______ ____ ___ _______ __________ ____ ___.
_______ ______ ____ _______ ___ ____.
________ _____ _____ _____ _____ ______ ________ _______ ______.
__________ _____ ________ __________ _________ _______ __________ ______ ___ ____.
___ __________ ______ ___ _____ ______ _____ __________ __________.
____ _________ _______ ____ ________.
___ ________ ____ ________ _____ _______ _________ ______ ________ __________ ___.
____ ____ _________ __________ _____ _____.
________ _________ _____ ________ ________ ____ ________ _________.
______ _____ _________ ________ _________.
___ ___ ______ __________ _______ ________ _________.
_______ ___ ________ _____ _____ _____ _________ _______ ____.
______ ______ __________ ____ _____.
____ ______ ____ ____ ____ __________ ________ ______ ____ ________.
______ __________ ___ ________ ____ ___ ____.
_________ __________ ___ ___ ______ _______ ______ _______ _________ ________ ________ _______.
__________ _______ ________ _____ ____.
____ __________ _________ _______ ________ ___ _______ _________ _____.
_________ _______ ________ _________ ______ _________ ______ _____.
_______ _____ _________ _________ ____ ___ ________ __________.
________ ____ __________ ______ ____ _________ _______ _________ ___ _________ __________ ________.
___ ____ _____ _________ _________.
__________ _______ __________ ____ __________ __________ ______.
Get Full Answer on WhatsApp

IGNOU NEWS
Assignment Submission Last Date Extended Till 30 June 2026 Click Here★★★IGNOU June 2026 TEE Date Sheet Released Click Here★★★
Top
📞
Call Support Instant phone assistance Write a shell script to display the line count over several files(give
→
🟢
WhatsApp Chat Fast live messaging
→
Email Us Business enquiries & support
→