12-16-2010
Thanks that works
I missed the Punch line:
You can get the real path by cd'ing into it.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
By default FIND command searches for matching files in all the subdirectories within the specified path.
Is there a way to restrict FIND command's search path to only the specified directory and NOT TO scan its subdirectories.
Any help would be more than appreciated.
Thanks and Regards (2 Replies)
Discussion started by: super_duper_guy
2 Replies
2. UNIX for Dummies Questions & Answers
I uploaded a database file to Public_html of a virtual server using Unix and a dedicated ip address. I can reach it by browser in typing the address as xxx.xxx.xxx.xxx/Directoryname/databasename.dat . I am asked what I want to do, download or open.
When I try to reach the file via a program... (2 Replies)
Discussion started by: timmendorf
2 Replies
3. UNIX for Dummies Questions & Answers
I need to know whether nyfile/mypath exists on the file system in the root directory.
How to do this (1 Reply)
Discussion started by: ramky79
1 Replies
4. Shell Programming and Scripting
Hi,
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt
Now I want to retrieve only the directory path name for each row
i.e
/a/b/c/
/q/w/e/
How to get the same through shell script?... (7 Replies)
Discussion started by: royzlife
7 Replies
5. Shell Programming and Scripting
If I enter (simplified):
find . -printf "%p\n"
then all files in the output are prepended by a "." like
./local/share/test23.log
How can achieve that
a.) the leading "./" is omitted
and/or
b.) the full path to the current directory is inserted (enclosed by brackets and a blank)... (1 Reply)
Discussion started by: pstein
1 Replies
6. Shell Programming and Scripting
Just a little backgroud, I have a library of mp3 files in the following structure: /mp3/artist/album/track.mp3
Also contained in each album directory is a cover.jpg which contains the cover art file for that particular album.
I want to add the cover.jpg to the mp3 tag and have been using... (8 Replies)
Discussion started by: barrydocks
8 Replies
7. Shell Programming and Scripting
QUESTION1:
How do you grep only an exact string. I am using Solaris10 and do not have any GNU products installed.
Contents of car.txt
CAR1_KEY0
CAR1_KEY1
CAR2_KEY0
CAR2_KEY1
CAR1_KEY10
CURRENT COMMAND LINE: WHERE VARIABLE CAR_NUMBER=1 AND KEY_NUMBER=1
grep... (1 Reply)
Discussion started by: thibodc
1 Replies
8. Shell Programming and Scripting
Does anyone know of a way to zip the resulting file from a find command?
My approach below finds the file and zips the entire directory path, which is not what I need.
After scanning the web, it seems to be much easier to perform gzip, but unfortunately the approach must use zip.
find `$DIR`... (5 Replies)
Discussion started by: koeji
5 Replies
9. Shell Programming and Scripting
Hello,
i want to script on sh to check from a path if the directory exist and isn't empty.
I explain:
path is : /aaa/bbb/ccc/ccc_name/ddd/
Where the cccc_name is in a list, so i think it's $1
My command
find -name /aaa/bbb/ccc/$1/ddd/ didn't work because my $1 is the same and not... (5 Replies)
Discussion started by: steiner
5 Replies
10. UNIX for Beginners Questions & Answers
Hello,
I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
Discussion started by: Sekhar419
4 Replies
LEARN ABOUT REDHAT
pdl::fft
FFT(3) User Contributed Perl Documentation FFT(3)
NAME
PDL::FFT - FFTs for PDL
DESCRIPTION
FFTs for PDL. These work for arrays of any dimension, although ones with small prime factors are likely to be the quickest.
Each routine works `inplace'.
SYNOPSIS
use PDL::FFT qw/:Func/;
fft($real,$imag);
ifft($real,$imag);
realfft($real);
realifft($real);
fftnd($real,$imag);
ifftnd($real,$imag);
$kernel = kernctr($image,$smallk);
fftconvolve($image,$kernel);
ALTERNATIVE FFT PACKAGES
Various other modules - such as PDL::FFTW and PDL::Slatec - contain FFT routines. However, unlike PDL::FFT, these modules are optional,
and so may not be installed.
FUNCTIONS
fft
Signature: ([o,nc]real(n); [o,nc]imag(n))
Complex FFT of the "real" and "imag" arrays [inplace]
ifft
Signature: ([o,nc]real(n); [o,nc]imag(n))
Complex Inverse FFT of the "real" and "imag" arrays [inplace]
realfft()
One-dimensional FFT of real function [inplace].
The real part of the transform ends up in the first half of the array and the imaginary part of the transform ends up in the second half of
the array.
realfft($real);
realifft()
Inverse of one-dimensional realfft routine [inplace].
realifft($real);
fftnd()
N-dimensional FFT (inplace)
fftnd($real,$imag);
ifftnd()
N-dimensional inverse FFT
ifftnd($real,$imag);
fftconvolve()
N-dimensional convolution
$kernel = kernctr($image,$smallk);
fftconvolve($image,$kernel);
fftconvolve works inplace, and returns an error array in kernel as an accuracy check -- all the values in it should be negligible.
The sizes of the image and the kernel must be the same. kernctr centres a small kernel to emulate the behaviour of the direct convolution
routines.
The speed cross-over between using straight convolution (PDL::Image2D::conv2d()) and these fft routines is for kernel sizes roughly 7x7.
kernctr()
`centre' a kernel (auxiliary routine to fftconvolve)
$kernel = kernctr($image,$smallk);
fftconvolve($image,$kernel);
kernctr centres a small kernel to emulate the behaviour of the direct convolution routines.
convmath
Signature: ([o,nc]a(m); [o,nc]b(m))
Internal routine doing maths for convolution
cmul
Signature: (ar(); ai(); br(); bi(); [o]cr(); [o]ci())
Complex multiplication
cdiv
Signature: (ar(); ai(); br(); bi(); [o]cr(); [o]ci())
Complex division
BUGS
Where the source is marked `FIX', could re-implement using phase-shift factors on the transforms and some real-space bookkeeping, to save
some temporary space and redundant transforms.
AUTHOR
This file copyright (C) 1997, 1998 R.J.R. Williams (rjrw@ast.leeds.ac.uk), Karl Glazebrook (kgb@aaoepp.aao.gov.au), Tuomas J. Lukka,
(lukka@husc.harvard.edu). All rights reserved. There is no warranty. You are allowed to redistribute this software / documentation under
certain conditions. For details, see the file COPYING in the PDL distribution. If this file is separated from the PDL distribution, the
copyright notice should be included in the file.
perl v5.8.0 2003-01-29 FFT(3)