Author Topic: drag and drop onto a bash script $1 (iguess :/)  (Read 445 times)

Space Between

  • Guest
drag and drop onto a bash script $1 (iguess :/)
« on: May 03, 2003, 11:07:23 AM »
in windows...when you drag a file onto a .bat it assigns the file to %1..for example to type a .txt file it would be

@echo off
type %1
pause

it would type the .txt in a dos shell

now in linux...how is this done

if i have a .txt file and drag it onto a script file under
gnome/kde how do i get it to performa  similar action

in your linux gui file browser..drag foo.txt onto a foo.sh and have it be typed out..like

#!/bin/bash
cat $1

it is not working now...under gnome in rh linux 7.1 when i drag the file onto the .sh it just doesnt do anything