Checking commandline | Unix Linux Forums | Shell Programming and Scripting

  Go Back    


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

Checking commandline

Shell Programming and Scripting


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 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 01:06 PM.. Reason: code tags
Sponsored Links
    #2  
Old 01-25-2013
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 22 November 2014, 3:38 PM EST
Location: Switzerland - GE
Posts: 5,919
Thanks: 165
Thanked 431 Times in 403 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 01-26-2013
vbe's Avatar
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 22 November 2014, 3:38 PM EST
Location: Switzerland - GE
Posts: 5,919
Thanks: 165
Thanked 431 Times in 403 Posts
reminder why other threads are closed also...
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:44 AM.