Sponsored Content
Top Forums Shell Programming and Scripting Changing directories using variables. Post 302255891 by chatwizrd on Friday 7th of November 2008 10:16:57 AM
Old 11-07-2008
You cant put ~$1 together you need to add it like ~/$1
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

changing directories (i'm sure there is a simple solution for this)

I just want to exit my script in a new directory from a bash shell. Problem is that the script internally changes to the directory I want to move to, however when exits is still in the original directory. Does that make sense? ie usage: goto null changing from /usr/bin/xtra/test/test3/ ... (8 Replies)
Discussion started by: Shakey21
8 Replies

2. Solaris

help in changing the access level for directories

Hi all, can some one help me in chmod command, and let me know the various combinations for this command. for : eg chmod -R 777 <dir names> this gives all rights to all but i want the specific access levels kindly help me out in this issue. Thank you, lakshmanan (2 Replies)
Discussion started by: lakshmananl
2 Replies

3. Shell Programming and Scripting

changing environment variables

hi friends, i'm new to shell scripting,can i know how to change the environment variables without altering anythng in .bash_profile as the change in it is for a specific user but i want the change to be available to every user who logs in. bye. (1 Reply)
Discussion started by: amit4g
1 Replies

4. Shell Programming and Scripting

Need help in changing Permissions to 775 for files and directories

Hi All I need to create a script which would change Permissions to 775 All the Files and directories will be mentioned in the Paramter files Can anyone give a Hint how to proceed in this ?? THanks (1 Reply)
Discussion started by: ranga27
1 Replies

5. Solaris

Changing default 'FORMAT' variables.

In FORMAT->ANALYZE->SETUP there's a couple variables you can set for the various functions. However, everytime I exit format it reverts back to the defaults. Is there a file I can edit somewhere to change these default settings? (0 Replies)
Discussion started by: cheetobandito
0 Replies

6. Shell Programming and Scripting

Changing variables in a loop

I'm having a spot of trouble. I'm trying to test three variables for a NULL value in a bash shell script. If a null value is detected in the variable to set it to set the variable to a default value. here is what I have: testResponseA=3 testResponseB= testResponseC=4 for test in... (5 Replies)
Discussion started by: kaltekar
5 Replies

7. UNIX for Dummies Questions & Answers

Changing Directories

How can i create a file, for example with a touch command, in a different directory from the current one i am in, in one single line command? (1 Reply)
Discussion started by: glock1800
1 Replies

8. Shell Programming and Scripting

Multiple Variables in Array from Existing Directories

I would like to extract directories from a specific place and keep them into an array of variables to run functions into it. Example, bash-3.00$ls adrian bryan caren derrick I want to keep each directory names into a variable adrian --> document bryan --> document caren --> document... (3 Replies)
Discussion started by: lynxlee
3 Replies

9. Shell Programming and Scripting

need help with creating directories and variables

i'm trying to write a script that has 2 variables, and uses the 1st variable as a number and the 2nd a name to create directories. so if you typed in ./myscript 5 week, it would create 5 directories named week1 - week5. whenever i run this, i get an error message saying week5 already exists, so i... (3 Replies)
Discussion started by: layne2kim
3 Replies

10. UNIX for Beginners Questions & Answers

Connecting and changing variables in Bash script

#!/bin/bash X=$(</home/cogiz/computerhand.txt) # (3S 8C 2H 6D QC 8S 4H 5H) Y=$(</home/cogiz/topcardinplay.txt) # KS A=( "${Y::1}" ) B=( "${Y:1}" ) for e in ${X}; do if ]; then # searching for valid cards K,S or 8 ... (0 Replies)
Discussion started by: cogiz
0 Replies
putnext(9F)						   Kernel Functions for Drivers 					       putnext(9F)

NAME
putnext - send a message to the next queue SYNOPSIS
#include <sys/stream.h> #include <sys/ddi.h> void putnext(queue_t *q, mblk_t *mp); INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI). PARAMETERS
q Pointer to the queue from which the message mp will be sent. mp Message to be passed. DESCRIPTION
putnext() is used to pass a message to the put(9E) routine of the next queue in the stream. RETURN VALUES
None. CONTEXT
putnext() can be called from user or interrupt context. EXAMPLES
See allocb(9F) for an example of using putnext(). SEE ALSO
put(9E), allocb(9F), put(9F), qprocson(9F) Writing Device Drivers STREAMS Programming Guide NOTES
The put() and putnext() functions should be called only after qprocson() is finished. SunOS 5.10 18 Feb 1998 putnext(9F)
All times are GMT -4. The time now is 07:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy