I have been trying to execute the below command by changing directory and then copying contents of one directory to another by doing some file name manipulations in between. However this isnt working since as soon as the statement completes it goes back to the original folder. Can someone help in telling me how to change a directory in a script so I can execute subsequent steps within it using and modifying a variable through the steps.
This works fine from command line, however gives bad substitution error from the script because of the issue explained above
Basically check for all files with name like CAT_TURNAROUND_201811120_075221_3.done in the folder ABC/DEF/*.done, then get all the files starting with just this part CAT_TURNAROUND_201811120_075221from this directory/ABC/DEF/ copied to /ABC/EDG/
Will really appreciate a solution. I have been trying to figure this out and checked various forums and tried alias, function etc. But it isn't working.
Moderator's Comments:
Please use CODE tags as required by forum rules!
Last edited by HikingLife; 01-05-2019 at 10:03 PM..
Reason: Correcting typos and fixing the sample file name
:confused:
Hi All,
This script is not working. I want to change the directory as per users selection in current shell. Looks like it is spawning sub-shell internally.
I have used
. changedir.sh
source changedir.sh
./changedire.sh
But did not work. Currently shell directory remain the... (4 Replies)
Hi men,
I think this must be a very common job. "How could to Automatically change to Bash shell after login and then jail user can only using this shell".
I want monitor user works.However it just only effect on Bash shell. Consequently if the user change the shell it will be worthless.
... (4 Replies)
System: Ubuntu Intrepid Ibex
I'm running webcamd as a sort of "security" program, but I need a script that will archive my webcam.jpg files.
So, take the following file:
/home/slag/www/webcam.jpg
Rename it--preferably with a time stamp.
Place it in say:
/home/slag/www/history/
... (4 Replies)
Hi,
I am trying to change the directory in my script, & want to check if the directory is present or not .
Ex:
cd /home/xyz/temp/logs
if the logs directory is not present i want to show the error in script instead of shell script error.
Can anybody please help me on the same
Thx in... (2 Replies)
HI,
I need to change the working directory by using the shell script
/Export/home/user_name
I have to go one step back like
/Export/home
Please help on this.:confused: (3 Replies)
#!/bin/bash
echo -n "Enter number of sanger patients : "; read id
perl -ne 'chomp; system ("perl table_annovar.pl $_ humandb/ -buildver hg19 -protocol refGene,popfreq_all,common,clinvar,clinvarsubmit,clinvarreference -operation g,f,f,f,f,f -otherinfo")' < file.txt
I have the above script... (7 Replies)
Discussion started by: cmccabe
7 Replies
LEARN ABOUT DEBIAN
ldap2tinydns-conf
LDAP2TINYDNS-CONF(1) General Commands Manual LDAP2TINYDNS-CONF(1)NAME
ldap2tinydns-conf - part of the ldap2dns DNS management system
SYNOPSIS
ldap2tinydns-conf
DESCRIPTION
This manual page documents briefly the ldap2tinydns-conf command. This manual page was written for the Debian GNU/Linux distribution
because the original program does not have a manual page yet.
ldap2tinydns-conf is a shell script to help configure ldap2dns for use with tinydns. This script wil add the directory structure and files
required to run ldap2dns under daemontools.
Run this script within your tinydns directory.
For example: root@host[/var/tinydns]# ldap2tinydns-conf
This creates the ldap2tinydns directory under your tinydns directory and adds the default configuration under ldap2tinydns/env.
OPTIONS
This shell script does not take any commanline options.
SEE ALSO
tinydns, ldap2dns(1).
Please visit the project homepage for more detail: [http://ldap2dns.tiscover.com/]
AUTHOR
This manual page was written by Johann Botha <joe@blio.net>, for the Debian GNU/Linux system and is distributed under the GPL version 2 or
later.
Jacob Rief <jacob.rief@tiscover.com> is the original author of this program..
June 7, 2001 LDAP2TINYDNS-CONF(1)