07-31-2012
I'm a bit concerned with scrutinizer's sort - it would mess up adjacency of lines with identical field 13 - methinks it should sort -k13,13 first ...
9 More Discussions You Might Find Interesting
1. Filesystems, Disks and Memory
ive looked around for software to do this in linux, but am still not sure how to. i want to be able to mount a cdr and write to it and be able to take the disk out and finish writing whatever i want to it at a later time. can we do this in linux? (4 Replies)
Discussion started by: norsk hedensk
4 Replies
2. Shell Programming and Scripting
HI all,
I am relatively new to Unix Shell Scripts ...
I want to know how u can calculate the differnece between the 2 dates.
As if in Oracle by using SYSDATE u get current date and time ..
How one can achieve it in Unix ?
Thanks.. (1 Reply)
Discussion started by: dhananjaysk
1 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I need to do croning in PHP to generate a CDR (Call Details Record) file daily from the mysql database.
The CDR file has to be named in a certain sequence such as xx00000xxx200604080850.cdr. A new file is written every day.
The generated CDR file is then ftp over to a server.
I am... (0 Replies)
Discussion started by: kurl
0 Replies
4. UNIX for Dummies Questions & Answers
I am sending the data in userfile and colfile from ksh script to pl/sql script
linto an array with this command
grep '' $userfile |awk '{print "my_user_id("FNR") := '$SQL_QUOTE'"$1"'$SQL_QUOTE';"}' >> $SQL_TEMP_FILE
grep '^\{1,10\}$' $colfile | awk '{print "my_col_id("NR") := "$1";"}' >>... (0 Replies)
Discussion started by: pinky
0 Replies
5. Shell Programming and Scripting
Dear Freind
in the file attached how parse the data to be like a normal table
:D (3 Replies)
Discussion started by: saifsafaa
3 Replies
6. AIX
Hi Everyon,
I am stuck in a script.I have a file named file1.txt as given below:
It contains 2 columns-count and filename.
cat file1.txt
count filename
100 A_new.txt
1000 A_full.txt
1100 B_new.txt
2000 B_full.txt
1100 C_new.txt
2000 C_full.txt
...................
..................... (10 Replies)
Discussion started by: rajsharma
10 Replies
7. Shell Programming and Scripting
Hi All,
I need to find the date 19days back from the current date:
eg: if today is 17 March 2013
then the output should be : 26 Feb 2013
Can i do this using date command in Korn Shell?
And also if i need future 15 days date from current date, how to that?
Any help appreciated :)
... (3 Replies)
Discussion started by: Arun Mishra
3 Replies
8. Shell Programming and Scripting
Hi All,
I have one file with two columns separated by tab.
I need to search for second column value of this file in the 5 column of another file. If the match is found replace the 5th column of second file with entire row of the first file.
e.g.
file1
123 D.abc
234 D.rde
4563 ... (2 Replies)
Discussion started by: alok2082
2 Replies
9. Shell Programming and Scripting
Hi,
I am in a terrible emergency. I have multiple cdr files with line count >6000.
I need to append |0| | | | | | | |random| to end of each line. The random number should never repeat.
Please help with a shell script to process all cdr's in a directory with above requirement. (23 Replies)
Discussion started by: shiburnair
23 Replies
LEARN ABOUT DEBIAN
cssort
CSSORT(1p) User Contributed Perl Documentation CSSORT(1p)
NAME
cssort -- Czech sort
FORMAT
cssort [ "-c"list | "-f"list ["-d"regexp]] [files ...]
SYNOPSIS
cssort -c10-15,50-,25-45 < file
cssort -f3,5-6 < file
cssort -f3,5-6 -s: < file
DESCRIPTION
Cssort is a utility that sorts input lines according to rules used in the Czech language. You can run it without any options, then it just
uses whole lines for sorting. With the options, it's possible to specify parts of the lines to be used for comparison.
list
A comma-separated list of integer field numbers or field ranges. The are indexed from 1 and if a range is open (eg. "5-"), it means all
remaining fields from the starting number.
-c Stands for columns and the list that follows specifies byte ranges on the line. You will probably use this option to sort data with
fixed width fields.
-f Fields that will be used for sort.
-d Delimiter that separates fields in the -f option. It is a Perl regular expression, the default is "[ ]+", which means any number of
spaces or tabs in a row.
The program assumes ISO-8859-2 encoding. Some way to specify another input encoding will come in the next versions. If you need to sort
files with different encodings, you might want to check the cstocs conversion utility.
SEE ALSO
Cz::Sort(3), cstocs(1).
AUTHOR
Jan Pazdziora, adelton@fi.muni.cz.
perl v5.10.1 2010-01-16 CSSORT(1p)