I'm trying to extract a list of each .cfg file name mentioned in a file. I've made some progress using sed, but I'm still not there. Any help would be appreciated.
My input looks like this:
And I've been using
which has given me this:
But I don't get the multiple filenames when they are on the same row, and I can't figure how to drop the stuff after the .cfg. What I want is this:
Last edited by Franklin52; 08-14-2012 at 04:45 AM..
Reason: Please use code tags for data and code samples
Hi
How can i dynamically read files names from a list file and execute them from a single shell script.
Please help its urgent
Thanks in Advance (4 Replies)
Sun Solaris Unix Question
Haven't been able to find any solution for this situation. Let's just say the file names listed below exist in a directory. I want the find command to find all files in this directory but at the same time I want to eliminate certain file names or files with certain... (2 Replies)
I have these files in a directory. It may have more class than the sample below:
DEPT_CHEM101LEC_D_20110301.DAT
DEPT_CHEM101LAB_D_20110301.DAT
DEPT_BIO105LEC_D_20110325.DAT
DEPT_BIO105LAB_D_20110325.DAT
DEPT_CSC308LEC_D_20110327.DAT
DEPT_CSC308LAB_D_20110327.DAT
Is there way to extract out... (5 Replies)
Hi,
I have a data file xyz.dat similar to the one given below,
2345|98|809||x|969|0
2345|98|809||y|0|537
2345|97|809||x|544|0
2345|97|809||y|0|651
9685|98|809||x|321|0
9685|98|809||y|0|357
9685|98|709||x|687|0
9685|98|709||y|0|234
2315|98|809||x|564|0
2315|98|809||y|0|537... (2 Replies)
Hi all,
I'm pretty new to Shell scripting and I need some help to split a source text file into multiple files. The source has a row with pattern where the file needs to be split, and the pattern row also contains the file name of the destination for that specific piece. Here is an example:
... (2 Replies)
Hi,
I have a files in a directory as below :-
ls -1
mqdepth-S1STC02
proc-mq-S1STC01
proc-mq-S1STC02
proc-mq-S1STC03
Whereever i have S1STC i need to copy them into new file with file name S2STC.
expected output :-
ls -1
mqdepth-S2STC02
proc-mq-S2STC01
proc-mq-S2STC02... (3 Replies)
HI Guys,
I have some 8 files with different name and extensions. I need to check if they are present in a specific folder or not and also want that script to show me which all are not present. I can write if condition for each file but from a developer perspective , i feel that is not a good... (3 Replies)
Data files coming in different names in a file name called process.txt.
1. shipments_yyyymmdd.gz
2 Order_yyyymmdd.gz
3. Invoice_yyyymmdd.gz
4. globalorder_yyyymmdd.gz
The process needs to discard all the below files and only process two of the 4 file names available
... (1 Reply)
As part of a bash the below line strips off a numerical prefix from directory 1 to search for in directory 2.
for file in /home/cmccabe/Desktop/comparison/missing/*.txt
do
file1=${file##*/} # Strip off directory
getprefix=${file1%%_*.txt}
... (5 Replies)
HI Folks -
I have a requirement where I need to scan a text file for a list of files.
The file, we'll called it, files.txt looks like such:
inbox/EBS/Client_GL_Detail_PBCS_112517_SEP2017.txt
inbox/EBS/Client_GL_Detail_PBCS_112617_NOV2017.txt
... (9 Replies)
Discussion started by: SIMMS7400
9 Replies
LEARN ABOUT SUSE
tracker-miner-fs.cfg
tracker-miner-fs.cfg(5) Configuration Files tracker-miner-fs.cfg(5)NAME
tracker-miner-fs.cfg - Configuration file for tracker-miner-fs
DESCRIPTION
This file resides in $HOME/.config/tracker/ and uses the common .ini format, i.e.
[Group]
# Comment
Key=Value
SECTIONS
[General]
Verbosity
Log verbosity, 0=errors, 1=minimal, 2=detailed, 3=debug.
InitialSleep=15
Time in seconds before crawling filesystem (0->1000).
[Monitors]
EnableMonitors=true
Set to false to completely disable any monitoring.
ScanTimeout=0
Time in seconds between same events to prevent flooding (0->1000).
CacheTimeout=60
Time in seconds for events to be cached (0->1000).
[Indexing]
Throttle=0
Sets the indexing speed (0->20, where 20=slowest speed).
IndexOnBattery=false
Set to true to index while running on battery.
IndexOnBatteryFirstTime=true
Set to true to index while running on battery for the first time only.
IndexMountedDirectories=true
Set to true to enable traversing mounted directories on other file systems (this excludes removable devices).
IndexRemovableMedia=true
Set to true to enable traversing ALL removable media such as memory cards, CDs, DVDS, etc. Disabling this means that IndexOpticalD-
iscs has no effect and is considered false.
IndexOpticalDiscs=false
Set to true to enable traversing optical discs only, this includes CDs DVDs, etc. IndexRemovableMedia must be true for this option
to have any effect.
LowDiskSpaceLimit=1
Pause indexer when disk space is <= this value (0->100, value is in % of $HOME file system, -1=disable pausing).
IndexRecursiveDirectories=$HOME;
List of directories to crawl recursively for indexing (separator=;).
IndexSingleDirectories=
List of directories to index but not sub-directories for changes (separator=;).
IgnoredDirectories=po;CVS;.svn;.git;core-dumps;
List of directories to NOT crawl for indexing (separator=;).
IgnoredDirectoriesWithContent=backup.metadata;
List of directories to NOT crawl for indexing based on child files (separator=;).
IgnoredFiles=*~;*.o;
List of files to NOT index (separator=;).
SEE ALSO tracker-miner-fs(1), tracker-extract.cfg(5), tracker-fts.cfg(5), tracker-store.cfg(5).
GNU September 2009 tracker-miner-fs.cfg(5)