Sponsored Content
Top Forums Shell Programming and Scripting Compare file names and select correct elements to include in "for each loop" Post 302469085 by cgkmal on Thursday 4th of November 2010 04:38:45 PM
Old 11-04-2010
Hi ctsgnb,

It looks is easiest than I was thinking Smilie.

I`ll give a try with this.

Thank you so much.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

File names that contain "01" act hidden

Haveing an issue. Anytime a file is created with "01" (zero one) in the name - it cannot be viewed by LS or any other file listing command. Although the file is there, it cannot be seen. I can edit it, run it, anything, except see it..... What happened? Any ideas? (8 Replies)
Discussion started by: n9ninchd
8 Replies

2. Shell Programming and Scripting

Why stderr file descriptor redirection makes ksh's "select" construct hang.

I am trying to use one global declaration --> "exec 2>$ERR" to capture all stderr outputs that may occur anywhere in my script. Then close it at the end of the script using --> "exec 2<&-" I am using KSH on Solaris 8. KSH Version M-11/16/88i If I comment two "exec .." statements in the... (11 Replies)
Discussion started by: kchinnam
11 Replies

3. Shell Programming and Scripting

perl file, one line code include "length, rindex, substr", slow

Hi Everyone, # cat a.txt a;b;c;64O a;b;c;d;ee;f # cat a.pl #!/usr/bin/perl use strict; use warnings; my $tmp3 = ",,a,,b,,c,,d,,e,,f,,"; open(my $FA, "a.txt") or die "$!"; while(<$FA>) { chomp; my @tmp=split(/\;/, $_); if ( ($tmp =~ m/^(64O)/i) || ($tmp... (3 Replies)
Discussion started by: jimmy_y
3 Replies

4. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

5. Shell Programming and Scripting

The "read" command misinterprets file names containing spaces

The "read" command, which is built into bash, takes words from the standard input. However, "read" is not good at taking file names if the file names contain spaces. I would like my bash script to ask the user to enter file names, which may contain spaces. Can you think about any technique for... (14 Replies)
Discussion started by: LessNux
14 Replies

6. UNIX for Dummies Questions & Answers

File name select to "clipboard"

I want to be able to take a file name and then use sedto paste that text into the file. I believe I know how to do the latter portion of pasting into the file at the location I want, but I do not know how to "copy" the file name to the "clipboard" for pasting. Ideally I want to be able to... (1 Reply)
Discussion started by: TitanTlaloc
1 Replies

7. Emergency UNIX and Linux Support

Accidentally Changed File Ownership to Include a "Comment" [AIX]

Hi. I've had a little mishap. To cut a long story short, I've accidentally recursively ran chown on a directory (actually a bunch of 'em). Not a problem in itself, but I had a slight error in the code I used to get the list of directories and ended up with a comment in the file ownership. ... (15 Replies)
Discussion started by: Scott
15 Replies

8. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

9. Shell Programming and Scripting

Compare Only "File Names" in 2 Files with file lists having different directory structure

I have a tar arcive arch_all.tar.gz and 4 batched tar archive . These batches are supposed to have all the files form arch1.all.tar.gz arch1_batch1.tar.gz arch1_batch2.tar.gz arch1_batch3.tar.gz arch1_batch4.tar.gz my issue is that the directory structure in "arch_all.tar.gz" is... (6 Replies)
Discussion started by: sumang24
6 Replies

10. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
PHALANX(6)							   Games Manual 							PHALANX(6)

NAME
Phalanx - Chess playing program SYNOPSIS
phalanx [options] [<moves> <minutes> [<increment in seconds>]] phalanx [options] [<seconds per move>] phalanx bench phalanx bcreate [options] DESCRIPTION
This manual page documents briefly the phalanx program. This manual page was written for the Debian GNU/Linux distribution (but may be used by others), because the original program does not have a manual page. phalanx is a chess playing program. It is partially xboard compatible. Under xboard, it can play games, force & undo moves, and show thinking. In this version, you cannot set positions with xboard. It is also possible to run phalanx without xboard. Do phalanx -? to get a list of command line options. One important command of pha- lanx's ASCII interface is help. phalanx uses (traditional) 10x12 board implementation. There are three often used board implementations: "8x8" (GNU Chess), "bitboard" (Crafty), and "10x12" (Nimzo, Phalanx). In short, "10x12" is easy to implement and the code is small (==fast on PC). Opening book is small, simple, hand-written. OPTIONS
-t <transposition table size in kilobytes> -f <fixed search time in seconds> -x <+/-> xboard mode on/off default: on -p <+/-> permanent brain on/off default: off -s <+/-> show thinking on/off default: off -c <+/-> cpu time default: off -o <+/-> polling input default: on -b <+/-> opening book default: on -r <resign value in centipawns> default: 0 (no resigning) -e <easy level 0...100> default: 0 (best play) -l <+/-> learning on/off default: on -v print version and exit -P <primary book directory> -S <secondary book directory> -L <learning file directory> -g <log file name> EXAMPLES
phalanx -c+ -s+ -o - -x- -f 60 -t4000 xboard -fcp "phalanx -l+ -r800" SEE ALSO
/usr/share/doc/phalanx, xboard(6) AUTHOR
Phalanx was written by Dusan Dobes <dobes@math.muni.cz>. This manual page was written by Stephen Stafford <bagpuss@debian.org> for the Debian GNU/Linux project, but may be used by others. It was written with the assistance of help2man(1) and then edited slightly to clean it up. Phalanx XXII May 2001 PHALANX(6)
All times are GMT -4. The time now is 06:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy