I am trying to strip all leading and trailing spaces of a shell variable using either awk or sed or any other utility, however unscuccessful and need your help.
echo $SH_VAR | command_line Syntax.
The SH_VAR contains embedded spaces which needs to be preserved. I need only for the leading and... (6 Replies)
Hi,
my var is:
PATH_LOG=/opt/WebSphere/CR Comune Roma.log
a filename which contains blank chars.
How can I call it from prompt ?
Ex:
ls $PATH_LOG or
cat $PATH_LOG
tks,
Carmen- (2 Replies)
Hi All,
I have a requirement, in which i have to append some spaces to the variable, and then send it to another function.
I am new to the UNIX shell programming. Ultimately the length of the string should be 40 characters.
exp:
Login = "rallapalli" (length = 10)
i have to append 30 spaces to... (2 Replies)
Hi,
i have to form the header and add fillers(spaces) to it.
I have done something like this. i have added 10 spaces at the end
HDR="AAAABBBBCCNN "
echo $HDR >> file1.dat
but the spaces are not being stored in the file. How to add the spaces. (2 Replies)
Hello all. I am a newb obviously and a bit stumped on this, so any help gratefully accepted.
The script is extracting metadata from individual mp3 files, then (hopefully will be) sorting them into newly-created subdirectories. I have filtered out the relevant metadata and have the album names... (8 Replies)
Hi i have an input " load /appss/asdfas/...
I want to take the string present between first / / i.e appss
Input is "load /appss/asdfas/..."
Expected output is appss
Thanks in advance
Ananth (9 Replies)
Gooday
I have an argument string that contains 15 arguments.
The first 14 arguments are easy to handle because they are separated by spaces
ARG14=`echo ${ARGSTRING} | awk '{print $14}'`
The last argument is a text that may be empty or contain spaces. So any ideas on how I get the last... (23 Replies)
Hi,
I'm passing a variable to a scrpit which can be 1 to 3 characters long.
How can I force it to be three character long and add spaces to it?
The passed variable is stored in $1 and I would like to be stored in NewName
I tried without success
NewName=$(printf "%*s 3 $1)
So if... (2 Replies)
Hi, I have a big csv file with below data.
file:
La Cage Aux Folles (Widescreen)
Famous Mystics and Psychics
A Passion for Planning Financials Operations Marketing Management and Ethics
Precious Moments Holy Bible New King James Version Precious Angels Edition Blue
Practical Recording... (9 Replies)
Discussion started by: Raghuram717
9 Replies
LEARN ABOUT DEBIAN
python-mkdebian
PYTHON-MKDEBIAN(1) User Commands PYTHON-MKDEBIAN(1)NAME
python-mkdebian - Generate a suitable Debian source package for a standard distutils application
SYNOPSIS
python-mkdebian [options]
DESCRIPTION
This script generates a reasonably Debian Policy compliant Debian source package for a Python application that uses distutils properly. It
assumes that there are no public Python modules, and generates just a single application binary package.
Information is taken from setup.py's generated .egg-info file: author, project name, description, version, upstream source, license, and
required and provided Python modules (which are translated to Debian python library package names, and automatically added as package
dependencies).
It generates a simple cdbs/python-support rules file.
python-mkdebian was designed to be used with the DistUtilsExtra.auto module, which calculates required Python dependencies automatically.
However, it makes no explicit assumptions about DistUtilsExtra, so if setup.py has complete information it will work with any distutils
setup.
OPTIONS --force-control=FORCE_CONTROL
Force control file behaviour. Can be one of "none" (keep unchanged), "deps" (only update dependencies), or "full" (recreate whole
file). By default only dependencies will be updated ("deps").
--force-copyright
Force whole copyright file to be recreated. By default it will not touch an already existing copyright file, so that you can custom-
ize them.
--force-rules
Force whole rules file to be recreated. By default it will not touch an already existing rules file, so that you can customize them.
--changelog=CHANGELOG
Add changelog entry to debian/changelog (can be specified multiple times)
--dependency=PACKAGENAME
Add additional debian package dependency (can be specified multiple times)
--prefix=PREFIX
Ask for installing all your modules in the dedicated PREFIX (default is /usr)
--version
Show program's version number and exit
-h, --help
Show this help message and exit
SEE ALSO
Python help for the distutils module
AUTHOR
python-mkdebian is developed by Martin Pitt <martin.pitt@ubuntu.com>.
python-mkdebian May 2010 PYTHON-MKDEBIAN(1)