Hi,
I have a requirement where
I need to move Bunch of folders containing multiple files to another archive location.
i want to use mv command .I am thinking when we use mv command to move directory does it create directory 1st and then move all the files ?
e.g
source... (4 Replies)
I have two files which I would like to compare and then manipulate in a way.
File1:
pictures.txt 1.1 1.3
dance.txt 1.2 1.4
treehouse.txt 1.3 1.5
File2:
pictures.txt 1.5 ref2313 1.4 ref2345 1.3 ref5432 1.2 ref4244
dance.txt 1.6 ref2342 1.5 ref2352 1.4 ref0695 1.3 ref5738 1.2... (1 Reply)
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)
Dear all,
I have few log folders in directory (FILE) and i need to perform sed on each files inside each folders. Here is my script, and i wish to rename each file back to the same file name after modification. Can anyone guide me on my script below?
eg:
folder1 contain files... (2 Replies)
Hi there
how to create a command in csh that would print files only from 1 folder but as an argument takes home directory for e.g. in my home diecrtory I have 3 folders unix, windows,mac and alot of files. and I running the program as ./op ~
this should return me files from unix folder without... (1 Reply)
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)
Dear folks
I have two data set which there names are "final.map" and "1.geno" and look like this structures:
final.map:
gi|358485511|ref|NC_006088.3| 2044
gi|358485511|ref|NC_006088.3| 2048
gi|358485511|ref|NC_006088.3| 2187
gi|358485511|ref|NC_006088.3| 17654
... (2 Replies)
I have a folder with several files of which I want to eliminate all of the terms that they have in common using `awk`.
Here is the script that I have been using:
awk '
FNR==1 {
if (seen++) {
firstPass = 0
outfile = FILENAME "_new"
... (4 Replies)
Hi all!
I have this command
grep -E '^\To: |^\Date: |^\Subject: ' fileA.txt > fileA_1.txt && grep -v '^\To: |^\Date: |^\Subject: ' fileA.txt >> fileA_1.txt && rm fileA.txt && sed -i -e 's/\(Date: \|Subject: \|To: \)//g' fileA_1.txtHow do I apply it to all the files in the folder (each file has a... (7 Replies)
Hi Folks -
I'm trying to build a simple for loop to accept params and then delete the folder & files on the path older than 6 days.
Here is what I have:
Purge () {
for _DIR in "$1"
do
find "${_DIR}"/* -mtime +0 -exec rm {} \;
done
}
I would be passing... (4 Replies)
Discussion started by: SIMMS7400
4 Replies
LEARN ABOUT DEBIAN
gmk_ub2
gmk_hy(1) Scotch user's manual gmk_hy(1)NAME
gmk_hy, gmk_m2, gmk_m3, gmk_ub2 - create source graphs
SYNOPSIS
gmk_hy [options] dim [ofile]
gmk_m2 [options] [-gcfile] dimX dimY [ofile]
gmk_m3 [options] [-gcfile] dimX dimY dimZ [ofile]
gmk_ub2 [options] dim
DESCRIPTION
The gmk_* programs create source graph files for some common, regular topologies.
gmk_hy creates a hypercube of dimension dim.
gmk_m2 creates a 2D regular grid of dimensions dimX and dimY.
gmk_m3 creates a 3D regular grid of dimensions dimX, dimY and dimZ.
gmk_ub2 creates an unoriented de Bruijn graph of dimension dim.
OPTIONS -b base
For gmk_m2 and gmk_m3 only. Output graphs with base value set to base. Default value is 0.
-e For gmk_m2 only. Build a 8-neighbor grid rather than a 4-neighbor grid.
-gcfile
For gmk_m2 and gmk_m3 only. Output graph vertex coordinates (that is, geometry data to be used by gout(1)) in file cfile.
-h Display some help.
-t For gmk_m2 and gmk_m3 only. Create torus graphs, that is, graphs such that there exist loop edges between vertices of rank 0 and
(dim-1) in every dimension.
-V Display program version and copyright.
EXAMPLE
Create a 5x7 grid along with its geometry:
$ gmk_m2 5 7 -g/tmp/m5x7.xyz /tmp/m5x7.grf
SEE ALSO gbase(1), gmk_msh(1), gtst(1), gmap(1), gord(1), gout(1), amk_grf(1).
Scotch user's manual.
AUTHOR
Francois Pellegrini <francois.pellegrini@labri.fr>
February 14, 2011 gmk_hy(1)