Sponsored Content
Full Discussion: Create Dynamic if condition
Top Forums Shell Programming and Scripting Create Dynamic if condition Post 302943645 by rbatte1 on Monday 11th of May 2015 12:08:30 PM
Old 05-11-2015
Another way might be to build up an array from the tail output and then have a loop around the if statement to check each one set in turn. It depends quite what you need to achieve I suppose.


Can you elaborate on the overall desired need?



Robin
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to create a dynamic list?

Hi falks, I need to write a function in k-shell which cd to root directory and ask the user which sub directory you want to tar. The user will select directories untill quit. How to do it? Thanks in advance, Nir (4 Replies)
Discussion started by: nir_s
4 Replies

2. Shell Programming and Scripting

how to create folder wen the condition satisfied

hi i hav files ha1j ha2m ha3n ha4q ha5s ...like tat im having some 20 files ..and i want to create a folder as the same amount of files which im having wen the condition if loop is satisfied .. thank you (5 Replies)
Discussion started by: maximas
5 Replies

3. UNIX for Advanced & Expert Users

Sql dynamic table / dynamic inserts

I have a file that reads File (X.txt) Contents of record 1: rdrDESTINATION_ADDRESS (String) "91 971502573813" rdrDESTINATION_IMSI (String) "000000000000000" rdrORIGINATING_ADDRESS (String) "d0 movies" rdrORIGINATING_IMSI (String) "000000000000000" rdrTRAFFIC_EVENT_TIME... (0 Replies)
Discussion started by: magedfawzy
0 Replies

4. Shell Programming and Scripting

create separate file after checking condition..

Problem : I want to create a separate file for country list if condition is true. Please help. ***************************************************** Input file: SV-INCR-139302-365540488-201104090934.sqllog SV-INCR-1082-552793184-201104040805.sqllog SV-INCR-1077-855045741-201104040805.sqllog... (4 Replies)
Discussion started by: humaemo
4 Replies

5. Shell Programming and Scripting

redirect stdout echo command in condition A run in condition B

hi, I have some problems in my simple script about the redirect echo stdout command inside a condition. Why is the echo command inside the elif still execute in the else command Here are my simple script After check on the two diff output the echo stdout redirect is present in two diff... (3 Replies)
Discussion started by: jao_madn
3 Replies

6. UNIX for Dummies Questions & Answers

Create a condition for a non-included string

hey, just want to ask how to check this scenario a="apple banana cherry" if egg=0 fi how do you do the condition? thanks! (2 Replies)
Discussion started by: h0ujun
2 Replies

7. Shell Programming and Scripting

Help Create dynamic ksh script from a script

I am currently running 2 scripts to gather data for a 3rd script and would like to combine the 2 scripts into one. Having issues with the final output format. Note cannot post URL so replaced the http stuff with (name) in the examples All scripts contain #!/bin/ksh OS = Red Hat Enterprise... (0 Replies)
Discussion started by: pcpinkerton
0 Replies

8. Shell Programming and Scripting

Create, validate and using dynamic variables in Bash scripting

Hi All, I am really struggling to solve this problem, this might be small but I am not able to, can somebody help me? I have few directories and these directories receives text files in large amount with in fraction of seconds. So I just want to send all the files in current directory to... (2 Replies)
Discussion started by: VasuKukkapalli
2 Replies

9. UNIX for Dummies Questions & Answers

Create a file on UNIX with multiple columns on certain condition

I need to write the list of files to a new file in one column , the second column would contain the first line of that file (header record extracted through head -1 ) and the third column would contain the last record of that file (trailer record tail -1 ) . Example :- folder where the files... (8 Replies)
Discussion started by: IshuGupta
8 Replies

10. UNIX for Advanced & Expert Users

How to create folder by using if and elif condition?

Hi All, I have already code to create folder for one country let say US , now we want to create folder/directory for JP country also using shell script , application server. $COUNTRY='US' if ] then if mkdir -m 777 -p /opt/TEST/$COUNTRY/$INVOICE >/dev/null 2>&1 | tee -a ... (5 Replies)
Discussion started by: Boost
5 Replies
dpkg-checkbuilddeps(1)						    dpkg suite						    dpkg-checkbuilddeps(1)

NAME
dpkg-checkbuilddeps - check build dependencies and conflicts SYNOPSIS
dpkg-checkbuilddeps [option...] [control-file] DESCRIPTION
This program checks the installed packages in the system against the build dependencies and build conflicts listed in the control file. If any are not met, it displays them and exits with a nonzero return code. By default, debian/control is read, but an alternate control filename may be specified on the command line. OPTIONS
--admindir=dir Change the location of the dpkg database (since dpkg 1.14.0). The default location is /var/lib/dpkg. -A Ignore Build-Depends-Arch and Build-Conflicts-Arch lines (since dpkg 1.16.4). Use when only arch-indep packages will be built, or combine with -B when only a source package is to be built. -B Ignore Build-Depends-Indep and Build-Conflicts-Indep lines. Use when only arch-dep packages will be built, or combine with -A when only a source package is to be built. -I Ignore built-in build depends and conflicts (since dpkg 1.18.2). These are implicit dependencies that are usually required on a specific distribution, the so called Build-Essential package set. -d build-depends-string -c build-conflicts-string Use the given build dependencies/conflicts instead of those contained in the debian/control file (since dpkg 1.14.17). -a arch Check build dependencies/conflicts assuming that the package described in the control file is to be built for the given host architecture instead of the architecture of the current system (since dpkg 1.16.2). -P profile[,...] Check build dependencies/conflicts assuming that the package described in the control file is to be built for the given build profile(s) (since dpkg 1.17.2). The argument is a comma-separated list of profile names. -?, --help Show the usage message and exit. --version Show the version and exit. ENVIRONMENT
DEB_BUILD_PROFILES If set, it will be used as the active build profile(s) for the package being built. It is a space separated list of profile names. Overridden by the -P option. 1.19.0.5 2018-04-16 dpkg-checkbuilddeps(1)
All times are GMT -4. The time now is 01:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy