Unix/Linux Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

don't understand the unix script

UNIX for Advanced & Expert Users


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 11-17-2008   -   Original Discussion by pochaman
pochaman's Unix or Linux Image
pochaman pochaman is offline
Registered User
 
Join Date: Nov 2008
Last Activity: 8 December 2008, 5:23 PM EST
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
don't understand the unix script

if {"$my_ext_type" = MAIN]; then
cd $v_sc_dir
Filex.SH $v_so_dir\/$v_fr_file
Can somebody tell me what does this suggest. I am pretty new to unix and
I am getting confused.
What i understood from here is
If we have a file extension name as MAIN
which we have then we change the directory to the path in
$v_sc_dir. And there we find the file Filex.SH [which we have].
Now comes the problem of my understanding. We have this path
$v_so_dir. But i dont know what this |[back slash means] can somebody tell me.
Also we have $v_fr_file -spool file. I am pretty confused. Please help me.
Sponsored Links
    #2  
Old Unix and Linux 11-17-2008   -   Original Discussion by pochaman
tsurko's Unix or Linux Image
tsurko tsurko is offline
Registered User
 
Join Date: Jun 2007
Last Activity: 14 April 2011, 6:04 AM EDT
Location: Sofia, Bulgaria
Posts: 37
Thanks: 0
Thanked 1 Time in 1 Post
In bash '\' (backslash) is used for escaping special characters (for example spaces in file names). However I don't know why it's necessary to escape '/' in this case.
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
How can i understand if a Java Virtual Machine is installed on Unix?? g_p UNIX for Dummies Questions & Answers 1 03-08-2011 09:12 AM
Understand a old unix shell script kam786sim Shell Programming and Scripting 2 02-10-2011 01:20 PM
trying to understand rationale of unix stream i/o concept kaychau UNIX for Dummies Questions & Answers 1 07-16-2009 12:23 PM
Line 2238 Unix V6 Comment: You are not expected to understand this. Neo What is on Your Mind? 0 04-29-2009 03:08 PM



All times are GMT -4. The time now is 08:44 PM.