I'm attempting to write a script that will look into a directory, discover all unique names, create directories for their prefix names and place the files inside. I do this now one by one with a simple script but I'd like to automate the process.
The directory would contain something like:
rv0050_v01.1000.dpx
rv0050_v01.1001.dpx
rv0050_v01.1002.dpx ...
rv0060_v01.1000.dpx
rv0060_v01.1001.dpx
rv0060_v01.1002.dpx ...
rv0090_v01.1000.dpx
rv0090_v01.1001.dpx
rv0090_v01.1002.dpx ...
So, I need to discover each unique name, create directories for only the prefix (rv0050,) and place the files inside.
Currently I use something like this:
Ideas?
Thanks
I have a large directory of web pages. I am doing a search through the web pages using grep and would like to get a list of unique file names of search results. The following command works fine to give me a list of file names where term appears:
grep -l term *.html
However, since these are... (3 Replies)
I'm looking for terminal programs, which organize and pretty code like HTML or JavaScript.
Thanks!
---------- Post updated at 07:01 AM ---------- Previous update was at 01:49 AM ----------
Found this Online javascript beautifier (1 Reply)
I have 84 files with the following names splitseqs.1, spliseqs.2 etc.
and I want to change the .number to a unique filename.
E.g.
change splitseqs.1 into splitseqs.7114_1#24
and
change spliseqs.2 into splitseqs.7067_2#4
So all the current file names are unique, so are the new file names.... (1 Reply)
Is it possible to modify file like this.
1. Remove all the duplicate names in a define column i.e 4th col
2. Count the no.of unique names separated by ";" and print as a 5th col
thanx in advance!!
Q
input
c1 30 3 Eh2
c10 96 3 Frp
c41 396 3 Ua5;Lop;Kol;Kol
c62 2 30 Fmp;Fmp;Fmp
... (5 Replies)
I want to have one .bash_profile works on multiple platform, ubuntu, debian, redhat, cygwin, osx. So how should I organize .bash_profile?
It can be multiple files in some subdir
Let me brief you:
what i want is a way to organize bash_profile across platforms so I can use one set of profiles... (2 Replies)
Dear Users,
Appreciate your help if you could help me with splitting a large file > 1 million lines with sed or awk. below is the text in the file
input file.txt
scaffold1 928 929 C/T +
scaffold1 942 943 G/C +
scaffold1 959 960 C/T +... (6 Replies)
Hello, maybe someone could help me with this.
I'm trying to print in a more ordered way this input.
the input file is:
AB XY UT ZW PRAT
0 3 4 7214800 93
0 3 4 730770 ... (8 Replies)
Discussion started by: Ophiuchus
8 Replies
LEARN ABOUT DEBIAN
viewport
Viewport(3I) InterViews Reference Manual Viewport(3I)NAME
Viewport - scrollable view
SYNOPSIS
#include <InterViews/viewport.h>
DESCRIPTION
Viewport is a subclass of MonoScene that allocates its component exactly as much space as it wants (determined from its shape). This space
will be clipped to the viewport's size and the viewport maintains a perspective to adjust the portion of the component that is actually
displayed. If the component is smaller than the viewport's canvas, then the viewport background will be filled with a light gray pattern.
PUBLIC OPERATIONS
Viewport(Interactor* = nil, Alignment = Center)
Construct a new viewport. If the interactor is not nil, it is inserted as the viewport's component. The second parameter deter-
mines where the component is placed relative to the viewport.
Insert(Interactor*)
Set the component interactor.
void Change(Interactor*)
A viewport does not propagate changes. Thus, if the component's shape changes the viewport simply resizes the component according
to the new shape.
void Remove(Interactor*)
Take out the component interactor.
virtual void Adjust(Perspective&)
Change the viewport's perspective to the given one. This operation will cause the desired area of the component to be drawn.
void AdjustTo(float px, float py, float zx, float zy)
void AdjustBy(float dpx, float dpy, float dzx, float dzy)
void ScrollTo(float px, float py)
void ScrollXTo(float px)
void ScrollYTo(float py)
void ScrollBy(float dpx, float dpy)
void ScrollXBy(float dpx)
void ScrollYBy(float dpy)
void ZoomTo(float zx, float zy)
void ZoomXTo(float zx)
void ZoomYTo(float zy)
void ZoomBy(float dzx, float dzy)
void ZoomXBy(float dzx)
void ZoomYBy(float dzy)
Short-hand operations for explicit manipulation of the viewport's perspective.
float XPos()
float YPos()
float XMag()
float YMag()
Short-hand for retrieving information about the current perspective.
SEE ALSO Perspective(3I), Scene(3I), Shape(3I)InterViews 10 February 1988 Viewport(3I)