Search Results

Search: Posts Made By: OPTIMUS_prime
1,638
Posted By OPTIMUS_prime
I couldn't understand your second post. Here is...
I couldn't understand your second post. Here is your original post, translated into English:

Greetings,

I need to use SED to create a tool to make my job easier. The objective is to filter a...
3,227
Posted By OPTIMUS_prime
More detail provided
For example, if I have 3 messages in my system mailbox, and I read one and exit mailx, I see these messages:

Saved 1 message in /home/users/tiger/mbox
Held 2 messages in /var/spool/mail/tiger
...
3,227
Posted By OPTIMUS_prime
mbox.
mbox.
3,227
Posted By OPTIMUS_prime
Mail cleanup from ksh script, keeping 50 most recent msgs
I found some posts describing how to completely clean out a mailbox in Unix/Linux. But I want to keep the 50 most recent messages. Any ideas out there?

Thanks!
54,153
Posted By OPTIMUS_prime
cfajohnson, The backslash before the...
cfajohnson,

The backslash before the relational operator did the trick. Without it, the script thought I was trying to create a file. This is what I have now, based on your suggestion:

if [...
54,153
Posted By OPTIMUS_prime
In a .ksh script. Remember, I'm not just...
In a .ksh script.
Remember, I'm not just looking for equal or not-equal. Need to know greater-than or less-than, in the sense of sorting or collating sequence.'
Thanks!
54,153
Posted By OPTIMUS_prime
Compare String Variables for Greater or Less Than?
Is there any way to compare two strings for a greater or less than condition? For example, StringA is "apple" and StringB is "bonnet" and StringC is "captain". Can I only test for equal/not-equal,...
3,521
Posted By OPTIMUS_prime
Thanks for the help. This is the sort...
Thanks for the help.

This is the sort instruction I use in my .ksh script (sort by 4th column in descending order):

sort -r -t! +3 -4 unsorted_file.txt -o sorted_file.txt

Here is some mocked...
3,521
Posted By OPTIMUS_prime
ksh scripting: Extract 1 most recent record for unique key
I'm loading multiple delimited files into an Oracle DB using sqlldr on Unix. I would like to get only the most recent record per each unique key. There may be multiple updates for each key, but I...
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 10:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy