Sponsored Content
Top Forums Shell Programming and Scripting Bash looking in different directory for file that isn't referenced in command Post 302991176 by Corona688 on Tuesday 7th of February 2017 11:34:34 AM
Old 02-07-2017
Actually, I think I see the problem now. The starting value of $pref probably isn't what you think it is. The values of a 'for' loop aren't necessarily valid filenames.

In the future, please post more complete code. The code that sets variables you're using is important - garbage in, garbage out.
This User Gave Thanks to Corona688 For This Post:
 

10 More Discussions You Might Find Interesting

1. Solaris

bash: ./<scriptname>: No such file or directory

I have simply downloaded a file to my local folder, made one small change and uploaded it back, ever since it will not run the file. I have now uploaded the original, unchanged file, which still doesn;t work. Evertime it is run ot says bash: ./nrcardprint: No such file or directory The... (10 Replies)
Discussion started by: Heidi.Ebbs
10 Replies

2. UNIX for Dummies Questions & Answers

deleting file that isn't really there

sorry about the title - I have a directory where a file is showing with ls or ls -l but if I try to reference it - I get the message that it isn't there. It is as if the directory structure isn't matching the actual content. Right now, I have two files of same name showing in the... (4 Replies)
Discussion started by: LisaS
4 Replies

3. Programming

Error: Undefined Symbol ..... First referenced in file......

Hi, I am working with Solaris 5.9 and I am newbie in Socket programming and I stated working with socket programming and I copyed a simple client & server program from a website which I am attaching with this and when I am compiling these files.I am getting the error-- Please Help me to... (1 Reply)
Discussion started by: smartgupta
1 Replies

4. Shell Programming and Scripting

[bash] reassigning referenced variables in functions

Hello all, Problem. ---------- I'm trying to reassign a referenced variable passed to a 'local' variable in a function but the local variable refuses to be assigned the content of the referenced variable. Any ideas would be appreciated. Objective. ----------- Eliminate all $VAR... (1 Reply)
Discussion started by: ASGR
1 Replies

5. Linux

bash:umount/: no such file or directory

I am trying to connect two system (let's say for time being) together such that it supports clustering. for this I got the following packages: # sudo apt-get install pacemaker sysv-rc-conf glusterfs-server glusterfs-examples glusterfs-client chkconfig nmap ntp Next, I did... (0 Replies)
Discussion started by: dr_mabuse
0 Replies

6. Shell Programming and Scripting

Change to directory and search some file in that directory in single command

I am trying to do the following task : export ENV=aaa export ENV_PATH=$(cd /apps | ls | grep $ENV) However, it's not working. What's the way to change to directory and search some file in that directory in single command Please help. (2 Replies)
Discussion started by: saurau
2 Replies

7. Shell Programming and Scripting

Bash to delete file in directory

Will the below bash delete all the "snps.ivg" in the given directory? Thank you :) find N:\all_array\Samples -maxdepth 1 -type f -name "snps.ivg" -delete (6 Replies)
Discussion started by: cmccabe
6 Replies

8. Shell Programming and Scripting

Rename specific file extension in directory with match to another file in bash

I have a specific set (all ending with .bam) of downloaded files in a directory /home/cmccabe/Desktop/NGS/API/2-15-2016. What I am trying to do is use a match to $2 in name to rename the downloaded files. To make things a more involved the date of the folder is unique and in the header of name... (1 Reply)
Discussion started by: cmccabe
1 Replies

9. UNIX for Beginners Questions & Answers

Sourcing file from parent directory bash

"Debian 9 64x - LXDE" I try to source a file from my parent directory: #!/bin/bash #source.bash . ../links.bash but i get "file not found". I tried . "../links.bash" and . '../links.bash'. I got on all methods the same result. If i use the absolute path it works, but i don't want to... (4 Replies)
Discussion started by: int3g3r
4 Replies

10. UNIX for Beginners Questions & Answers

Unsure why access time on a directory change isn't changing

Hello... And thanks in advance for any help anyone can offer me I was trying to work out the differences between displaying modify, access, and change times with the 'ls' command. Everything seems in order when I look at files, but the access time on a directory doesn't seem to change when I... (4 Replies)
Discussion started by: bodisha
4 Replies
otest(1)						    BSD General Commands Manual 						  otest(1)

NAME
otest -- SenTestingKit, OCUnit. SYNOPSIS
otest [-SenTest Self | All | None | <TestCaseClassName/testMethodName>] path DESCRIPTION
otest runs the unit tests found in the bundle given at path. ARGUMENTS
-SenTest value This flag denotes the scope of the unit test to be run. Possible values are Self, All, None and <TestCaseClassName/test- MethodName>. The default value is Self. path Path to the bundle that contains the unit tests. OBJECTIVE-C GARBAGE COLLECTION otest is built with support for Objective-C garbage collection. Due to the "whole process" nature of Objective-C garbage collection, invok- ing otest from the command line or an IDE or debugger will run otest with garbage collection enabled. Doing so requires that the bundle con- taining the unit tests also be built with support for garbage collection. To avoid this requirement and disable garbage collection, run otest in an environment with the OBJC_DISABLE_GC environment variable set to YES. ENVIRONMENT
OBJC_DISABLE_GC Set to YES to disable Objective-C garbage collection for otest when running test bundles that do not use it. FILES
/Developer/Tools/RunTargetUnitTests A script that calls otest with the correct arguments for use with Xcode. SEE ALSO
RunTargetUnitTests(1), otest(1) Xcode June 2, 2019 Xcode
All times are GMT -4. The time now is 08:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy