I guess the structure of my data is not compatible with the naming
so i get errors
Quote:
test.sh: line 27: output/result/april-result/may: No such file or directory
test.sh: line 27: output/result/july: No such file or directory
test.sh: line 27: output/result/june: No such file or directory
test.sh: line 27: output/result/may: No such file or directory
test.sh: line 27: output/result/april: No such file or directory
test.sh: line 27: output/result/july: No such file or directory
test.sh: line 27: output/result/june: No such file or directory
test.sh: line 27: output/result/may: No such file or directory
test.sh: line 27: output/result/april: No such file or directory
test.sh: line 27: output/result/july: No such file or directory
test.sh: line 27: output/result/june: No such file or directory
test.sh: line 27: output/result/may: No such file or directory
Edit 1:
I have tried to add basename to get it right but I only get 5 files with the name of the months I think the naming system is not the way it should)
Edit 2:
so I only get e.g. july at the end instead of a name like aril-may-june.txt
Oracle procedure create files on UNIX folder on a regular basis. I need to FTP files onto windows server and place the files, based on their name, in the corresponding folders. File name is as follows: ccyymmddfoldernamefile.txt; Folder Name length could be of any size; however, the prefix and... (3 Replies)
This is the file structure:
DESKTOP/Root of Photo Folders/Folder1qweqwasdfsd/*jpg
DESKTOP/Root of Photo Folders/Folder2asdasdasd/*jpg
DESKTOP/Root of Photo Folders/Folder3asdadfhgasdf/*jpg
DESKTOP/Root of Photo Folders/Folder4qwetwdfsdfg/*jpg
DESKTOP/Root of Photo... (4 Replies)
Dear All,
I need a script to merge lines of an input file in a loop, please guide me for the script or one liner(awk, sed, tr, shell, perl).
I/P File-------------------------
APaul,,,,SDH,,23,,,PPH,,2
,,,,KKH,,19,,,MMH,,12,
,,,,CCH,,22,,,MNH,,19,
,,,,TCH,,55,,,NNH,,67,... (3 Replies)
Hi All,
I am stuck with this requirement. My requirement is that a job will run daily at anytime before and would look for a file named filename.txt in a folder and mv to a different folder and if not found until 9 A.M it will exit with a success code.
Now I did the follwing ..but there... (8 Replies)
I have absolutely no idea how to do this and everything I have done doesn't even come close.
Here's the scenario:
There are a number of files in a folder named in this manner:
agd.txt
stv.txt
frk.txt
dqp.txt
There is also a series of other files in the same folder with like file... (5 Replies)
I have a text file which contains lines in this format - it contains 105 lines in total, but I'm just putting 4 here to keep it short:
58571,east_ppl_ppla_por
58788,east_pcy_hd_por
58704,east_pcy_ga_por
58697,east_pcy_pcybs_por
It's called id_key.txt
I have a sample folder called... (9 Replies)
hello,
File 1
main Group sub group
MIT VAR_1D_DATA_TYPE 23-03-2012
MIT VAR_1D_DATA_TYPE 22-03-2012
MIT VAR_10D_DATA_TYPE 23-03-2012
MIT VAR_10D_DATA_TYPE 22-03-2012
MIT ... (0 Replies)
Hi,
I want to read folders which do not have a file "processing" in a for loop ordered by timestamp.
Currently im doing like this.
Like
cd /home/working
for i in `ls -c1`
do
some command...
done
I want to exclude folders which have that "processing" file.
The directory... (2 Replies)
Hi All,
Need a for loop which should run for number of files in a folder and should pass the file name as parameter to another shell script for each loop.
Please help me.
Thanks. (2 Replies)
I have two files like this:
fileA.net
A
B
C
fileA.dat
1
2
3
and I want the output
output_expected
A 1
B 2
C 3
I know that the easier way is to do a paste fileA.net fileA.dat, but the problem is that I have 10,000 couple of files (fileB.net with fileB.dat; fileC.net with... (3 Replies)
Discussion started by: valente
3 Replies
LEARN ABOUT MOJAVE
tap::parser::result::test5.18
TAP::Parser::Result::Test(3pm) Perl Programmers Reference Guide TAP::Parser::Result::Test(3pm)NAME
TAP::Parser::Result::Test - Test result token.
VERSION
Version 3.26
DESCRIPTION
This is a subclass of TAP::Parser::Result. A token of this class will be returned if a test line is encountered.
1..1
ok 1 - woo hooo!
OVERRIDDEN METHODS
This class is the workhorse of the TAP::Parser system. Most TAP lines will be test lines and if "$result->is_test", then you have a bunch
of methods at your disposal.
Instance Methods
"ok"
my $ok = $result->ok;
Returns the literal text of the "ok" or "not ok" status.
"number"
my $test_number = $result->number;
Returns the number of the test, even if the original TAP output did not supply that number.
"description"
my $description = $result->description;
Returns the description of the test, if any. This is the portion after the test number but before the directive.
"directive"
my $directive = $result->directive;
Returns either "TODO" or "SKIP" if either directive was present for a test line.
"explanation"
my $explanation = $result->explanation;
If a test had either a "TODO" or "SKIP" directive, this method will return the accompanying explanation, if present.
not ok 17 - 'Pigs can fly' # TODO not enough acid
For the above line, the explanation is not enough acid.
"is_ok"
if ( $result->is_ok ) { ... }
Returns a boolean value indicating whether or not the test passed. Remember that for TODO tests, the test always passes.
If the test is unplanned, this method will always return false. See "is_unplanned".
"is_actual_ok"
if ( $result->is_actual_ok ) { ... }
Returns a boolean value indicating whether or not the test passed, regardless of its TODO status.
"actual_passed"
Deprecated. Please use "is_actual_ok" instead.
"todo_passed"
if ( $test->todo_passed ) {
# test unexpectedly succeeded
}
If this is a TODO test and an 'ok' line, this method returns true. Otherwise, it will always return false (regardless of passing status on
non-todo tests).
This is used to track which tests unexpectedly succeeded.
"todo_failed"
# deprecated in favor of 'todo_passed'. This method was horribly misnamed.
This was a badly misnamed method. It indicates which TODO tests unexpectedly succeeded. Will now issue a warning and call "todo_passed".
"has_skip"
if ( $result->has_skip ) { ... }
Returns a boolean value indicating whether or not this test has a SKIP directive.
"has_todo"
if ( $result->has_todo ) { ... }
Returns a boolean value indicating whether or not this test has a TODO directive.
"as_string"
print $result->as_string;
This method prints the test as a string. It will probably be similar, but not necessarily identical, to the original test line.
Directives are capitalized, some whitespace may be trimmed and a test number will be added if it was not present in the original line. If
you need the original text of the test line, use the "raw" method.
"is_unplanned"
if ( $test->is_unplanned ) { ... }
$test->is_unplanned(1);
If a test number is greater than the number of planned tests, this method will return true. Unplanned tests will always return false for
"is_ok", regardless of whether or not the test "has_todo".
Note that if tests have a trailing plan, it is not possible to set this property for unplanned tests as we do not know it's unplanned until
the plan is reached:
print <<'END';
ok 1
ok 2
1..1
END
perl v5.18.2 2014-01-06 TAP::Parser::Result::Test(3pm)