On 5/25/22 20:53, goncholden wrote:
> Although if I know the filename, I would not need to call the find command,
> and just pass the filename to HEAD, TAIL, or AWK.
correct ;-)
Although if I know the filename, I would not need to call the find command, and
just pass the filename to HEAD, TAIL, or AWK.
Sent with Proton Mail secure email.
--- Original Message ---
On Thursday, May 26th, 2022 at 6:51 AM, goncholden
wrote:
> This means that I can use
>
> find
This means that I can use
find $filename -type f -print0
with no harm?
Sent with Proton Mail secure email.
--- Original Message ---
On Thursday, May 26th, 2022 at 6:32 AM, Bernhard Voelker
wrote:
> On 5/25/22 19:53, goncholden wrote:
>
> > Customarily people use the -name option f
On 5/25/22 19:53, goncholden wrote:
> Customarily people use the -name option for specific file names.
True, but as directories are also files, the -name condition could
also filter for specific directory names.
Have a nice day,
Berny
On 5/25/22 19:50, goncholden wrote:
> Was it designed to function with filenames then?
well, in UNIX philosophy everything is a file. ;-)
What you're referring to is "regular files" (-type f for find),
while there are also others (block, character, symlink files, ...),
and directories (-type d).
Customarily people use the -name option for specific file names.
Sent with Proton Mail secure email.
--- Original Message ---
On Thursday, May 26th, 2022 at 5:50 AM, goncholden
wrote:
> Was it designed to function with filenames then?
>
>
>
>
> Sent with Proton Mail secure email.
>
Was it designed to function with filenames then?
Sent with Proton Mail secure email.
--- Original Message ---
On Thursday, May 26th, 2022 at 5:35 AM, Bernhard Voelker
wrote:
> On 5/25/22 14:08, goncholden via Bug reports for the GNU find utilities wrote:
>
> > I am using the FIND co
On 5/25/22 14:08, goncholden via Bug reports for the GNU find utilities wrote:
> I am using the FIND command on a number of directories stored in FDIR array
> to execute HEAD on each file. How can I adapt the code so users can also
> include files as well as directories?
well, I don't think ther
I am using the FIND command on a number of directories stored in FDIR array to
execute HEAD on each file. How can I adapt the code so users can also include
files as well as directories?
hn=8
nf=${#fdir[@]}
for (( i=0 ; i < $nf ; i++ )); do
find "${fdir[$i]}" -type f \
-exec head -v -n "$hn" '{}