To be safe in case spaces, tabs, other IFS characters are later added to the value assigned to the src_path variable, I think you should also quote the expansion of src_path in the redirection at the end of the loop as well as in all places where it is expanded inside the loop:
This User Gave Thanks to Don Cragun For This Post:
Dear All,
I'm trying to write a script that searches thru a directory looking for a most recent file and then scp that file.
I have the scp working, but I don't know how to browse the directory and select the most recent file.
The file name includes a date & time stamp (e.g.... (3 Replies)
i have a file in unix having data like
cat
dog
(having spaces in the beginning)
when i read it in a shell script
cat file_name |while read line
do
echo $line
done
it will print
cat
dog
spaces at the beginning are removed....
i dont want these spaces to be... (2 Replies)
Hi
I am trouble parsing through a file with spaces in the filename. I need to grab "supportIDPS/SCM/windows_install/file groups/dds.fgl" and then do a md5sum on it. I am using sh.
Any help is appreciated.
Here is an example of the input file:
7eedbc9f7902bf4c1878d9e571addf9a ... (4 Replies)
Hello,
I found the mimesender multiple attachment emailing shell script in the FAQ of these forums, and I have been able to use it to send multiple files, but only if they don't have spaces in their file name or path.
When I attempt to send a file with spaces in it's name, enclosed... (0 Replies)
I have a script that generates a variable with the location of a file and its complete path. What i want to do is to "cd" to the directory where that file is located using the path name of the file. GIS has absolutely failed me.
For example when i run my script it generates a variable called... (1 Reply)
Hi!
I would like to funnel a series of directories and subdirectories into a text file. This is the output I would like to see from a find command:
/mypath/ABC_01/VISIT_01
/mypath/ABC_01/VISIT_02
/mypath/ABC_01/VISIT_03
/mypath/ABC_02/VISIT_01
/mypath/ABC_03/VISIT_01
I've tried:
find... (2 Replies)
consider the small piece of code
while read line
do
echo $line
done < example
content of example file
sadasdasdasdsa erwerewrwr ergdgdfgf rgerg erwererwr
the output is like
sadasdasdasdsa erwerewrwr ergdgdfgf rgerg erwererwr
the... (4 Replies)
Hello all,
I am new to scripting and here is what I want to get done.
I need to run some processing on many files. I have a whole bunch of files among which there are a few that I am interested in. What I need to do is to write a script which reads the file paths from a text file. line by... (1 Reply)
Hi all my very first post so go easy on me!!
I am trying to build a very simple script to list a file path with spaces in. But I can't get around this problem. My script is as follows:
#!/bin/bash
X="/Library/Users/Application\ Support/"
LS="ls"
AL="-al"
$LS $AL $X
The response I... (5 Replies)
YATE-CONFIG(8) Telephony Engine YATE-CONFIG(8)NAME
yate-config - retrieve metainformation about the YATE telephony engine
SYNOPSIS
yate-config [options]
DESCRIPTION
The yate-config program is used to retrieve information about the installed YATE engine. It is typically used to compile and link modules
against the engine's library.
Here is a typical usage scenario in a Makefile:
module.yate: module.cpp
g++ `yate-config --c-all --ldflags` module.cpp `yate-config --libs`
OPTIONS
Version and paths
--version
Reports the installed YATE version (in x.y.z format)
--release
Reports the installed YATE code status (if not release) and release number
--config
Returns the configuration files directory
--modules
Returns the modules directory
--share
Returns the base shared directory
--scripts
Returns the scripts directory
--skins
Returns the base skins directory
Compiler flags
--cflags
Various C++ compiler flags
--includes
Include option and path to the header files
--c-all
All compiler options - the above two concatenated
Linker flags
--ldflags
Various linker flags
--libs Library option and libraries names
--ld-all
All linker options - the above two concatenated
AUTHORS
Paul Chitescu <paulc@voip.null.ro>
Diana Cionoiu <diana@voip.null.ro>
SEE ALSO yate(8), pkg-config(1)YATE September 2007 YATE-CONFIG(8)