Evening all. I'm having a terrible time with a script I've been working on for a few days now...
Say I have a text file named top10song.tm2, with the following in it:
The part of my script I'm having trouble with is as follows:
I've confirmed that every title in the top10song.tm2 list exists somewhere in /mnt/music. Running /find /mnt/music -iname "*paint it black*" from the command line returns a positive match, for example. But in the script? Nothing.
Also, is there a way to get find to stop after the first match?
I need to split a file based on certain context inside the file. Is there a unix command that can do this? I have looked into split and csplit but it does not seem like those would work because I need to split this file based on certain text. The file has multiple records and I need to split this... (1 Reply)
I have been working on a script to list all the name's of a subfolder in a text file then edit that text file and then delete the subfolder base on the edited text file so far I have been able to do every thing I just talked about but can't figure out how to delete the subfolers base on a text file... (8 Replies)
Hi All,
I am very new to UNIX and I have tried this for a longtime now and unable to crack it....
There is a file that is continuously updating. I need to search for the string and find the date @ which it updated every day.....
eg:
String is "work started"
The log entry is as below:
... (1 Reply)
Hello,
I have a file ff.txt that looks as follows
*ABNA.txt
356
24
36
112
*AC24.txt
457
458
321
2
ABNA.txt and AC24.txt are the files in the folder named foo1. Based on the numbers in the ff.txt file, I want to extract the lines from the corresponding files in the foo1 folder and... (2 Replies)
Hello, I have a text file "file.list" with the contents below.
file1
filename1
file2
filename2
file3
filename3
file1, file2 and file3 are files existing in the same directory as the text file file.list.
I want to rename file1 to filename1, file2 to filename2, as show in the text... (1 Reply)
I am trying to use awk skip each line with a ## or # and check each line after for STB= and if that value in greater than or = to 0.8, then at the end of line the text "STRAND BIAS" is written in else "GOOD".
So in the file of 4 entries attached.
awk tried:
awk NR > "##"' "#" -F"STB="... (6 Replies)
I want to do FTP an Huge XML file to mainframe server using AIX server
Since my file size is huge, i want to split the XML file based on a delimiter , the record delimiter should be set after every 27000 bytes of data
and then do the ftp
This is done becos the data send to the mainframe must... (1 Reply)
Hello!
New here although not completely new to Unix.
I wonder how I could rename files based on the data found in a simple textfile.
It goes like this:
I have 4 files
1 ldfgkkfjslkdfjsldkfjsf.wav
2 nndsdflksdjf.wav
3 sdflksjdf jjsdflsdfl.wav
4 dkadsdddd.wav
Textfile.txt looks like... (14 Replies)
Hi All,
In the file names we have dates.
Based on the file format given by the user,
if any file is not existed for a particular date with in a given interval we should consider that file is missing.
I have the below files in the directory /bin/daily/voda_files.
... (9 Replies)
I am trying to mv each of the .vcf files in the variants folder to the folder in /home/cmccabe/f2 that the .vcf id is found in file. $2 in file will always have the id of a .vcf in the variants folder. The line in blue staring with R_2019 in file up to the -v5.6 will always be an exact match to a... (4 Replies)
Discussion started by: cmccabe
4 Replies
LEARN ABOUT OPENSOLARIS
pnmindex
pnmindex(1) General Commands Manual pnmindex(1)NAME
pnmindex - build a visual index of a bunch of anymaps
SYNOPSIS
pnmindex [-size N] [-across N] [-colors N] [-black] [-title T] [-quant|-noquant] pnmfile ...
DESCRIPTION
pnmindex creates an index image containing thumbnail (small) versions of a bunch of PNM files you supply.
pnmindex labels each thumbnail and, optionally, contains a title.
OPTIONS -size N
The size of each thumbnail. The image is scaled to fit maximally inside a N x N pixel box without changing its aspect ratio.
Default is 100.
-across N
The number of thumbnails in each row. Default is 6.
-colors N
The maximum number of colors allowed in the overall image. If it would otherwise have more colors than these, pnmindex quantizes
the result. The default is 256.
However, this value is meaningless if you specify the -noquant option.
-black This controls the color of the padding between the images; normally it's white and the labels are black lettering on white back-
ground, but the -black flag reverses this.
-title title
Specifies a title top place at the top of the image. Default is no title.
-quant Enables quanization (to the number of colors specified by -colors ). Quantization is on by default but you can disable it with
-noquant.
-noquant
See -quant.
SEE ALSO pnmscale(1), pnmcat(1), pbmtext(1), ppmquant(1), pnm(5)AUTHOR
Copyright (C) 1991 by Jef Poskanzer. -title and -noquant added 2000 by John Heidemann.
9 January 1991 pnmindex(1)