05-29-2014
Thanks alister and corona688!
It does not make much sense to move the files from the folder before it is ready. I came across this situation when there are many samples (~100 x 60) to process and each case is not processed at the same pace, which makes the folder messy. So, I thought to move those processed samples to get rough idea how many of the samples have been handled and how many threads are freed from the cluster.
However, it was great for my learning purpose on shell scripting. Thank you again!
Last edited by yifangt; 05-30-2014 at 12:23 PM..
8 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Friends,
Can any of you explain me about the below line of code?
mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`
Im not able to understand, what exactly it is doing :confused:
Any help would be useful for me.
Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies
2. Shell Programming and Scripting
Hi Everyone,
if my folder "foldera" inside has one file.
so if i do
if ($df =~ /^\./) { next; }
then i will get
###
filea
###
if i want to have
###
..
filea
###
means also display the parent .., how should i modify the perl ~// in my code?
Thanks
---------- Post updated... (6 Replies)
Discussion started by: jimmy_y
6 Replies
3. Shell Programming and Scripting
Hi,
I have line in input file as below:
3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL
My expected output for line in the file must be :
"1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL"
Can someone... (7 Replies)
Discussion started by: shis100
7 Replies
4. UNIX for Dummies Questions & Answers
How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address
and column 3 contains “cc” e-mail address to include with same email.
Sample input file, email.txt
Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies
5. UNIX for Dummies Questions & Answers
Hi All
It's me again with another huge txt files. :confused:
What I have:
- I have 33 huge txt files in a folder.
- I have thousands of line in this txt file which contain many the letter "x" in them.
- Some of them have more than one "x" character in the line.
What I want to achieve:... (8 Replies)
Discussion started by: Nexeu
8 Replies
6. Shell Programming and Scripting
Okay, so I have a rather large text file and will have to process many more and this will save me hours of work.
I'm not very good at scripting, so bear with me please.
Working on Linux RHEL
I've been able to filter and edit and clean up using sed, but I have a problem with moving lines.
... (9 Replies)
Discussion started by: rex007can
9 Replies
7. Shell Programming and Scripting
Hello.
System : opensuse leap 42.3
I have a bash script that build a text file.
I would like the last command doing :
print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt
where :
print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
8. AIX
Hi 2 all,
i have had AIX 7.2
:/# /usr/IBMAHS/bin/apachectl -v
Server version: Apache/2.4.12 (Unix)
Server built: May 25 2015 04:58:27
:/#:/# /usr/IBMAHS/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_worker_module (static)
... (3 Replies)
Discussion started by: penchev
3 Replies
LEARN ABOUT DEBIAN
qwtarrayseriesdata
QwtArraySeriesData(3) Qwt User's Guide QwtArraySeriesData(3)
NAME
QwtArraySeriesData -
Template class for data, that is organized as QVector.
SYNOPSIS
#include <qwt_series_data.h>
Inherits QwtSeriesData< T >.
Public Member Functions
QwtArraySeriesData ()
QwtArraySeriesData (const QVector< T > &)
void setSamples (const QVector< T > &)
const QVector< T > samples () const
virtual size_t size () const
virtual T sample (size_t) const
Protected Attributes
QVector< T > d_samples
Detailed Description
template<typename T> class QwtArraySeriesData< T >
Template class for data, that is organized as QVector.
QVector uses implicit data sharing and can be passed around as argument efficiently.
Constructor & Destructor Documentation
template<typename T > QwtArraySeriesData< T >::QwtArraySeriesData ()
Constructor.
template<typename T> QwtArraySeriesData< T >::QwtArraySeriesData (const QVector< T > &samples) Constructor
Parameters:
samples Array of samples
Member Function Documentation
template<typename T > T QwtArraySeriesData< T >::sample (size_ti) const [virtual] Return a sample
Parameters:
i Index
Returns:
Sample at position i
Implements QwtSeriesData< T >.
template<typename T > const QVector< T > QwtArraySeriesData< T >::samples () const Returns:
Array of samples
template<typename T> void QwtArraySeriesData< T >::setSamples (const QVector< T > &samples) Assign an array of samples
Parameters:
samples Array of samples
template<typename T > size_t QwtArraySeriesData< T >::size () const [virtual] Returns:
Number of samples
Implements QwtSeriesData< T >.
Member Data Documentation
template<typename T> QVector<T> QwtArraySeriesData< T >::d_samples [protected]
Vector of samples.
Author
Generated automatically by Doxygen for Qwt User's Guide from the source code.
Version 6.0.0 Fri Apr 15 2011 QwtArraySeriesData(3)