Search Results

Search: Posts Made By: ruthless
Forum: HP-UX 01-27-2006
13,485
Posted By ruthless
The basic requirement
Hi Perderabo,

Thanks . You r right. That way the above command works fine.

But the problem is if I have more than one file in the input dir with the same name and with a different time stamp, ...
Forum: HP-UX 01-27-2006
13,485
Posted By ruthless
Hi Mahendra
Thanks for your valuable time.

I tried executing your command but it says the error as follows:

test.ksh
./test.ksh[3]: nawk: not found
Usage: mv [-f] [-i] [-e warn|force|ignore] f1 f2
...
Forum: HP-UX 01-27-2006
13,485
Posted By ruthless
How do I take out(remove) the date part in the file name?
Hi Guys here I am again,

I have two files in a specified location.
Location ex: /opt/xdm/input/
input file names: 1. abc_app.yyyymmdd.dtd
2. abd_app.yyyymmdd.dtd
I need to...
Forum: HP-UX 01-20-2006
8,570
Posted By ruthless
Hi,
Actually I did mistake while posting the code I was using. This is the code I am using. Only diff is there's no $ sign before "file".


#!/bin/ksh
file="/A/B/C/D/E/"mat.dtd
sed...
Forum: HP-UX 01-20-2006
8,570
Posted By ruthless
Hi Mona,
The exact script what I tested is
#!/bin/ksh
$file="/A/B/C/D/E/"mat.dtd
sed 's/^\(.*\)$/&\|D/' mat.dtd > $file_temp
mv "$file_temp" "xdm.dtd"

and the output I am getting is(as on the screen) ...
Forum: HP-UX 01-19-2006
8,570
Posted By ruthless
Hi Guys
Thank you very much for helping me.

Mona[COLOR=Blue] , I have couple of questions for you . When I append "|D" at the end of the line, does it replaces the "$" which is the end of the line or just...
Forum: HP-UX 01-18-2006
8,570
Posted By ruthless
Add a column at the end of all the lines in a file
Hi Guys, :D

I am very much new to UNIX. I dont have much basics of coding in UNIX, so please help me out of thi ssituation.

I have a file say for ex: ABC.dtd and it contains "|" delimited...
Showing results 1 to 7 of 7

 

Featured Tech Videos

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