OK, I am stumpped. I have this shell Script that I want to randomly select a file with the extention of .sct. Then using a portion of its file name select the six related .mot files. Then move them all to another folder. I also need a user input form for the number of .SCT files to randomly select and move.
So I have a file structure like this:
And so on.
Need to randomly select the file .sct and move it and its related .mot files to another directory. Hopefully I have explained this good enough.
Thanks for the help. I could do this in VB but this UNIX thing has me stumpped. Right now we do it manualy through thousands of files.
So here is the script I want to use. It isn't working I can't get past the
Hello, I am very new to shell scripting. This problem seems quite easy so it should be quite easy (I hope ^^)
I want to get a random file from a directory. this file will be in one subdirectory, and it will contain spaces.
code I have got so far:
N=find ./*/*.jpg | wc -l
((N=RANDOM%N))
... (6 Replies)
INFO:
The program should enter a circle radius and Id for that circle to a file, then it should search for that id and print the radius for that circle.
PROBLEM:
This program compiles but it's not searching properly.
Circle.h
#ifndef CIRCLE_H
#define CIRCLE_H
#include <iostream>... (0 Replies)
Hello,
say suppose i am processing an file emp.dat the field of which are
deptno empno empname etc
now say suppose i want to change the file to emp.lst then how can i do it? Here i what i attempted but in vain
BEGIN{
system("sort emp.dat > emp.lst")
FILENAME="emp.lst"
}
{
print... (2 Replies)
Lets say I want to pick a random file when I do an "ls" command. I don't have set number of files in each directory.
ls | head -1
This gives me the first one in each directory, is there a way to do the same but pick a random one. (3 Replies)
Hi
I am new to expect. Please if any one can help on my issue its really appreciable. here is my issue:
I want expect script for random passwords and random commands generation.
please can anyone help me?
Many Thanks in advance (0 Replies)
Hello
Could you please help me to find a code that can randomly select 1224 lines from a file of 12240 and make tn output with 1224 line each.
my input is txt file with 12240 lines like :
13474 999003507 0 0 2 -9
13475 999003508 0 0 2 -9
13476 999003509 0 0 1 -9
13477 999003510 0 0 1 -9
... (7 Replies)
Need to use dd to generate a large file from a sample file of random data. This is because I don't have /dev/urandom.
I create a named pipe then:
dd if=mynamed.fifo do=myfile.fifo bs=1024 count=1024
but when I cat a file to the fifo that's 1024 random bytes:
cat randomfile.txt >... (7 Replies)
I have a directory with files that was saved all along the day at different times. Every day I have to run a program that will select 50 files for each hour which has the maximum score.
Sample file name: a_b_c_d_e_f
where a,b,c,d,e,f are double values
Score calculation:
(a + b + c + d + e... (4 Replies)
I'm on Tiny Core Linux Pure64 10.1. My locale is en_US.UTF-8 and I generally have no trouble with Unicode characters with one exception: When I try to use Unicode characters in GTK applications' file selection box, I get "Invalid file name":
http://files.dantas.airpost.net/public/save_file.jpg
... (11 Replies)
Discussion started by: DevuanFan
11 Replies
LEARN ABOUT V7
checkers
CHECKERS(6) Games Manual CHECKERS(6)NAME
checkers - game
SYNOPSIS
/usr/games/checkers
DESCRIPTION
Checkers uses standard notation for the board:
BLACK
+-----+------+------+------+------+------+------+------+
|//// | 1 | //// | 2 | //// | 3 | //// | 4 |
|//// | | //// | | //// | | //// | |
+-----+------+------+------+------+------+------+------+
| 5 | //// | 6 | //// | 7 | //// | 8 | //// |
| | //// | | //// | | //// | | //// |
+-----+------+------+------+------+------+------+------+
|//// | 9 | //// | 10 | //// | 11 | //// | 12 |
|//// | | //// | | //// | | //// | |
+-----+------+------+------+------+------+------+------+
| 13 | //// | 14 | //// | 15 | //// | 16 | //// |
| | //// | | //// | | //// | | //// |
+-----+------+------+------+------+------+------+------+
|//// | 17 | //// | 18 | //// | 19 | //// | 20 |
|//// | | //// | | //// | | //// | |
+-----+------+------+------+------+------+------+------+
| 21 | //// | 22 | //// | 23 | //// | 24 | //// |
| | //// | | //// | | //// | | //// |
+-----+------+------+------+------+------+------+------+
|//// | 25 | //// | 26 | //// | 27 | //// | 28 |
|//// | | //// | | //// | | //// | |
+-----+------+------+------+------+------+------+------+
| 29 | //// | 30 | //// | 31 | //// | 32 | //// |
| | //// | | //// | | //// | | //// |
+-----+------+------+------+------+------+------+------+
+-----+------+------+----WHITE----+------+------+------+
Black plays first. The program normally plays white. To specify a move, name the square moved from and the square moved to. For multiple
jumps name all the squares touched.
Certain commands may be given instead of moves:
reverse Reverse roles; the program takes over your pieces.
backup Undo the last move for each player.
list Print the record of the game.
move Let the program select a move for you.
print Print a map of the present position.
CHECKERS(6)