04-30-2009
for i in ls question
Greetings,
I have a script that uses this syntax:
for i in `ls *.pll`
do
echo Compiling Lib $i .....
frmcmp.sh userid=$LOGON module_type=LIBRARY module=$i compile_all=yes batch=yes
done
mv *.pll ../libs
mv *.plx ../libs
mv *.err ../libs
If there are no files that match though I get a couple of errors like:
ls: *.pll: No such file or directory
mv: cannot stat `*.pll': No such file or directory
Although it is not a big deal I'd like to fix the script to be more informative so say 'skipping compile as no matching files found' or something.
So do I just add an else clause or something to fix this?
TIA.
7 More Discussions You Might Find Interesting
1. Programming
Now that I have getch() to work, I have yet another problem. BTW, thank you for answering these questions, I do ask a lot, only because I am eager to know, what is a board used for anyways :)
Ok, he's the problem...
#include iostream.h
#include conio.h
int main()
{
char movement;
... (2 Replies)
Discussion started by: mbolthouse
2 Replies
2. Solaris
Im trying to edit a 113 meg file in VI and i get the error TMP FILE TOO LARGE.
Does someone know how to get around this?
Thanks! (1 Reply)
Discussion started by: BG_JrAdmin
1 Replies
3. UNIX for Dummies Questions & Answers
Hello
if I like to move file from defined directories system to new directory that not contained any directories system structure .
But I like to create the same file system structure as source directory for example :
I have 2 directories: foo1 and foo2
foo1 have directories and foo2 have... (2 Replies)
Discussion started by: umen
2 Replies
4. UNIX for Dummies Questions & Answers
hallo, ik heb hier een vraagje. hoeveel gebruikers kunnen er op 1 unix systeem. hopelijk antwoorden golle nu want ik moet da vinde voor school en die leerkracht zaagt. :p
groetjes eu wacht wa was mijne nick ah ja vraagje
groetjes vraagje
ik kan geen engels dus antwoord liever in het... (1 Reply)
Discussion started by: vraagje
1 Replies
5. Shell Programming and Scripting
Hey my friend was asking me if i knew a way to cout how many different words in a file. I told him no not off hand, but i was thinking about it, and i started to wonder also. I imagine this is probably pretty simple im just missing something, I keep confusing my self with how you would compair and... (16 Replies)
Discussion started by: yodadbl07
16 Replies
6. Hardware
How to add 3 moniters to a pc set up? (2 Replies)
Discussion started by: clicstic
2 Replies
7. AIX
Hi,
Can anyone please explain a little about df command. I have following question:
Following example is showing % used as 4 where as total free blocks are 15.46 out of 16.00 MB blocks.
df -m /test
Filesystem MBblocks Free %Used Iused %Iused ... (5 Replies)
Discussion started by: itsabhi9
5 Replies
LEARN ABOUT REDHAT
netatalk-config
netatalk-config(1) The Netatalk Project netatalk-config(1)
NAME
netatalk-config - script to get information about the installed version of netatalk
SYNOPSIS
netatalk-config [--prefix[=DIR]] [--exec_prefix[=DIR]] [--help] [--version] [--libs] [--libs-dirs] [--libs-names] [--cflags] [--macros]
DESCRIPTION
netatalk-config is a tool that is used to configure to determine the compiler and linker flags that should be used to compile and link pro-
grams that use the netatalk run-time libraries.
OPTIONS
netatalk-config accepts the following options:
--help Print a short help for this command and exit.
--version
Print the currently installed version of netatalk on the standard output.
--libs Print the linker flags that are necessary to link against the netatalk run-time libraries.
--libs-dirs
Print only the -l/-R part of --libs.
--libs-names
Print only the -l part of --libs.
--cflags
Print the compiler flags that are necessary to compile a program linked against the netatalk run-time libraries.
--macros
Print the netatalk m4 directory.
--prefix=PREFIX
If specified, use PREFIX instead of the installation prefix that netatalk was built with when computing the output for the --cflags
and --libs options. This option is also used for the exec prefix if --exec-prefix was not specified. This option must be specified
before any --libs or --cflags options.
--exec_prefix=PREFIX
If specified, use PREFIX instead of the installation exec prefix that netatalk was built with when computing the output for the
--cflags and --libs options. This option must be specified before any --libs or --cflags options.
COPYRIGHT
Copyright (C) 1998 Owen Taylor
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, pro-
vided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in sup-
porting documentation.
Man page adapted for netatalk-config by Sebastian Rittau in 2001.
netatalk 1.5pre6 09 June 2001 netatalk-config(1)