In the rename below the /path/to/folder... is trimmed (an example is in the parenthesis. Each .bam and .bam.bai in that trimmed directory in the bam sub-folder is then renamed by removing the IonCode_0000_ in the beginning of each filename, leaving just the unique id. The files are always in pairs that is there will always be a matching .bam and .bam.bai. The code executes correctly in ubuntu 14.04 but not in centos 7 as the files do not get renamed to the desired. I am not sure what is different as the rename utility is there in centos 7. The command does execute but the rename does not happen and the file is unchaged. Thank you .
Hi,
I have a shell script which runs fine when i do it from Unix simulator on Widnows.
When i try to run the same for Unix it throws me the error
syntax error at line 87: `elif' unexpected.
Piece of code for the same is
while
do
if ; then
shift
configFile="$1"... (9 Replies)
Hi frnds...
I m facing very irritating problem already waisted my 2 days..
I have a following script..( i am pasting only the main code)
ftp -ivn 213.194.40.77 <<FTP
user $user $password
binary
cd $FileDir/out
lcd $localpath
get $file
rename $FileDir/out/$file $FileDir/tmp/$file... (1 Reply)
Hey everyone, i needed some help with this one. We move into a new file system (which should be the same as the previous one, other than the name directory has changed) and the script worked fine in the old file system and not the new. I'm trying to add the results from one with another but i'm... (4 Replies)
Dear Linux Experts,
On my windows 7 desktop with the help of Vmware workstation (Version 7.1),
created virtual machine and installed Centos 5.7 successfully using ISO image.
Query : Is this possible to upgrade the Centos 5.7 using Centos 5.8 ISO image to Centos version 5.8?.. if yes kindly... (2 Replies)
Hi Experts,
Iam bit poor in shell scripting,
Here my requirement is for generating an alert where the oracle database db_recovery_file_dest_size usage. If it reaches beyond 80% should recieve an alert through an email.
Want to schedule this alert in cron.
#!/bin/bash
.... (9 Replies)
Hi,
I have a shell script which fetches the MRP status and the LAG status.
When I execute it manually like, sh <script_name>, it fetches the output as expected, but when I schedule through crontab, it's not working as expected.
Any help would be really appreciated.
Here is the code... (3 Replies)