Hi everyone,
I've been racking my brains for ages on this and need your help/advice.
I am writing a script that is reading in file to process and putting them into a temporary file. The loop starts and the script gets the first file name, does what i needs to do (copy it) and then returns to... (2 Replies)
Hi,
I'm using the following command to get a list of files on the system.
find /releases -type f -exec ls -l > /home/sebarry/list.txt '{}' \;
however, its searching a directory I don't want it to search so I know I have to use prune but I don't seem to be able to get prune and exec to work... (2 Replies)
Hi People,
I have a directory full of compressed files (.Z extention)
In many of these files there is a string pattern (3800078163033)
I want to find all file names which contain this string in their text.
Regards,
Abhishek (2 Replies)
I can't get this to work. Running a single command works fine:
find . -name "*.dat" -exec wc -l '{}' \;
gives me the file name and number of lines in each .dat file in the directory.
But what if I want to pipe commands, e.g. to grep something and get the number of lines with that pattern... (3 Replies)
Hi all,
Am wanting to do a ls -l of the files and do a cat of it at the same time, ideally, I am hoping that the following work but obvisouly it is not working to what I am wanting it to ... hu hu hu :wall:
find . -name "BACKUP_TIMESTAMP.log" -exec "ls -l basename {} ; cat {}" \;
... (1 Reply)
Hi all,
Please could someone help with the following command requirement.
I basically need to find files NEWER than a given file and order the result on time.
My attempt so far is as follows:
find . -newer <file_name> -exec ls -lrt {} ;\
But I dont seem to get the right result... (12 Replies)
Hi,
I have two scripts that remove files. One works fine and is coded
find -name "syst*" -mtime +1 -exec rm {} \;
The other is almost the same - only thing missing is the '\'. On that script though I keep getting:
rm syst1202.file ?
etc
Does the \ make that difference or is it a... (3 Replies)
Hi all,
What am trying do is search for a directory that is owned by cm that only exists in a path that has a particular directory
ex: what I'm using now is
find . -user cm -name '*.rel' -type d -exec ls -dl {} \;
This is giving me stuff like this
./../../foo1/../../*.rel... (2 Replies)
Hi,
I'd like find multiple file options to fetch different types of files.
find /path...// -type f -name "*.log" -o -name "*.req" -o -name "*.txt" -mtime +5 -exec ls -l {} \;
Where as in the above command only the last .txt files its retriving but not .log and .req files can body help... (1 Reply)
Hello.
From a script, a command for a test is use :
find /home/user_install -maxdepth 1 -type f -newer /tmp/000_skel_file_deb ! -newer /tmp/000_skel_file_end -name '.bashrc' -o -name '.profile' -o -name '.gtkrc-2.0' -o -name '.i18n' -o -name '.inputrc'
Tha command... (3 Replies)
Discussion started by: jcdole
3 Replies
LEARN ABOUT DEBIAN
wv2-config
WV2-CONFIG(1) General Commands Manual WV2-CONFIG(1)NAME
wv2-config - script to get information about the installed version of wv2
SYNOPSIS
wv2-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]
DESCRIPTION
wv2-config is used to determine the compiler and linker flags that should be used to compile and link programs that use wv2.
OPTIONS
wv2-config accepts the following options.
--prefix=DIR
If specified, use DIR instead of the installation prefix that wv2 was built with when computing the output for the --cflags and
--libs options. This option is also used for the exec prefix if --exec-prefix is not specified. This option must be specified
before any --libs or --cflags options. If no DIR is specified then the current installation prefix will be written to standard out-
put.
--exec-prefix=DIR
If specified, use DIR instead of the installation exec prefix that wv2 was built with when computing the output for the --cflags and
--libs options. This option must be specified before any --libs or --cflags options. If no DIR is specified then the current
installation exec prefix will be written to standard output.
--version
Print the currently installed version of wv2 on standard output.
--libs Print the linker flags that are necessary to link a program against wv2.
--cflags
Print the compiler flags that are necessary to compile a program that uses wv2.
SEE ALSO
Some documentation regarding the design of the wv2 library is available in /usr/share/doc/libwv2-dev/design/ .
AUTHOR
The wv2 library was written by Shaheed Haque <srhaque@iee.org>, Werner Trobin <trobin@kde.org> and David Faure <faure@kde.org>.
This manual page was prepared by Ben Burton <bab@debian.org> for the Debian GNU/Linux system, but may be used by others.
June 2003 WV2-CONFIG(1)