10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello.
Source file are in : /a/b/c/d/e/f/g/some_file
Destination is : /d/e where sub-directories "f" and "g" may missing or not.
After copying I want /a/b/c/d/e/f/g/file1 in /d/e/f/g/file1
On source /a is top-level directory
On destination /d is top-level directory
I would like... (2 Replies)
Discussion started by: jcdole
2 Replies
2. Shell Programming and Scripting
Hi All,
Can you please provide some pointers to move files from Base path to multiple paths in efficient way.Folder Structure is already created.
/Path/AdminUser/User1/1111/Reports/aaa.txt to /Path/User1/1111/Reports/aaa.txt
/Path/AdminUser/User1/2222/Reports/bbb.txt to... (6 Replies)
Discussion started by: karthikgv417
6 Replies
3. Shell Programming and Scripting
Hi everyone,
I'm trying to write my first ever shell script, the OS is Raspbian. The code I have written must be executed whenever a certain database has been modified. The database resides on a Windows server to which I have a mount point, and I have no control over the Windows server at all so... (2 Replies)
Discussion started by: gjws
2 Replies
4. UNIX for Dummies Questions & Answers
I have this code to extract the directory name ($0:h) in tcsh. I am converting the code to bash and need a way to get the equivalent setting for DefRaytracPath
set DefRaytracPath = `echo $0:h | awk 'BEGIN {FS="/tcsh"} {print $1"/prog"}'` (3 Replies)
Discussion started by: kristinu
3 Replies
5. Shell Programming and Scripting
Hey, I'm new here. Basically, I'm trying to make a bash script that affects a file of my choice.
What I want to do is $./script.sh /path/to/file.jpg and then the bash script will know that variable=/path/to/file.jpg
Thanks! (4 Replies)
Discussion started by: TFB
4 Replies
6. Shell Programming and Scripting
I am trying to script simply data transfer. I would like to have the user input the source "SRC" (/Volumes/DriveName/Users/johnq123) and then name the directory that the copied information will go to, "DST" . put I can't get it to work -
#!/bin/bash
... (8 Replies)
Discussion started by: dropkick888
8 Replies
7. Shell Programming and Scripting
Hello all,
Sorry if the question if stupid but I have no big experience with programming.
I am trying to set a path to be used in a makefile.in, for installation of a Fortran code. The makefile.in contains the string
$(CODE_NAME)
Now, when I type in the bash shell
export... (6 Replies)
Discussion started by: laura74
6 Replies
8. Shell Programming and Scripting
Hi,
I am new to shell scripting.I tried adding an entry to the path variable like below
export PATH=$PATH:/opt/xxx/bin
But am getting an error invalid identifier /opt/xxx/bin
Can someone tell me the error above and correct me .
Thanks and Regards,
Padmini (2 Replies)
Discussion started by: padmisri
2 Replies
9. Shell Programming and Scripting
Hello there,
As a newbie:
The directories in PATH can be hard to distinguish when printed out as
one line with colon .Please, can i have a sample script to display
them,one to a line.
Thank you. (1 Reply)
Discussion started by: debut
1 Replies
10. UNIX for Advanced & Expert Users
hello all,
instead of type pwd everytime to find down where I am at. is there a command set prompt to put in to your profile on shell so it invisible every you type cd?
thanks in advance... (3 Replies)
Discussion started by: phapvn
3 Replies