How to fetch files right below based on some matching criteria?
I have a requirement where in i need to select records right below the search criteria
qwertykeyboard and white are headers separated by a tab.
when i execute my script..i would be searching to bring whatever records are beneath white and black...Also, can i get these records into 2 files
1 for white
and 1 for black
---------- Post updated at 10:27 PM ---------- Previous update was at 09:18 PM ----------
Any answers??????
---------- Post updated 06-28-12 at 12:48 PM ---------- Previous update was 06-27-12 at 10:27 PM ----------
Have i posted the Question in the correct forum????
Last edited by vbe; 06-27-2012 at 12:50 PM..
Reason: mot all the text in code tags!! it becomes useless!
Hello,
I'm spendind hours trying to figure out how a script could remove files and folders older than 30days in a given volume (/dataVolumes/Booba.1.0).
Within this volume, all users have their personal folder that starts with "RC-..", so the script should skip them for deletion.
I will... (4 Replies)
Hello everyone,
My OS is AIX 5.2
I would like some help in getting command syntax that does the following:
1. Searches simultaneously several directories downward;
2. Checks every subdirectory in each directory (and so on...) for file names that contain certain characters such as “~”, start... (0 Replies)
Hi all,
i would like to create a script that move and rename files from all the subdirectories of a given directory to others subdirectories of the same directory based on "matching" criteria in the "from" and "to" parameters.
Example:
Begin script
from /home/test/1_T_2008* move to... (3 Replies)
I have a file which will have rows like shown below,
ST*820*316054716
RMR*IV*11333331009*PO*40.31
REF*IV*22234441009*xsss471-2762
DTM*003*091016
ENT*000006
RMR*IV*2222234444*PO*239.91
REF*IV*1234445451009*LJhjlkhkj471-2762 </SPAN>
DTM*003*
091016
RMR*IV*2223344441009*PO*40.31... (18 Replies)
Hi All,
I am creting archive script in which i need to split the source file's to different target folder's based on the input file name first character.
Input1.txt -- will contains file names that are needs to be Archive.
Input1.txt
A1213355
B2255666
C2254555
A6655444
C5566445
... (2 Replies)
I have a file.....
xxx 2345 455
abc 345 555
cdf 456 777
fff 555 888
Now my requirement is, Say if, i want to select only those records prior to the record fff 555 888...
how do i go about doing this in unix....
The fff would be hardcoded as it wud be fixed and everytime when i... (7 Replies)
i have a directory which consist of multiple files out of which there are some files that has -e in their name.
I want to write a script that will change all those file-name to -l
example there are some files with name :
file1-e.wav
file2-e.wav
file3-english-e.wav
file-4-e.wav
... (3 Replies)
There are 4 files inside one folder matching criteria i.e. File name = ABCJmdmfbsjopXXXXXXX_mm-dd-yyyy_XXX.data
Here is the Code which find the files matching criteria:-
TS=`date +"%m-%d-%Y"`| for fname in `find . -name "ABCJmdmfbsjop???????_${TS}*.data"`
do # Matching File Processing Code.... (1 Reply)
Hi All
I have a requirement like below.I have always 12 files got generated in my directory called /xx/out/
abc_2014_10_121.xml
abc_2014_09_345.xml
abc_2014_08_432.xml
abc_2014_07_123.xml
abc_2014_06_098.xml
abc_2014_05_569.xml
abc_2014_04_430.xml
abc_2014_03_235.xml
abc_2014_02_056.xml... (9 Replies)
Hi,
I am trying to merge two csv files based on matching criteria:
File description is as below :
Key_File :
000|اق|Key_HF|اق|Key_FName
001|اق|Key_11|اق|Sort_Key22|اق|Key_31
002|اق|Key_12|اق|Sort_Key23|اق|Key_32
003|اق|Key_13|اق|Sort_Key24|اق|Key_33
050|اق|Key_15|اق|Sort_Key25|اق|Key_34... (3 Replies)
Discussion started by: PK29
3 Replies
LEARN ABOUT DEBIAN
pbmclean
pbmclean(1) General Commands Manual pbmclean(1)NAME
pbmclean - flip isolated pixels in portable bitmap
SYNOPSIS
pbmclean [-minneighbors=N] [-black|-white] [pbmfile]
You can use the minimum unique abbreviation of the options. You can use two hyphens instead of one. You can separate an option name from
its value with white space instead of an equals sign.
Before December 2001, pbmclean accepted -N instead of -minneighbors.
DESCRIPTION
pbmclean cleans up a PBM image of random specs. It reads a PBM image as input and outputs a PBM that is the same as the input except with
every pixel which has less than N identical neighbours inverted.
The default for N is 1 - only completely isolated pixels are flipped.
(A value of N greater than 8 generates a completely inverted image (but use pnminvert to do that) -- or a completely white or completely
black image with the -black or -white option).
pbmclean considers the area beyond the edges of the image to be white. (This matters when you consider pixels right on the edge of the
image).
You can use pbmclean to clean up "snow" on bitmap images.
OPTIONS -black
-white Flip pixels of the specified color. By default, if you specify neither -black nor -white, pbmclean flips both black and white pix-
els which do not have sufficient identical neighbors. If you specify -black, pbmclean leaves the white pixels alone and just erases
isolated black pixels. Vice versa for -white. You may specify both -black and -white to get the same as the default behavior.
SEE ALSO pbm(5)AUTHOR
Copyright (C) 1990 by Angus Duggan Copyright (C) 1989 by Jef Poskanzer. Copyright (C) 2001 by Michael Sternberg.
Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, pro-
vided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in sup-
porting documentation. This software is provided "as is" without express or implied warranty.
18 Oct 2001 pbmclean(1)