I am testing a ksh script for email. In the script I receive several parameters. One of them is a subject. The subject may contain spaces. Ex. Test this. When I am running the script on telnet to test, how should the syntax at the command line be written. I have this:
ksh ResendE.sh '001111'... (2 Replies)
I have a problem with the script below
#!/bin/sh
for vo in `find -maxdepth 1 -type f -regex "^\./*$"`
do
ls -l "$vo"
some other commands
done
It works fine until `find ...` returns files with spaces. I've tryed to change IFS but haven't succeed
Any solutions? (4 Replies)
I'm trying to do something like that:
for $filename in `ls -1`
do
some_command $filename
done
but it doesn't work properly for file names with spaces, for...in splits at spaces. Anyway around? (4 Replies)
I have files on my unix boxes that users have created with spaces.
Example: /tmp/project plan
ls -l "/tmp/project plan" works fine.
$/tmp>ls -l "/tmp/project plan"
-rw-r--r-- 1 root other 0 Jan 31 12:32 /tmp/project plan
I created a file called test and put just the... (2 Replies)
Hi All,
I see similar problems in past threads but so far no answers have worked for me. I am trying to write a script which parses a txt file that contains one filename per line, then finds those files on the local disk and copies them to a specified directory.
What I have:
... (4 Replies)
Hi
I hope someone will be able to resolve this little teaser!
I am running a script
for file in `ls directory`
do
echo "$file"
...other code here....
done
this works fine unless we receive a file with a name which has a space in it
ie
"filena me"
(I know its not good... (8 Replies)
I want to ftp all the sh files in the directory. Also if any of the file name
contains spaces in them, it should be converted to underscores before it is ftped. I wrote the following code below:
FILESSH=$(ls /mysh/*.sh)
--- FILESH being used here for some other task ---
echo "$FILESSH" |... (3 Replies)
Hi,
I am trying to replace a specific column values in a csv file with double quotes when I am find embedded spaces with in the fields.
Example:
SNO,NAME,ZIPCODE,RANK,SEX,ADDRESS
1,Robert,74538,12,34, M,Robert Street, NY
2,Sam,07564,13,M,12 Main Ave, CA
3,Kim, Ed,12345,14,M,123D ,... (1 Reply)
Hey there, this is my first post and I'll try to explain my situation as best I can.Here is a sample of the input file:
ADO Sample.h,v ADO Sample 2010-05-21 lyonsb /repository/patents/TSCommon/OpenSource/Dundass/ug6mfc/DataSources/Ado/ADO Sample
ADO SampleDoc.h,v ADO SampleDoc 2010-05-21... (3 Replies)
I have a problem mounting images because of the spaces in the filenames. Does anyone know how to rename files by removing the spaces with the find command?
find Desktop/$dir -name "*.dmg" -print -exec ??? (4 Replies)
Discussion started by: ianebaj
4 Replies
LEARN ABOUT OSF1
dh_installmanpages
DH_INSTALLMANPAGES(1) Debhelper DH_INSTALLMANPAGES(1)NAME
dh_installmanpages - old-style man page installer (deprecated)
SYNOPSIS
dh_installmanpages [debhelperoptions] [file...]
DESCRIPTION
dh_installmanpages is a debhelper program that is responsible for automatically installing man pages into usr/share/man/ in package build
directories.
This is a DWIM-style program, with an interface unlike the rest of debhelper. It is deprecated, and you are encouraged to use
dh_installman(1) instead.
dh_installmanpages scans the current directory and all subdirectories for filenames that look like man pages. (Note that only real files
are looked at; symlinks are ignored.) It uses file(1) to verify that the files are in the correct format. Then, based on the files'
extensions, it installs them into the correct man directory.
All filenames specified as parameters will be skipped by dh_installmanpages. This is useful if by default it installs some man pages that
you do not want to be installed.
After the man page installation step, dh_installmanpages will check to see if any of the man pages are .so links. If so, it changes them to
symlinks.
OPTIONS
file ...
Do not install these files as man pages, even if they look like valid man pages.
BUGS
dh_installmanpages will install the man pages it finds into all packages you tell it to act on, since it can't tell what package the man
pages belong in. This is almost never what you really want (use -p to work around this, or use the much better dh_installman(1) program
instead).
Files ending in .man will be ignored.
Files specified as parameters that contain spaces in their filenames will not be processed properly.
SEE ALSO debhelper(7)
This program is a part of debhelper.
AUTHOR
Joey Hess <joeyh@debian.org>
11.1.6ubuntu2 2018-05-10 DH_INSTALLMANPAGES(1)