Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6581561
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T16:10:06+00:00 2026-05-25T16:10:06+00:00

This searches only in the pwd , despite having specified the directory. Probably caused

  • 0

This searches only in the pwd, despite having specified the directory. Probably caused by the third argument.

supported="*mov *mp4"
ls /home/kv/m $supported | head -1

..Removing the filter brings up the first file found by ls, but what can I use to tell ls to consider only the file types listed in $supported? –It’s worth mentioning that the extensions mustn’t be case-sensitive.

ls /home/kv/m | head -1
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T16:10:08+00:00Added an answer on May 25, 2026 at 4:10 pm
    ls /home/kv/m | grep -i -E '\.(mov|mp4)$' | head -1
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is an example that searches PDF files in the current directory. import os,
Every searches I made only included solutions for variables like this: $('#div'+ id) I
I apologise if this has been asked, my searches only found bits and pieces...
This seems to be an absurdly simple question but Google and Stack Overflow searches
I just came across this code and a few Google searches turn up no
I've done numerous searches and I realize that I can just download this file
I've seen a few web searches and responses to this but it seems they
IS this straightforward? Does any one have any good examples? All my google searches
how can i convert this into an array? if someone searches for lo he
Know of any good libraries for this? I did some searches and didn't come

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.