Unix/Linux Go Back    


Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Checking commandline

Shell Programming and Scripting


Closed    
 
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:
Checking commandline Please use code tags next time for your code and data.

Last edited by vbe; 01-25-2013 at 01: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: 9 December 2016, 3:09 AM EST
Location: Switzerland - GE
Posts: 6,349
Thanks: 247
Thanked 525 Times in 488 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 08: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: 9 December 2016, 3:09 AM EST
Location: Switzerland - GE
Posts: 6,349
Thanks: 247
Thanked 525 Times in 488 Posts
reminder why other threads are closed also...
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux 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 02:58 AM
Using curl in commandline manishmaha Shell Programming and Scripting 1 05-19-2010 01:20 AM
$OPTARG changes commandline input thommes_pommes Shell Programming and Scripting 2 04-13-2010 12:00 PM
Validating commandline argument mr_manii Shell Programming and Scripting 3 03-17-2010 03:56 AM
list only directories in commandline. jhmr7 UNIX for Dummies Questions & Answers 9 06-10-2009 03:01 AM



All times are GMT -4. The time now is 05:38 AM.