02-25-2014
Hi, the files actual have there own unique name, the script does work and count from 1 to 10 but only when the files names are identical to start with. Is there away to keep the original base name and still be able to to count from 1 to 10?
Thank very much for all your help
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
:confused: How does UNIX handle the numbering of processes? (2 Replies)
Discussion started by: tweety111
2 Replies
2. UNIX for Dummies Questions & Answers
Just a shot question...
how to make 1,2,3,...999
into the form of
001,002,003....999
(3 digits)
Thanks.... (9 Replies)
Discussion started by: biglemon
9 Replies
3. Shell Programming and Scripting
I'm trying to do a script that will look for a log file if it is already there change the name to another name.
I.E
if log.0 is there
rename to log.1
rename log.1 to log.2
rename log.2 to log.3 and so on.
Only thing is I got no idea where or what is the best command to use for this? ... (3 Replies)
Discussion started by: merlin
3 Replies
4. Programming
We have to convert a sequential file to a 80 char line sequential file (HP UX platform).The sequential file contains special characters. which after conversion of the file to line sequential are getting coverted into "new line" or "tab" and file is getting distorted. Is there any way to read these... (2 Replies)
Discussion started by: Rajeshsu
2 Replies
5. UNIX for Advanced & Expert Users
hello i'm trying to figure out how to number a blank line. For instance this :
sed '/./=' file | sed '/./N; s/\n/ /'
gives me
1 aaaa
2 bbbbbb
4 cccccc
5 ffkkkfff
6 ffsdfdfs
I would like something like this:
1 aaaaa
2
3 bbbbbb
4
5 cccccc
And so... (6 Replies)
Discussion started by: wisher115
6 Replies
6. Shell Programming and Scripting
Hi,
All I need to do is number a file.
The file looks like this
>
JJJJJJJJJJJJJJJJJJJJJ
>
JKJKJKKKKKKJJJ
>
MMMMYKKKJKKK
what I want to do is number it so that theres a numerical value beside the >.
>1
JJJJJJJJJJJJJJJJJJJJJ
>2
JKJKJKKKKKKJJJ (2 Replies)
Discussion started by: kylle345
2 Replies
7. Shell Programming and Scripting
Hi
I have a file sequential way i.e. written in contineous mode and the Record Seperator is AM from which the record is seperated .Now to process I have to make line sequential,and more over record length is not same it varies as per the input address,
AM1234563 John Murray 24 Old streeet old... (5 Replies)
Discussion started by: vakharia Mahesh
5 Replies
8. Programming
Writing a Tool to simulate non-sequential disk I/O (simulate db file sequential read) in C POSIX
I have over the years come across the same issue a couple of times, and it normally is that the read speed on SAN is absolutely atrocious when doing non-sequential I/O to the disks. Problem being of... (7 Replies)
Discussion started by: vrghost
7 Replies
9. Shell Programming and Scripting
Would it be possible for a script to duplicate a file and incrementally number it?
File in: XXX_007_0580_xxxx_v0016.aep
File out: XXX_007_0580_xxxx_v0017.aep
If someone knows of a way I'd love to see it.
Thanks! (7 Replies)
Discussion started by: scribling
7 Replies
10. Shell Programming and Scripting
The awk below produces an output with the original header and only the matching lines (which is good), but the output where the original line numbering in the match found on is used. I can not figure out how to sequentially number the output instead of using the original.
I did try to add... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT DEBIAN
numbering
numbering(7rheolef) rheolef-6.1 numbering(7rheolef)
NAME
numbering - global degree of freedom numbering
SYNOPSYS
The numbering class defines methods that furnish global numbering of degrees of freedom. This numbering depends upon the degrees of poly-
noms on elements and upon the continuity requirement at inter-element boundary. For instance the "P1" continuous finite element approxima-
tion has one degree of freedom per vertice of the mesh, while its discontinuous counterpart has dim(basis) times the number of elements of
the mesh, where dim(basis) is the size of the local finite element basis.
IMPLEMENTATION
template <class T, class M = rheo_default_memory_model>
class numbering : public smart_pointer<numbering_rep<T,M> > {
public:
// typedefs:
typedef numbering_rep<T,M> rep;
typedef smart_pointer<rep> base;
typedef size_t size_type;
// allocators:
numbering (std::string name = "");
numbering (numbering_rep<T,M>* ptr);
~numbering() {}
// accessors & modifiers:
bool is_initialized() const { return base::operator->() != 0; }
std::string name() const;
size_type degree () const;
void set_degree (size_type degree) const;
bool is_continuous() const;
bool is_discontinuous() const { return !is_continuous(); }
const basis_basic<T>& get_basis() const { return base::data().get_basis(); }
size_type ndof (const geo_size& gs, size_type map_dim) const;
size_type dis_ndof (const geo_size& gs, size_type map_dim) const;
void dis_idof (const geo_size& gs, const geo_element& K, std::vector<size_type>& dis_idof) const;
void set_ios_permutations (const class geo_basic<T,M>& omega,
array<size_type,M>& idof2ios_dis_idof,
array<size_type,M>& ios_idof2dis_idof) const;
// comparator:
bool operator== (const numbering<T,M>& y) const {
if (! is_initialized() && ! y.is_initialized()) return true;
if (! is_initialized() || ! y.is_initialized()) return false;
return name() == y.name();
}
// i/o:
void dump(std::ostream& out = std::cerr) const;
};
rheolef-6.1 rheolef-6.1 numbering(7rheolef)