![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to set echo on | siegfried | Shell Programming and Scripting | 1 | 11-18-2005 01:56 AM |
| What does echo ^[[r do? | hamsasal | UNIX for Advanced & Expert Users | 1 | 07-24-2005 01:14 PM |
| echo with \n | whatisthis | UNIX for Dummies Questions & Answers | 3 | 05-18-2005 10:59 AM |
| echo ????? | nguda | UNIX for Dummies Questions & Answers | 1 | 06-30-2003 04:02 PM |
| echo help | bb00y | High Level Programming | 5 | 10-02-2002 08:53 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
echo $0
I'm trying to figure out how to get the full path of a file. I found that typing:
echo $0 THEN I DRAG THE FILE INTO THE TERMINAL That gets the full path but I can't figure out how to put that in a variable. I'm trying to take a file and drag it onto a script or automation and have it put that file's full path into a variable so that variable can go into my command line. This is what I have so far. #!/bin/bash name= $0 /usr/local/bin/ffmpeg -i "$name" -acodec mp3 -ab 192 -b 450kb -r 29.97 -s 320X240 -aspect 4:3 -ar 22050 "/Users/SteveComputer/Desktop/blah.mov" echo $name In reality I would like to control click on the file and have a variable get that full path but that is next. The $name above is the thing I want to be the full path of the file I drag onto the automation. Thanks. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|