Urgent ...pls Sorting files based on timestamp and picking the latest file
Hi Friends,
Newbie to shell scripting. Currently i have used the below to sort data based on filenames and datestamp
Now i want to delete files with older date and keep 4 latest files available in the filename(no system timestamp here) So my result should be like
Dear All,
I have the followoing requirement..
REQ-1:
Suppose I have the following files
XX_20070202000101.zip
XX_20080223000101.zip
XX_20080226000101.zip
XX_20080227000101.zip
XX_20080228000101.zip
XX_20080229000101.zip
Suppose sysdate = 29 Feb 2007
I need to delete all files... (3 Replies)
I have a few log files which get generated on a daily basis..So, I need to pick only the ones which get generated for that particular day.
-rw-r--r-- 1 staff 510732676 Apr 7 22:01 test.log040711
-rwxrwxrwx 1 staff 2147482545 Apr 7 21:30 test.log.2
-rwxrwxrwx 1 staff 2147482581 Apr 7 19:26... (43 Replies)
Hi Friends,
Newbie to shell scripting
Currently i have used the below to sort data based on filenames and datestamp
$ printf '%s\n' *.dat* | sort -t. -k3,4
filename_1.dat.20120430.Z
filename_2.dat.20120430.Z
filename_3.dat.20120430.Z
filename_1.dat.20120501.Z
filename_2.dat.20120501.Z... (12 Replies)
I have a file in unix with sample data as follows :
--------------------------------------------------------------
--------------------------------------------------------------
{30001002|XXparameter|Layout|$
I want this file to be splitted into different files and corresponding to the sample... (54 Replies)
Hi,
I have requirement to list out files that are created after particular file.
ex. I have below files in my directory. I want to display files created after /dirdat/CG1/cg004440 file.
./dirdat/CG1/cg004438 09/07/14 0:44:05
./dirdat/CG1/cg004439 09/07/14 6:01:48 ... (3 Replies)
Hi ,
I did the initial search but could not find what I was expecting for.
15606Always_9999999997_20160418.xml
15606Always_9999999998_20160418.xml
15606Always_9999999999_20160418.xml
9819Always_99999999900_20160418.xml
9819Always_99999999911_20160418.xmlAbove is the list of files I... (4 Replies)
Hi,
I have two pipe separated files as below:
head -3 file1.txt
"HD"|"Nov 11 2016 4:08AM"|"0000000018"
"DT"|"240350264"|"56432"
"DT"|"240350264"|"56432"
head -3 file2.txt
"HD"|"Nov 15 2016 2:18AM"|"0000000019"
"DT"|"240350264"|"56432"
"DT"|"240350264"|"56432"
I want to list the... (6 Replies)
Hi All,
I have list of files like below with name abcxyz.timestamp. I need a unix command to pick the latest file from the list of below files. Here in this case the lates file is abcxyz.20190304103200. I have used this unix command "ls abcxyz*|tail -1" but i heard that it is not the appropriate... (2 Replies)
Discussion started by: rakeshp
2 Replies
LEARN ABOUT DEBIAN
sdpa
SDPA(1) General Commands Manual SDPA(1)NAME
SDPA - High-performance software package for SemiDefinite Programs
SYNOPSIS
sdpa DataFile OutputFile [InitialPtFile] [-pt parameters] [-dimacs] [-numThreads numThreads]
sdpa [options] files...
sdpa --version
DESCRIPTION
sdpa - "SDPA (SemiDefinite Programming Algorithm)" is one of the most efficient and stable software packages for solving SDPs based on the
primal-dual interior-point method.
SDP (SemiDefinite Program) is used for financial engineering, machine learning, control theory, sensor network problem, quantum chemistry,
quantum information, combinatorial optimizaiton, polynomial optimization, and so on.
Futher information on SDP and SDPA can be found at
http://sdpa.sourceforge.net/
OPTIONS ---- option type 1 ----
sdpa DataFile OutputFile [InitialPtFile] [-pt parameters] [-dimacs] [-numThreads numThreads]
parameters = 0 default, 1 fast (unstable), 2 slow (stable)
example1-1: sdpa example1.dat example1.result
example1-2: sdpa example1.dat-s example1.result
example1-3: sdpa example1.dat example1.result example1.ini
example1-4: sdpa example1.dat example1.result -pt 2
example1-5: sdpa example1.dat example1.result -dimacs
example1-6: sdpa example1.dat example1.result -numThreads 4
---- option type 2 ----
sdpa [option filename]+
-dd : data dense :: -ds : data sparse
-id : init dense :: -is : init sparse
-o : output :: -p : parameter
-pt : parameters , 0 default, 1 fast (unstable)
2 slow (stable)
example2-1: sdpa -o example1.result -dd example1.dat
example2-2: sdpa -ds example1.dat-s -o example1.result -p param.sdpa
example2-3: sdpa -ds example1.dat-s -o example1.result -pt 2
example2-4: sdpa -ds example1.dat-s -o example1.result -dimacs
example2-5: sdpa -ds example1.dat-s -o example1.result -numThreads 4
---- option type 3 ----
sdpa --version
to print out version and exit.
PARAMETER_FILE
is decided by the following priority
1: The file assigned by '-p' option of 'option type 2'.
For 'option type1', this is skipped.
2: ./param.sdpa
For 'option type2', this is skipped.
3: /usr/share/sdpa/param.sdpa
4: Default parameter
-dimacs
printout dimacs information incurring additional computation cost
-numThreads
number of pthreads for internal computation
AUTHOR
SDPA was written by SDPA Project <sdpa-developers@lists.sourceforge.net>.
This manual page was written by Makoto Yamashita <Makoto.Yamashita@is.titech.ac.jp>.
July 28, 2011 SDPA(1)