Search Results

Search: Posts Made By: shreekrishnagd
3,889
Posted By shreekrishnagd
You cannot do like tha. B'coz it will delete all...
You cannot do like tha. B'coz it will delete all the contents in the file.
3,889
Posted By shreekrishnagd
Inplace edit is required
Hi Amit,

Thanks for ur reply. The command you have given uses an temp file or intermediate file which i should not use as the file i am going to edit is very huge in MB.
3,889
Posted By shreekrishnagd
Hi Gaurav, I tried using sed , it gave the...
Hi Gaurav,

I tried using sed , it gave the follow error

sed: illegal option -- i
Usage: sed [-n] Script [File ...]
sed [-n] [-e Script] ... [-f Script_file] ... [File ...]
3,889
Posted By shreekrishnagd
Error: Find the pattern in the file and replace
Hi all,

I have requirement where i need to find a pattern and replace it by new word. I used the below perl command

echo `perl -p -i -e "s/AbCdEf/PqRsTu/g;" FileName.txt`

But I am getting...
3,181
Posted By shreekrishnagd
Problem still exists!!!
I am using unix solaris version 8.0
Please let me why is that behaving like that and what could be done for that prroblem.

Thanks in advance.....
3,181
Posted By shreekrishnagd
Problem with csplit
Hi All,
I have a strange behaviour from csplit command on some text files.

I have a comma separated file and data with in double quotes. This file is being generated from Sequential stage of...
1,581
Posted By shreekrishnagd
Thanks all of you.I really Appreciate your help....
Thanks all of you.I really Appreciate your help. I have found out a choice perl...

perl -p -i -e "s/Name2||/Name2|98233|/" Temp.txt

:b:
Regards
Kris..
1,581
Posted By shreekrishnagd
danmero
Actually this command will print on the screen not write into file
1,581
Posted By shreekrishnagd
Writing given value into a file in particular record and column
Hi All,
Could you ppl plz help me in writing into a file , plz find the example below.
Ex:
Name1|092387|Address1
Name2||Address2

After executing command/script the file should look like
...
21,417
Posted By shreekrishnagd
How to check if a file is empty?
Hi Masters.....
I have problem !!!
I need to check number of records in a file and if it is zero or file is empty i need to do some task.
if [Zero record]; then
echo "File s empty"
else
echo...
3,994
Posted By shreekrishnagd
Hi ... Mr.drl
I dint understand how ur solution could help me out in my requirment. If we have $ before any variable the flie throws an error message how to escape it....?????
3,994
Posted By shreekrishnagd
escape sequence for $
Hi all,
I have a requirement where the variable name starts with $, like
$Amd=/home/student/test/
How to work wit it? can some one help me, am in gr8 confusion:confused:
3,956
Posted By shreekrishnagd
passing to Datastage
actually that is being passed into datastage job as environment varible
3,956
Posted By shreekrishnagd
Mr. redoubtable
Actually my variable is $var can you help me using this
3,956
Posted By shreekrishnagd
Usage of $ as variable name
Hi I have to use a Environment variable and that variable has $ prefixed to its name like,
$var=/home/source/test/
i need to use the variable as i have show above. :confused:
Help requested........
2,749
Posted By shreekrishnagd
Same result....
i dont have -i for sed in my tool.
2,749
Posted By shreekrishnagd
summer_cherry
actually i want to edit into a file which sed wont do... can u help in perl plz
2,749
Posted By shreekrishnagd
vidyadhar85 thanks but...
its actually doing the same job... it is inserting into all line...
i want to insert into first record only... any other correct option..
2,749
Posted By shreekrishnagd
Inserting into first record using perl
hi all... i got some requirment where i need to insert some values into first record of flat file. i am using perl for that job.

var1=456
var2=789
echo `perl -p -i -e "s/U/\${var1}U${var2}/g;"...
3,335
Posted By shreekrishnagd
Thanks Ygor Ur script helped me....
Thanks Ygor Ur script helped me....
3,335
Posted By shreekrishnagd
not exactly working
thanks for the help.... but that is not writing into file instead printing on screen.
3,335
Posted By shreekrishnagd
Insertion of Header record
A header record is to be inserted in the begining of a flat file without using extra file or new file. It should be inserted into same file. Advace thanks for all help...
Showing results 1 to 22 of 22

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