I've found a solution for what I am after
This will give me a list of file paths for files where the first two characters within the file are "ab". I can redirect this output into a file to get what I need.
Hi All,
I need to create a file which contains the list of all the files present in that directory.
e.g.,
ls /export/home/user/*.dat > list_file.dat
but what i am getting is:
$ ls /export/home/user/*.dat > list_file.dat
/export/home/user/*.dat: No such file or directory
But I have... (1 Reply)
I am trying to find socail security numbers in files in (and under) a specific directory and output a list of the files where they are found... the format would be with no dashes just 9 numeric characters in a row.
I have tried this:
find /DirToLookIn -exec grep '\{9\}' /dev/null {} \; >>... (1 Reply)
I have a directory (and many sub dirs beneath) on AIX system, containing thousands of file. I'm looking to get a list of all directory containing "*.pdf" file.
I know basic syntax of find command, but it gives me list of all pdf files, which numbers in thousands. All I need to know is, which... (4 Replies)
I will be very grateful if someone can help me with bash shell script that does the following:
I have a list of filenames:
A01_155716
A05_155780
A07_155812
A09_155844
A11_155876
that are kept in different sub directories within my current directory. I want to find these files and copy... (3 Replies)
Hi All,
I would like to do a loop on all the files with extension .out in my directory this files should be sorted alphabetically.
Then I need to assign to each of them a progressive ID of three digits (maybe in HEX format?).
First I tried to list manually the files as
ARRAY=(
A-001.out ... (5 Replies)
Hello all,
I'm trying to copy all files within a specified directory to another location based on a find filter of mtime -1 (Solaris OS). The issue that I'm having is that in the destination directory, I want to retain the source directory structure while copying over only the files that have... (4 Replies)
Is there a way to create a txt file with the names of the files I retreive using mget *.file. I want to use this file as input to a delete command.
Using HP-UX (3 Replies)
I need to find a word '% Retail by State' in the folder /usr/sas/reports/RetailSalesTaxallocation.
When I tried like below,
-bash-4.1$ cd /usr/sas/reports/RetailSalesTaxallocation
-bash-4.1$ find ./ -name % Retail by State
find: paths must precede expression: Retail
Usage: find ... (10 Replies)
Helo
Is there a better way to search within a list of subfolders :
A_START_PATH="/data_1/data_2"
#
# dir2, dir3, dir6, ..... dir59 exists
#
A_LIST="$A_START_PATH/dir1 $A_START_PATH/dir4 $A_START_PATH/dir5"
find "$A_LIST" -type f -name"*.txt"
Now searching for all files in any subdirs... (2 Replies)
Discussion started by: jcdole
2 Replies
LEARN ABOUT DEBIAN
systemd-delta
SYSTEMD-DELTA(1) systemd-delta SYSTEMD-DELTA(1)NAME
systemd-delta - Find overridden configuration files
SYNOPSIS
systemd-delta [OPTIONS...] [PREFIX[/SUFFIX]|SUFFIX...]
DESCRIPTION
systemd-delta may be used to identify and compare configuration files that override other configuration files. Files in /etc have highest
priority, files in /run have the second highest priority, ..., files in /usr/lib have lowest priority. Files in a directory with higher
priority override files with the same name in directories of lower priority. In addition, certain configuration files can have ".d"
directories which contain "drop-in" files with configuration snippets which augment the main configuration file. "Drop-in" files can be
overridden in the same way by placing files with the same name in a directory of higher priority (except that, in case of "drop-in" files,
both the "drop-in" file name and the name of the containing directory, which corresponds to the name of the main configuration file, must
match). For a fuller explanation, see systemd.unit(5).
The command line argument will be split into a prefix and a suffix. Either is optional. The prefix must be one of the directories
containing configuration files (/etc, /run, /lib, ...). If it is given, only overriding files contained in this directory will be shown.
Otherwise, all overriding files will be shown. The suffix must be a name of a subdirectory containing configuration files like tmpfiles.d,
sysctl.d or systemd/system. If it is given, only configuration files in this subdirectory (across all configuration paths) will be
analyzed. Otherwise, all configuration files will be analyzed. If the command line argument is not given at all, all configuration files
will be analyzed. See below for some examples.
OPTIONS
The following options are understood:
-t, --type=
When listing the differences, only list those that are asked for. The list itself is a comma-separated list of desired difference
types.
Recognized types are:
masked
Show masked files
equivalent
Show overridden files that while overridden, do not differ in content.
redirected
Show files that are redirected to another.
overridden
Show overridden, and changed files.
extended
Show *.conf files in drop-in directories for units.
unchanged
Show unmodified files too.
--diff=
When showing modified files, when a file is overridden show a diff as well. This option takes a boolean argument. If omitted, it
defaults to true.
-h, --help
Print a short help text and exit.
--version
Print a short version string and exit.
--no-pager
Do not pipe output into a pager.
EXAMPLES
To see all local configuration:
systemd-delta
To see all runtime configuration:
systemd-delta /run
To see all system unit configuration changes:
systemd-delta systemd/system
To see all runtime "drop-in" changes for system units:
systemd-delta --type=extended /run/systemd/system
EXIT STATUS
On success, 0 is returned, a non-zero failure code otherwise.
SEE ALSO systemd(1), systemd.unit(5)systemd 237SYSTEMD-DELTA(1)