Hi i have a folder with 27,000 images. I need to process each image using imagemagick. I have got image magick working. I don't want to attempt to process all 27,000 images in one go and thought i would try doing it with 1000 images at a time. Is there some way i can list only the first 1000 entries and move them to a new folder for processing
I would like to write a script that would create 1000 files like clm0001.txt to clm1000.txt. All the files would contain the same contents. How do I achieve this using a script?Please help. (2 Replies)
I know I can use an ls -l junk1 command to get a listing of all files in the directory junk1, but I was wondering how I'd go about going through the files in junk1 in a for-in loop and issuing the ls -l command on them one by one.
This is what I have so far:
for file in $(ls -a $1)
do
ls... (1 Reply)
Hi Greetings
i have 1000 files (xmlfiles) and i need to find which file contain the string over 1000 file
all file end with txt
i tried with
grep -c "string" *.txt
i am getting an error
-bash: /bin/egrep: Argument list too long
i have put an script like below
#!/bin/bash
for line... (9 Replies)
I am trying to add a single line of text to every file in a particular folder. There are thousands of files in the folder.
Each file contains this same start of the first line:
{d "%w- %d %m-, %Y - %T"} <some message here>
with the rest of the text following the second curly bracket... (10 Replies)
Please forgive my ignorance on scripting. I am trying to determine (via a script) if a certain string of characters is present . The string that I am looking for is a constant length.
Here is the string I am searching for:
Model_Type={t}, ModelName={m}
I need to determine if the above... (2 Replies)
I want to move all files from one directory to another directory excluding today (sysdate files) on daily basis.
file name is in pattern file_2013031801, file_2013031802 etc (2 Replies)
I am not able to extract/remove files older than 1000 days from a tar archive in linux system.
#!/usr/bin/perl
@file_list = `find /home/x/tmp/ -name *xxMsg* -ctime +7`;
$file_name = '/home/x/tmp/new_archive.tar';
for... (1 Reply)
Hi, I try to explain my problem , I have a file like this:
aasdsaffsc23
scdsfsddvf46567
mionome0001.pdb
asdsdvcxvds
dsfdvcvc2324w
What I need to do is to create 1000 files in which myname line listing a sequence of numbers from 0001 to 1000. So I want to have :
nomefile0001.txt that must... (10 Replies)
Hey guys,
I have wrote the following script to apply a module named "trinity" on my files. (it takes two input files and spit a trinity.fasta as output)
#!/bin/bash -l
#SBATCH -p node
#SBATCH -A <projectID>
#SBATCH -n 16
#SBATCH -t 7-00:00:00
#SBATCH --mem=128GB
#SBATCH --mail-type=ALL... (1 Reply)
Discussion started by: @man
1 Replies
LEARN ABOUT DEBIAN
r8tohdf
R8TOHDF(1) General Commands Manual R8TOHDF(1)NAME
r8tohdf - convert 8-bit raster images to HDF format
SYNOPSIS
r8tohdf [number-of-rows number-of-columns] output-filename [-p palette-filename] [-c] [-r] [-i] raw-raster-image-filename-1, raw-raster-
image-filename-2, ...
DESCRIPTION
r8tohdf converts a set of raw raster images to the HDF RIS8 format and writes them to a file.
OPTIONS -p pallette-file
Specify the name of the palette file.
-c Run length coding. Compress the output data using run-length encoding.
-i IMCOMP Compression. Compress the output data using the IMCOMP method.
-r No Compression. Apply no compression to the output data. (the default).
EXAMPLES
A file named "rawras" contains a 256 x 512-byte raw raster image, and its palette is stored in a file name "mypal". To convert the informa-
tion in these files to an RIS8 without compression and store the RIS8 in a file named "ras.hdf", enter the following r8tohdf command:
r8tohdf 256 512 ras.hdf -p mypal rawras
A 800 x 1000-byte raw raster image is stored in a file named "bigpic". This data must be converted to a RIS8 without a palette, compress-
ing it using run-length encoding, then stored in a file named "bigpic.hdf". The following command will do this:
r8tohdf 800 1000 bigpic.hdf -c bigpic
A 300 x 400 raw raster image is contained in each of the files named "pic1", "pic2", and "pic3". To convert all three files to RIS8s, com-
press them using the IMCOMP method, and store them in a file named "pic.hdf", enter
r8tohdf 300 400 pic.hdf -i pic1 pic2 pic3
Different types of raster image data are to be stored in a file named "ras.hdf". The image data in the file "rawras1" will be stored with-
out a palette. The image data sets from the file named "rawras2" are to be stored with a palette extracted from a file named "mypal". The
images from the "rawras1" and "rawras2" files are to be compressed using run-length encoding, and the image in the "rawras3" file is not to
be compressed. The size of all images are 256 x 512 bytes. The following command is used to do this:
r8tohdf 256 512 ras.hdf -c rawras1 -p mypal rawras2 -r rawras3
SEE ALSO hdftor8(1), hdf(5)
November 6, 1999 R8TOHDF(1)