You should us some input and more details like is RMS and GAP will be on same line. After making an assumption like you have RMS as 12th field only and is on a different line with a single occurrence in whole file.
If you are satisfied with above command's output, you can use full command to copy the files as follows.
You can pass al file names to this command either by for loop or find command, depends on your conditions/requirements completely.
Let me know if you have any queries on same.
Thanks,
R. Singh
This User Gave Thanks to RavinderSingh13 For This Post:
hi all,
can u please help me in finding all ksh file in directory and including all subdirectories and then copy those files into another directory.
thanks in advance
-bali (4 Replies)
I got a sample file like this.
$ cat test
12|13|100|s
12|13|100|s
100|13|100|s
12|13|100|s
I want to replace all 100 by 2000 only in 3rd field using "awk"
This is replacing all 100's :-(
$ awk -F "|" '{gsub( /100/,"2000");print}' test
12|13|2000|s
12|13|2000|s
2000|13|2000|s... (5 Replies)
hi,
i am facing a problem in merging two files using awk,
the problem is as stated below,
file1:
A|B|C|D|E|F|G|H|I|1
M|N|O|P|Q|R|S|T|U|2
AA|BB|CC|DD|EE|FF|GG|HH|II|1
....
....
....
file2 :
1|Mn|op|qr (2 Replies)
I want to find duplicates in file on 2nd field i wrote this code:
nawk '{a++} END{for i in a {if (a>1) print}}' temp
Could not find whats wrong with this.
Appreciate help (5 Replies)
I must write any shell script.
I want find files which have .txt extension and then copy them to other, whithout this extension, for example:
I found linux.out.txt file, and now it must be copy to new, linux.out.
So: linux.out.txt -> linux.out
ubuntu.config.txt -> ubuntu.config
... (4 Replies)
First, thanks for the help in previous posts... couldn't have gotten where I am now without it!
So here is what I have, I use AWK to match $1 and $2 as 1 string in file1 to $1 and $2 as 1 string in file2. Now I'm wondering if I can extend this AWK command to incorporate the following:
If $1... (4 Replies)
Im trying to use wild cards to find files that start with either an upper or lower case letter e.g. list files that beginning with b or B, i also want to sort them by the time they were last modified. e.g latest file created first.
At the moment i have the following code that
ls -d... (3 Replies)
RedHat Enterprise Linux 5.4
I have some files with the extension .cdp in several directories in various mountpoints(filesystems) . I would like to find and copy all these files into a single directory /u03/diagnore/data.
How can I do this ? (3 Replies)
I've got a file that looks like this (the whitespace between commas is intentional):
123456789,12,JOHN H DOE ,DOE/JOHN H ,,,DOE/JOHN H ,,,,,123 FAKE STREET ,SPRINGFIELD,XX,
I want to strip just the first name out of the third field so it reads "JOHN,". So far I... (6 Replies)
Hi All,
I have a below input, I want to copy the Job_name and Created_by field information to other bottom records as shown in below Output
Job_name Created_by Modified_on Modified_by
CGI_ACLMIB n38504 2014-05-07 20:40:48 n38504
2014-05-07 20:40:57 n38504
2014-05-08 20:40:57 n48504... (1 Reply)
Discussion started by: somu_june
1 Replies
LEARN ABOUT DEBIAN
gap
GAP(1) User Commands GAP(1)NAME
GAP - Groups, Algorithms and Programming
DESCRIPTION
GAP is a system for computational discrete algebra with particular emphasis on computational group theory, but which has already proved
useful also in other areas. In the example text, gap is used to analyse Rubik's Cube using group theory. A kernel implements a pascal-like
language.
OPTIONS
usage: gap [OPTIONS] [FILES]
run the Groups, Algorithms and Programming system, Version 4.4.8
-h print this help and exit
-b disable/enable the banner
-q enable/disable quiet mode
-e disable/enable quitting on <ctr>-D
-f force line editing
-n prevent line editing
-x <num>
set line width
-y <num>
set number of lines
-g show GASMAN messages (full garbage collections)
-g -g show GASMAN messages (all garbage collections)
-m <mem>
set the initial workspace size
-o <mem>
set hint for maximal workspace size (GAP may allocate more)
-K <mem>
set maximal workspace size (GAP never allocates more)
-c <mem>
set the cache size value
-a <mem>
set amount to pre-malloc-ate postfix 'k' = *1024, 'm' = *1024*1024, 'g' = *1024*1024*1024
-l <paths>
set the GAP root paths
-r disable/enable reading of the '.gaprc' file
-A disable/enable autoloading of GAP packages
-B <name>
current architecture
-D enable/disable debugging the loading of library files
-M disable/enable loading of compiled modules
-N disable/enable check for completion files
-T disable/enable break loop
-X enable/disable CRC for comp. files while reading
-Y enable/disable CRC for comp. files while completing
-i <file>
change the name of the init file
-L <file>
restore a saved workspace
-R prevent restoring of workspace (ignoring -L)
Boolean options (b,q,e,r,A,D,M,N,T,X,Y) toggle the current value each time they are called. Default actions are indicated first.
AUTHORS
The GAP Group <http://www.gap-system.org>
COPYRIGHT
Copyright (1987--2006) by the GAP Group,
GAP is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
SEE ALSO gac(1)update-gap-workspace(1)
You can read the complete manual in /usr/share/gap/doc or you can use the online help system. Type ?help inside GAP to access it. Type
?Reference: options!under UNIX
to access the full documentation of options.
The GAP team October 2006 GAP(1)