Unix/Linux Go Back    


Shell Programming and Scripting Unix shell scripting - KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and shell scripts and shell scripting languages here.

Checking commandline

Shell Programming and Scripting


Closed Linux or Unix Question    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 01-25-2013
Manueldo Manueldo is offline
Registered User
 
Join Date: Jan 2013
Last Activity: 25 January 2013, 4:24 PM EST
Posts: 21
Thanks: 2
Thanked 0 Times in 0 Posts
Checking commandline


Code:
mymk [-f file] target

How to check is [-f file] on commandline or no?
Cannot to find out ;(
Know that I need to use if.....new in shell sorry


Moderator's Comments:
Please use code tags next time for your code and data.

Last edited by vbe; 01-25-2013 at 12:06 PM.. Reason: code tags
Sponsored Links
    #2  
Old Unix and Linux 01-25-2013
vbe's Unix or Linux Image
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 26 April 2015, 9:33 AM EDT
Location: Switzerland - GE
Posts: 6,026
Thanks: 182
Thanked 452 Times in 423 Posts
This has nothing to do here where we expect to see code issues...
Is this homework?
Till you give a clear answer this thread is closed

Last edited by vbe; 01-26-2013 at 07:45 AM.. Reason: typos
Sponsored Links
    #3  
Old Unix and Linux 01-26-2013
vbe's Unix or Linux Image
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 26 April 2015, 9:33 AM EDT
Location: Switzerland - GE
Posts: 6,026
Thanks: 182
Thanked 452 Times in 423 Posts
reminder why other threads are closed also...
Sponsored Links
Closed Linux or Unix Question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Unix or Linux Image More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Opening Applications from the commandline butterbaerchen OS X (Apple) 0 12-21-2011 01:58 AM
Using curl in commandline manishmaha Shell Programming and Scripting 1 05-19-2010 12:20 AM
$OPTARG changes commandline input thommes_pommes Shell Programming and Scripting 2 04-13-2010 11:00 AM
Validating commandline argument mr_manii Shell Programming and Scripting 3 03-17-2010 02:56 AM
list only directories in commandline. jhmr7 UNIX for Dummies Questions & Answers 9 06-10-2009 02:01 AM



All times are GMT -4. The time now is 06:32 PM.