07-21-2013
You are looking for conditionals in the spec file:
10.6.2. Using conditional blocks
You may have to define some macros depending on what you need but reading the docs on conditionals and also defining macros in the spec file is a good place to start.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
im a new student in programming and im stuck on this question so please please HELP ME. thanks.
the question is this:
enter a command to delete all files that have filenames starting with labtest, except labtest itself (delete all files startign with 'labtest' followed by one or more... (2 Replies)
Discussion started by: soccerball
2 Replies
2. Shell Programming and Scripting
I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y"
#!/bin/bash
du -hs $1
while read SIZE ENTRY
do
if ;
then
find $1 -mtime +$2 -exec rm -f {} \;
echo "Files older than $2 days deleted"
else
echo "free Space available"... (4 Replies)
Discussion started by: JamesCarter
4 Replies
3. Shell Programming and Scripting
Hi All,
I have working (Perl) code to combine 2 input files into a single output file using the join function that works to a point, but has the following limitations:
1. I am restrained to 2 input files only.
2. Only the "matched" fields are written out to the "matched" output file and... (1 Reply)
Discussion started by: Katabatic
1 Replies
4. AIX
Hello, I'm trying to build a (bff) package from an already installed program (clam antivirus) using mkinstallp. However, mkinstallp fails with "no such file: ./usr/lpp/<package name>/inst_root"
I'm not sure why all files get created ok except for these particular ones. Any help would be... (2 Replies)
Discussion started by: omonte
2 Replies
5. Red Hat
Dear All,
plz print the path of files which have the script of "who" & "w" commands.
thnx in advance. (6 Replies)
Discussion started by: saqlain.bashir
6 Replies
6. Red Hat
Hello,
I am just a newbie and have very recently started building rpms, i build a very simple rpm that packaged 3 files and everything worked very smoothly. However to be very honest i am not very much clear with what is the difference between %install and %files section.
I mean like we... (0 Replies)
Discussion started by: Rohit Bhanot
0 Replies
7. Post Here to Contact Site Administrators and Moderators
Majority of the questions are pertaining file/string parsing w.r.t
sed
or
awk
It would be nice to have these two as their own sub category under shell-programming-scripting which can avoid lot of duplicate posts. (1 Reply)
Discussion started by: jville
1 Replies
8. OS X (Apple)
OS-X 10.8.4
Using locate I get these results:
10:~ mize$ locate /Users/mize/*.sh
/Users/mize/Zend/workspaces/DefaultWorkspace/SLM/vendor/ZF2/bin/check-cs.sh
/Users/mize/copy_ascii_upload.sh
/Users/mize/copy_ascii_upload_to_server.sh
/Users/mize/copy_form_functions_php_to_jpl.sh... (7 Replies)
Discussion started by: Gary Mize
7 Replies
9. Shell Programming and Scripting
Dear Ladies & Gents,
I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out:
for filename in $(find /var/log/test... (2 Replies)
Discussion started by: Hiroshi
2 Replies
10. Shell Programming and Scripting
I am trying find files in sub dir with certain tags using tag command, and add the period to the beginning. I can't use chflags hidden {} cause it doesn't add period to the beginning of the string for web purpose. So far with my knowledge, I only know mdfind or tag can be used to search files with... (6 Replies)
Discussion started by: Nexeu
6 Replies
LEARN ABOUT DEBIAN
readbin
readbin(1) General Commands Manual readbin(1)
NAME
readbin - ATLC's binary file information provider
SYNOPSIS
readbin filename.bin
WARNING
This man page is not a complete set of documentation - the complexity of the atlc project makes man pages not an ideal way to document it,
although out of completeness, man pages are produced. The best documentation that was current at the time this version was produced should
be found on your hard drive, usually at
/usr/local/share/atlc/docs/html-docs/index.html
although it might be elsewhere if your system administrator chose to install the package elsewhere. Sometimes, errors are corrected in the
documentation and placed at http://atlc.sourceforge.net/ before a new release of atlc is released. Please, if you notice a problem with
the documentation - even spelling errors and typos, please let me know.
DESCRIPTION
readbin reports on the number and type of pixels created by the program atlc.
OPTIONS
There are no options for readbin
EXAMPLE
% readbin coax2.V.bin
file length=127008 bytes = 15876 pixels
there are: 489 ones, 10852 zeros, 0 -ones, 4535 other values
FILES
atlc-X.Y.Z/docs/html-docs/index.html
the full documentation. bitmapfile.bmp
Original bitmap file. Must be 24-bit colour uncompressed.
bitmapfile.Ex.bin
X-component of E-field as a binary.
bitmapfile.Ey.bin
y-component of E-field as a binary. .
bitmapfile.E.bin
Sqrt(Ex^2+Ey^2), as a binary. bitmapfile.V.bin
bitmapfile.V.bin
Voltage as a binary.
All the saved binary files (.bin's) are saved as a double precision number for each of the pixels. The first double is the top left, the
last the bottom right.
SEE ALSO
atlc(1) create_bmp_for_circ_in_circ(1) create_bmp_for_circ_in_rect(1) create_bmp_for_microstrip_coupler(1) cre-
ate_bmp_for_rect_cen_in_rect(1) create_bmp_for_rect_cen_in_rect_coupler(1) create_bmp_for_rect_in_circ(1) create_bmp_for_rect_in_rect(1)
create_bmp_for_stripline_coupler(1) create_bmp_for_symmetrical_stripline(1) design_coupler(1) find_optimal_dimensions_for_microstrip_cou-
pler(1)
http://atlc.sourceforge.net - Home page
http://sourceforge.net/projects/atlc - Download area
atlc-X.Y.Z/docs/html-docs/index.html - HTML docs
atlc-X.Y.Z/docs/qex-december-1996/atlc.pdf - theory paper
atlc-X.Y.Z/examples - examples
Dr. David Kirkby atlc-4.4.2 28th Sept 2003 readbin(1)