Sponsored Content
Top Forums Shell Programming and Scripting filter and get the latest order number Post 302110445 by happyv on Tuesday 13th of March 2007 04:28:26 AM
Old 03-13-2007
filter and get the latest order number

hello,

how can I filter and get the latest order number (last five digits) below:

input file:
johnmm00001
maryyy00121
johnm100222
johnmm00003
maryyy00122

output file:
johnmm00003
maryyy00122
johnm100222
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

adding order number in the output file

Hello, I have a list of all order number like below: maryu01001 johnm00003 peter02234 catmy66751 For the above, all number must in 5 digits and I need to add one into the number and output a new list like below: maryu01002 johnm00004 peter02235 catmy66752 How can write a... (20 Replies)
Discussion started by: happyv
20 Replies

2. Shell Programming and Scripting

List number in decending order using AWK

Hi All, Can anyone show me how to list the below numbers in decending order? I have a code to find out whats the largest number though but can it be modified to in-corporate in function ? Thanks in advance Input: 20 30 10 40 50 Output: 50 40 30 20 (2 Replies)
Discussion started by: Raynon
2 Replies

3. Shell Programming and Scripting

Regarding about the print line number/order

Hello, I am trying to print line number/order using this command awk '{print $0, FNR}' myfilename 11006 A41 1888 11006 A41 1888 11006 A41 1888 11006 A41 ... (2 Replies)
Discussion started by: davidkhan
2 Replies

4. Shell Programming and Scripting

Counts a number of unique word contained in the file and print them in alphabetical order

What should be the Shell script that counts a number of unique word contained in a file and print them in alphabetical order line by line? (7 Replies)
Discussion started by: proactiveaditya
7 Replies

5. Shell Programming and Scripting

Help in writing a KSH script to filter the latest record?

Hi All, I have a text file with the folowing content. BANGALORE|1417|2010-02-04 08:41:04.174|dob|xxx BANGALORE|1416|2010-02-04 08:23:19.566|dob|yyy BANGALORE|1415|2010-02-04 08:20:14.497|dob|aaa BANGALORE|1414|2010-02-04 08:19:40.065|dob|vvv BANGALORE|1413|2010-02-04... (4 Replies)
Discussion started by: Karpak
4 Replies

6. Shell Programming and Scripting

Filter certain number of alphabets

filter the ones (ex:>1279_17_27_F3) that have 50letters (ABABABACACACACACAADADADADABABABABAACACACACACACAACAC) in input. And others that are less than 50 have to be ignore and the ones with more than 50 have to trimmed to first 50 letters. Thanx >1279_16_1960_F3 A >1279_16_2010_F3 BCCC... (2 Replies)
Discussion started by: ruby_sgp
2 Replies

7. Shell Programming and Scripting

[ask]filter with line number in file

dear all about my last question in fileA.txt (all list line i want to find in fileB.txt) is content of line number fileA.txt 23 34 35 55 59 and fileB.txt is content like 24:asd|ekkk|001|001 123:bca|egsd|210|002 1231:cas|egds|322|231 ... in fileB.txt they have line number like... (5 Replies)
Discussion started by: zvtral
5 Replies

8. Shell Programming and Scripting

script for remove descending order number

hi all i want to remove some descending order number example : 1 100 200 135.00 Gk_wirs 1 1 100 200 136.00 Gk_wirs 50 1 110 210 138.00 Gk_wirs 60 1 100 200 136.00 Gk_wirs 57 ----> how to remove... (6 Replies)
Discussion started by: nithyanandan
6 Replies

9. Shell Programming and Scripting

Parsing log file and print latest number in loop

Hello All, I have an awk script which parses my log file and prints number grepping from a specific line/pattern, now i have to come with a shell script to continue reading the log untill the job is completed, which i would know while reading session log untill process encounters a final... (1 Reply)
Discussion started by: Ariean
1 Replies

10. UNIX for Dummies Questions & Answers

Filter records in a huge text file from a filter text file

Hi Folks, I have a text file with lots of rows with duplicates in the first column, i want to filter out records based on filter columns in a different filter text file. bash scripting is what i need. Data.txt Name OrderID Quantity Sam 123 300 Jay 342 498 Kev 78 2500 Sam 420 50 Vic 10... (3 Replies)
Discussion started by: tech_frk
3 Replies
DIFFPP(1)							      DIFFPP								 DIFFPP(1)

NAME
diffpp - pretty-print diff outputs with GNU enscript SYNOPSIS
diffpp currentfile < diff-file DESCRIPTION
Diffpp converts diff(1)-program's output files to a format suitable to be printed with GNU enscript(1). Program annotates the changes with enscript's special escapes so enscript can highlight the modified portions of the file. All changed and added lines are printed with gray-background, deleted lines are marked with minus (`-') characters; diffpp prints one minus character for each deleted line. EXAMPLES
The easiest way to use diffpp is to use it as an input filter for enscript. If an input filter is specified for enscript it is used to pre-process the incoming data-stream. Filtering does not alter any header strings or file-timestamps which might be printed on enscript headers; only the incoming data is modified. enscript -G2re --filter='rcsdiff %s | diffpp %s' *.c *.h Print the changes between current source files and their latest RCS-versions. enscript -G2re --filter='diff %s~ %s | diffpp %s' *.c *.h Print changes between source files and the corresponding backup-files. SEE ALSO
diff(1), enscript(1) AUTHOR
Markku Rossi <mtr@iki.fi> <http://www.iki.fi/~mtr/> DIFFPP
Jan 29, 1997 DIFFPP(1)
All times are GMT -4. The time now is 03:30 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy