Skip to content
Advertisement

Tag: find

Run find command from a bash file

Hi people: I’m making a xfe script to take a given directory as source file, use zenity to get output dir and perform some operations, for example: When the script is invoked, oggenc is not executed…any ideas? Solution: Based on answers bellow, this works as expected: Answer To make the variable $OUTPUT_DIR available to the child process, add one line:

find command not printing files with .wav extension as specified

I’ve tried using this command to recursively search a folder and print .wav files, showing only the file names (not the location): I’ve also tried putting .wav in double quotes like so: When I check the Wav_files.txt file there are also .xml files listed. I only intend to print the .wav files- What have I done wrong? Answer Put the

searching a file in linux

I want to find in the system a file, and I know part name of it. How could I do that? I tried unsuccessfully the command: The problem is probably very easy however I cannot find a decent tutorial on searching files in linux. Please tell me what command solves my problem and if you know a good tutorial so

Recursively grep unique pattern in different files

Sorry title is not very clear. So let’s say I’m grepping recursively for urls like this: grep -ERo ‘(http|https)://[^/”]+’ /folder and in folder there are several files containing the same url. My goal is to output only once this url. I tried to pipe the grep to | uniq or sort -u but that doesn’t help example result: Answer If

Newbie-ish error: cp: omitting directory

Pulling my hair as I’m stuck with a basic error without understanding why: We’re in a “test” directory, in which I created one “del” subdirectory. The “test” directory contains a variety of files of various types. The result is a series of lines (same number as the number of files present in the directory from where the command is ran)

Advertisement