Search Results

Search: Posts Made By: Vikas Sood
2,913
Posted By Vikas Sood
thanks
You guys are awesome !!!
2,913
Posted By Vikas Sood
thanks but...
Thanks for your reply. I understand you are trying to put the date part in first column in list output. But then how do you select the correct file? My requirement is to somehow pass '20060803' and...
2,913
Posted By Vikas Sood
Sorting prob
Hi

I have a directory having following three set of files as follows:

test.20060804
test.20060801
test.20060802

I want to list the latest file which is less than 20060803. in this case, it...
19,620
Posted By Vikas Sood
well..
Well

Not everybody is comfortable with awk or nawk..Anyways, just wanted to give an alternative (may be not simpler for awk/nawk gurus) way to accomplish the task.

Did not hurt anyone, did it?
19,620
Posted By Vikas Sood
A simpler solution
Hi

Don't want to beat a dead horse but following could be an alternative and i believe much simpler solution

while read name
do
name=`echo $name|awk -F":" '{print $1}'`...
12,206
Posted By Vikas Sood
25 is the upper limit
Jim

Once again, thanks for your script. I tested it out and found out that there is a upper limit of 25. Contrary to what I thought, it looks like 25 is not the limit of "wait" but apparantly it...
12,206
Posted By Vikas Sood
Just one more question
Jim

Thanks for your reply

Per your code, does "wait" wait for all the bg jobs? I had heard there was some kind of upper limit.

Thanks
12,206
Posted By Vikas Sood
background process return code
Hi
I have the following piece of code that is calling another child process archive.ksh in the background

while read file;
do
file_name=`ls $file`;
ksh archive.ksh $file_name &;
...
19,386
Posted By Vikas Sood
Thanks
Thanks for your reply

You were right

/opt/cdedev/informatica/InfSrv/app is a symbolic link to vikas/cdeddev/app.

I did not know that you could create soft links for directories as well....
19,386
Posted By Vikas Sood
concept of mount point
Hi All

I Know it is a really basic and stupid question perhaps...But I am going bonkers..

I have following valid paths in my unix system:

1. /opt/cdedev/informatica/InfSrv/app/bin
2....
2,072
Posted By Vikas Sood
thanks
Hi
Thanks for your reply. I had edited the post to include a fouth line of code? Could you plelase help me understand that as well?
TIA
Vikas.
2,072
Posted By Vikas Sood
what does this piece of code do?
Hi All,

I am trying to understand and change some code written by some programmer a while ago. There are following three lines of code that I am unable to grasp. Could anybody please help me...
4,053
Posted By Vikas Sood
Thanks
Thanks Jim and all

I guess I got my answer. Jim put it down nicely by saying 'you dont use "or" in commands like that'

Thanks all for your replies...
4,053
Posted By Vikas Sood
Interesting :-)
This got very interesting actually. I was quite surprised to see that sed considered '|' as literal '|' and not any operator.

In that case, why it did not consider '[ ]' literally in my earlier...
4,053
Posted By Vikas Sood
well...
Matrixmadhan

I dont think that would be a very clean way to do it.. I mean if there is something like '|' that is allowed in regular expression and if it is supposed to work with sed, it should,...
4,053
Posted By Vikas Sood
hmm
:confused: Thanks for your reply and i guess I am still confused. By using a '|', i meant to imply an 'or' to sed. I was telling it to convert either .gz. or .gZ. or .GZ. or .Gz. to a dot

It...
4,053
Posted By Vikas Sood
??
I think I lost you there when you said, there is no pattern. I tried the folllowing code for a compressed file and it works:

filename.z.timestamp
filename.Z.timestamp

echo $filename|sed...
4,053
Posted By Vikas Sood
Example
Hi

I started the thread with the example. To make it clearer, below is the real life example :

I receive a file with a timestamp appended to it from source system. If it is a compressed file...
4,053
Posted By Vikas Sood
Thanks
Thanks Vino. It worked for me. Is it right to assume that the regular expression '|' does not work with sed and probably it is just meant to work with awk or grep?

Anyways, thanks again. It worked...
4,053
Posted By Vikas Sood
isn't it feasible thru sed?
Thanks for ur reply. However, i am still interested to know whether it is possible thru sed or not. The reason is, if it contains anything else than a .txt or .csv, i dont want to convert it into...
4,053
Posted By Vikas Sood
sed question
Hi

I am trying to replace an extension in a file name using sed as follows:

echo $filename | sed 's/.txt/.doc/'

My objective is to replace any extension with let's say a .doc extension....
1,889
Posted By Vikas Sood
this is why
Hi Glenn
Thanks for your reply. However, $4 can definitly be calculated at the runtime. As I said i ran this piece of code on some other unix box and it ran fine. Also if i use nawk, it runs fine on...
1,889
Posted By Vikas Sood
Plz help me to understand this now
Guys

I finally resolved the problem. As i mentioned in my last post that somehow, this code was working on one box and giving prob on second one. Well, i try the same code with "nawk" on second...
1,889
Posted By Vikas Sood
utterly confused !!!
Guyz,
Plz ignore my post. I just tried it on a different unix box and it worked. Both are korn shells. I have no idea why it did not work on the first one. I am going to do some further R&D on this....
1,418
Posted By Vikas Sood
oops!! duplicate submission. Plz ignore this thread
I guess by mistake i submitted this twice. Plz ignore this one.
Thanks
Showing results 1 to 25 of 32

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