Search Results

Search: Posts Made By: sirrtuan
1,783
Posted By sirrtuan
Thank Shamrock and Corona688. I have another...
Thank Shamrock and Corona688.
I have another question, how do you prevent duplicate organization?

For an example, I don't want this

John | INT, DOM, MIX, MIX

Thanks again for your help.
1,783
Posted By sirrtuan
Help newbie: transposing column into row (pivot)
Hi,

I have a file in this format.

Name | organization
John | INT
Abby| DOM
John | DOM
John | MIX
Jason | INT
Anna | DOM
Abby |MIX

I want the output to look this.

Name |...
2,385
Posted By sirrtuan
I don't have rev command on my unix box.
I don't have rev command on my unix box.
2,385
Posted By sirrtuan
Help rearrange the content of the file.
Hi all,

I need to rearrange the content of the file. I need to move line 1 to 4, 2 to 3, 3 to 2, and 4 to 1.
IPlease help. I was thinking about using head and tail command.

Here is the...
2,253
Posted By sirrtuan
I want to move section 1 to 3 and via versa. ...
I want to move section 1 to 3 and via versa.
Here is an example:

1) CMD INSUPD format
ATT code nature_e
INC /usr/tmp/FORMAT.fmt

2) CMD INSUPD format_element
ATT sqlname_c
...
2,253
Posted By sirrtuan
Help!! manipulating file
Hi all,

I need help manipulating the file below.
Here is what I needed to do.
First, I have to replace INSUPD to DELETE.
Then I need to change the content of the file around by flipping the...
1,604
Posted By sirrtuan
Thank you.
Thank you.
1,604
Posted By sirrtuan
radoulov, This might be a silly question but...
radoulov,

This might be a silly question but why are we sending it to dev/null?
1,604
Posted By sirrtuan
help with while loop
Hi,

I'm trying to write a while loop that will search for "[JkMain] Jk running" in temp.out file
if the word is not there then I want to keep looping until it's there then I want to exit the...
1,448
Posted By sirrtuan
thank you. Both way worked great.
thank you.
Both way worked great.
1,448
Posted By sirrtuan
Help with For Loop.
Hi,
I want to be able to read in each line from a file with for loop. I'm having trouble getting the whole line (white space in between string) Please help.

Here is my file.
a.out contains
...
16,696
Posted By sirrtuan
Perfect...thank you so much.
Perfect...thank you so much.
12,524
Posted By sirrtuan
Thsnks I will give it a try
Thsnks I will give it a try
16,696
Posted By sirrtuan
remove empty directory
Hi,
I need to delete an empty directory in a temp directory except "dir5" (keep everything that is not empty).
Plese advise.

Here is an example of my directory.

/dir/temp/
dir1 - delete if...
23,820
Posted By sirrtuan
thanks...you are the man!!
thanks...you are the man!!
23,820
Posted By sirrtuan
Another question, how do I get the first of a...
Another question, how do I get the first of a previous month?
I'm not familia with sed.

Thank you.
12,524
Posted By sirrtuan
exit status for isql
I'm trying to write a script that will update a table in sysbase.
If it's failed then I want to rerun it one more time before exiting the script (fail due to bad value such as trying to put a...
23,820
Posted By sirrtuan
I got it - sorry Thank you very much for...
I got it - sorry

Thank you very much for your help.
23,820
Posted By sirrtuan
Tytalus, Thanks for the quick reply, your...
Tytalus,

Thanks for the quick reply, your code is giving me a format that I needed but It gave me the current month. I looking for a last date of the previous month.
Please advice.

Thank you.
23,820
Posted By sirrtuan
Help, I need to get the last date of previous month
Hi, I'm new with Unix, I'm trying to get a last day of previous month with this format: %b %d %Y (example: Feb 25 2008).
Here is what I have so far.

#!/bin/ksh
cur_month=`date +%m`...
Showing results 1 to 20 of 20

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