Re: node link as variable in bash script?



On Tue, Mar 04, 2008 at 06:48:43PM +0100, e s wrote:
bash help
how do I make a node as a variable in a bash script?
I tried different things but none works.
something like
#variable
NODE="/dev/rfcomm2"

help very much appreciated!
-e

I don't understand your question. Bash variables are not typed, and
you can use $NODE where the string "/dev/rfcomm2" would otherwise be used,
e.g., perhaps with mknod(1):

...
mknod $NODE c $MAJOR $MINOR

--
Ken Irving, fnkci+debianuser@xxxxxxx


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: right click and resize selected images in Konqueror
    ... But the user was looking for right clicking on the selected thumbnails in Konqueror and choosing to resize them in one go -- all this without having to open the images in another application. ... I myself use a bash script to do this kind of stuff. ... I have played around with Nautilus's image resizer, and I must say it rocks. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
    (Debian-User)
  • Re: Re: cut file extension
    ... im looking for a solution to strip the file extension ... within a bash script. ... Modify settings or unsubscribe at: ...
    (Ubuntu)
  • Re: cut file extension
    ... im looking for a solution to strip the file extension ... within a bash script. ... Modify settings or unsubscribe at: ...
    (Ubuntu)
  • Re: Re: cut file extension
    ... im looking for a solution to strip the file extension ... within a bash script. ... Modify settings or unsubscribe at: ...
    (Ubuntu)
  • Re: diff files matching a pattern
    ... diff -r dir1 dir2 ... could not figure out how to do this inside a bash script. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)