Write a shell command to search all the files in the working

Write a shell command to search all the files in the working directory with names containing one character extension for the lines that does not start with a character A or character B.

Solution

Answer:

#!/bin/bash
# to search all the files in the working directory with names containing one character extension
#for the lines that does not start with a character A or character B
find . -type f -name \"*.?\" | -not -name \'[ac]*\' -type f

Write a shell command to search all the files in the working directory with names containing one character extension for the lines that does not start with a ch

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site