Search Results

Search: Posts Made By: nnani
1,386
Posted By nnani
this worked but its giving wrong results. can...
this worked but its giving wrong results.
can we find the files created on specific dates
1,386
Posted By nnani
Hello this is not giving any result as the...
Hello this is not giving any result as the previous one
1,386
Posted By nnani
Find and delete file previous to some date
Hello All,

I have a directory containing of many .dat file, but with different naming conventions.

I want to delete files which are created before and on 10th September 2013.

I tried this...
841
Posted By nnani
thanks, the escape character worked :)
thanks,
the escape character worked :)
841
Posted By nnani
The final output i need is the variable is...
The final output i need is

the variable is represented as $var
841
Posted By nnani
Simpe echo
Hello I am trying to echo some string in file


echo " the variable is represented as $var"


When I execute the above code i just get

echo " the variable is represented as
How can I get ...
1,362
Posted By nnani
Hello Chubler_XL, Thank you so much for the...
Hello Chubler_XL,

Thank you so much for the awesome reply.
It works exactly how I wanted.

Is there anyway we could add this into the snippet

After the apply keyword, there can be some other...
1,362
Posted By nnani
Combine two parts of a file
Hello All,

I have a file like this




APPLY
( 'INSERT INTO brdcst_media_cntnt (
cntnt_id
,brdcst_media_cntnt_cd
,cntnt_prvdr_cd
,data_src_type_cd
,cntnt_titl_nm
,cntnt_desc
...
1,233
Posted By nnani
Thanks for a detailed explanation MR.Bean ...
Thanks for a detailed explanation MR.Bean

---------- Post updated at 03:57 PM ---------- Previous update was at 03:03 PM ----------

Hello,
For the second part of file.

I need the extract of...
1,233
Posted By nnani
Hello MR.Bean That was exactly what I was...
Hello MR.Bean

That was exactly what I was looking for.

Can you please take some time and explain me how this works.

Thanks in Advance
1,233
Posted By nnani
Replacing first word while extracting
Hello All,

I am extracting a part of file. the file looks as follows


USING CHARACTER SET UTF8 DEFINE JOB

(

DEFINE SCHEMA Flat_File_Schema
(
cntnt_id VARCHAR(10)
);

DEFINE...
1,661
Posted By nnani
Hello All, The original file format is like...
Hello All,

The original file format is like this

USING CHARACTER SET UTF8 DEFINE JOB

(

DEFINE SCHEMA Flat_File_Schema
(
cntnt_id VARCHAR(10)
div_id VARCHAR(10)
);

DEFINE...
1,661
Posted By nnani
Extract Parts of File
Hello All,

I have a file like this

Define schema flat_file_schema
(
a varchar(20)
,b varchar(30)
,c varchar(40)
);
(Insert into table (
a
,b
,c
) values
(
1
,2
,3
);
17,700
Posted By nnani
Hello, My loop is like this ...
Hello,

My loop is like this



TPT_PATH='/home/ctl/tpt'
CP_PATH='/home/ctl/copy'

for line in filelist.txt ;
do
if [ -f $TPT_PATH/$line ]
then
echo...
17,700
Posted By nnani
Cut a string for last 8 characters
Hello All

I have a file like this

abc.tpt.ctl
bdc.tpt.ctl
cdw.tpt.ctl

I have looped every line using the for Loop, now I want to take each line and cut the .tpt.ctl part of it and store it...
4,001
Posted By nnani
Thanks guys. The solution worked perfectly:)...
Thanks guys.

The solution worked perfectly:)
You guys rock:b:
4,001
Posted By nnani
No Solutions are working Krishmaths - the...
No Solutions are working

Krishmaths - the solution provided by you is giving no output

Jotne - the solution provided by you is giving error
awk: /\)/exit} f; /\(/ && /INSERT/ {f=1}
awk: ^...
4,001
Posted By nnani
Hello krishmaths, Thanks for your solution,...
Hello krishmaths,

Thanks for your solution, but it does not give any output.

I observed my file and it came to this conclusion

INSERT into table (
x
,x
,x
,x
)VALUES
This is the...
4,001
Posted By nnani
somewhat close to what I need awk...
somewhat close to what I need

awk '/INSERT/{getline;print}' filename

this gives

a

only the first line after the regexp satisfied
4,001
Posted By nnani
hello, I might have bracket '(' before the...
hello,

I might have bracket '(' before the one intended to use.
I want to find insert keyword and then use the bracket '(' after this keyword to extract what ever is in brackets.
4,001
Posted By nnani
Extract part of file
Hello All,


I need to extract part of a file into a new file

My file is
Define schema xxxxxx

Insert into table
(
a
,b
,c
,d
)
values
(
1,
2,
3,
1,764
Posted By nnani
Thanks, Worked like a charm.
Thanks,

Worked like a charm.
1,764
Posted By nnani
[Solved] sed to replace words
Hello All,


I have file named filelist.txt

a.bteq.ctl
b.bteq.ctl
c.bteq.ctl

I want to replace the word bteq to tpt in this file.

I used this sed command
cat filelist.txt | sed...
1,863
Posted By nnani
Thanks. Both the solutions works great.
Thanks.

Both the solutions works great.
1,863
Posted By nnani
Record terminator on alternate line
Hello All,

I have csv file like this

1,"suzi","305
Barehills","Vancover",34256
2,"molly","456
beverleyhills","Minisotta",234876

I want to put a customized record terminator on every...
Showing results 1 to 25 of 55

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