Did you try:
i.e. double quotes around variable name? Try to use double quotes around all variable names.
Still you didn't mention your requirement clearly, you are emphasizing on the space in filename problem but not telling what exactly you are trying to do.
hi there
can anyone tell me how to search and copy files under unix?
im writing shell scripts with 'vi' and 'pico'
something like
read directoryName
if
then
echo Copying the files
copy those *.src files to sub1(another directory) using cp
else
... (4 Replies)
I need to concatenate files that are inside a directory and subdirectories. Those files end with .c
Can anyone help me
I am using comand 9find) and (cat) but they don't work together.:confused: (1 Reply)
Hi,
This question may be quite newbish.
I've stored a few files on my Unix system and am wondering how to search for their contents (i.e. I input the keyword and get a list of files with this keyword)
I'd then like to put it on my website (php).
I thought of find and grep, but am not... (19 Replies)
hi there,
im writing some script in awk; in few words i have a list from router (mac address- ip address) and the second list with only the mac addresses.
the thing is that i want search list from router for the first mac address; if found - print the ip address, if not print error; then search... (1 Reply)
Hello All,
i have to search a pattern in all the files in all subfolders that are present in current directory.
suppose i am in d1 directory and in that sd1,sd2,sd3 are subdirectories.
in
sd1 i have files f1,f2
sd2 i have files f3,f4
sd3 i have file f5
i have to list out all those... (4 Replies)
I have a list of files in directory and i should write a script if any of these files contains words given in a text file test.txt. the words can be case ignored and word should match.
The output should be the name of the directory in which the file is present followed by list of file names
Eg:... (1 Reply)
Hi, I have the following command to list files beginning with a specific name and containing some text...
find . -type f -name "dm_merge_domain_adm*" -exec grep -il "Error Message:" '{}' \; -print|xargs ls -ltr
It works fine, but seems to list two of each file, when they only exist once...any... (1 Reply)
I have a list of pattern in a file, I want each of these pattern been searched from 4 files. I was wondering this can be done in SED / AWK.
say my 4 files to be searched are
> cat f1
abc/x(12) 1
abc/x 3
cde 2
zzz 3
fdf 4
> cat f2
fdf 4
cde 3
abc 2... (6 Replies)
i want to search a file bt it not happening i m using
#!bin/bash
read file
if (-e "$file")
then
echo "asfsafafa"
else
echo "NO SUCH FILE"
fi
....error
./VMC.sh: line 5: : command not found
NO SUCH FILE
;;;;;;;;;;
its giving correctly no such file found but whats is command not found. (7 Replies)
Perl::Critic::Policy::Variables::ProhibitPerl4PackageNamUser)Contributed Perl DocumenPerl::Critic::Policy::Variables::ProhibitPerl4PackageNames(3)NAME
Perl::Critic::Policy::Variables::ProhibitPerl4PackageNames - Use double colon (::) to separate package name components instead of single
quotes (').
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
Perl 5 kept single quotes ("'") as package component separators in order to remain backward compatible with prior "perl"s, but advocated
using double colon ("::") instead. In the more than a decade since Perl 5, double colons have been overwhelmingly adopted and most people
are not even aware that the single quote can be used in this manner. So, unless you're trying to obfuscate your code, don't use them.
package Foo::Bar::Baz; #ok
package Foo'Bar'Baz; #not ok
CONFIGURATION
This Policy is not configurable except for the standard options.
SEE ALSO
perlmod
AUTHOR
Elliot Shank "<perl@galumph.com>"
COPYRIGHT
Copyright (c) 2007-2011 Elliot Shank.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license
can be found in the LICENSE file included with this module.
perl v5.16.3 2014-06-09 Perl::Critic::Policy::Variables::ProhibitPerl4PackageNames(3)