Search Results

Search: Posts Made By: tushar_tus
Forum: AIX 11-27-2009
3,131
Posted By tushar_tus
Problem in compilation.
Hi,


I am executing the below mentioned code:-


proc SQLCHECK=SEMANTICS iname=CDBInteractor.pc parse=none code=cpp cpp_suffix=cpp
g++ -c main.cpp
g++ -o pre_request_engine main.o...
10,362
Posted By tushar_tus
No the awk didn`t worked. It gave me the same...
No the awk didn`t worked.
It gave me the same output as before, no filename in it.
Below is the output string without filename.

# # #20090618# # # # # # # # # #9#919814843011# #91# # #...
10,362
Posted By tushar_tus
gzcat/grep
Hi!!!

I am trying to grep a number in more then 1000 files which are .gz.
Below is the code :-


for i in `ls 20090618yz*_07.znf.gz`
do
a=`gzcat 20090618yz*_07.znf.gz | grep 9814843011`...
2,497
Posted By tushar_tus
An e.g # # #20090508234729# # # # # # # # #...
An e.g

# # #20090508234729# # # # # # # # # #7#919855198983# #71# #1758#1613# # # #serv:pps7a;vers:1;pid:0;af:3;vid:1117980591288184;Dvl:0;serType:0;recType:1000;a
mt:0;costType:1#



I am...
2,497
Posted By tushar_tus
error in grep
hi!!


I am getting an error while grepping.

The error is like "grep: RE error 41: No remembered search string."

Can u please help with it?


Thanks in advance.........:)
2,639
Posted By tushar_tus
I cant run it as a separate script. i have to...
I cant run it as a separate script.
i have to use this logic in a script.
Kindly suggest something else in shell or awk.
2,639
Posted By tushar_tus
extracting only numerals from string.
Hi!!!

i have two files "tushar20090429200000.txt" and "tushar_err20090429200000.txt"

The numeric part here is date and time.
So this part of file keeps changing after every hour.
I want to...
6,680
Posted By tushar_tus
grep two values together.
Hi...

I have a file abc.txt , havin more then 10,000 lines, each field separated by '#'.
I want to grep 9914699895 and 999 from abc.txt

I am trying
cat abc.txt | grep 9914699895 | grep...
1,698
Posted By tushar_tus
help with if condition.
Hi,

awk -F"#" '{if ($19~/^1A/) print $0}'

Please explain how "~/^1A/" is working.


Thanks in advance.....:)
8,581
Posted By tushar_tus
Dear ZOUHAIR I think the question is not...
Dear ZOUHAIR

I think the question is not improper.
Anyway i got the answer and it really worked.
8,581
Posted By tushar_tus
Didn`t worked
Hi again,

1) It didn`t work:(, my objective is to remove duplicate lines inside a file.
first echo duplicate lines and then remove them.

2) Also how can i delete a particular line from a...
8,581
Posted By tushar_tus
Delete lines inside a file.
hi....

I have a file having more then thousand lines.
i want to remove selected lines in it.
And also if there exists two duplicate lines, I want to delete one of them.
Please help me with awk...
3,802
Posted By tushar_tus
re:
I want to copy files.
3,802
Posted By tushar_tus
echo and then cp the missing files
Hi....
I have two files abc.txt and xyz.txt. I want to echo and copy files from abc.txt to xyz.txt, which are not in xyz but present in abc.txt.
Both of these files are in same directory.
Please...
1,761
Posted By tushar_tus
echo missing files.
Hi....
I have two directories, A and B.
Files are rcp`d from A to B, but some of the files are missing.
files in A are in sequence from "2008111406796.zteasn.norm.gz" to...
48,732
Posted By tushar_tus
Thanks a lot, it really worked.:)
Thanks a lot, it really worked.:)
48,732
Posted By tushar_tus
To print a specific line in Shell or awk.
Hi,

I want to echo the 15th line from a file named as abc.txt, also i want to echo only the values in that line not the line number.

Thanks in advance:)
53,310
Posted By tushar_tus
Remove all blank lines in shell or awk.
Hi there,


I want to trim space between lines in unix.
I have a file named abc.txt with 2,00,000 lines.But useful are only a few. Please tell me how to delete the blank lines.:o
179,533
Posted By tushar_tus
---------
Only bash......
3,670
Posted By tushar_tus
Re:
grep -f is not working..
Is there any alternate for this or a total different awk script to achieve the objective.......:o
3,670
Posted By tushar_tus
shell & AWK
Hi,

I want to make a script using shell and awk together, the objective is----
Using for loop I am reading data from a file and then want to print (using awk) the first and fifth field from a...
2
rm
4,912
Posted By tushar_tus
rm
hi,

I am trying to delete files using script:-

find . -name "*.xml" | xargs rm *

but i am getting an error "/usr/bin/xargs: Arg list too long"


Could you please help me out with...
7
20,815
Posted By tushar_tus
Re:
Thanxx a lot to both of you Franclin and Dennis!!!

It worked......:)
7
20,815
Posted By tushar_tus
re:
Yes Dennis ur rite, 'find' is working.
But still one problem is there, as there are already some zipped files in it.
So i having a continous prompt of overwrite.
"do you wish to overwrite (y or...
7
20,815
Posted By tushar_tus
Re:
Thanks a lot!!

In for loop i want to aviod this "argument list too long error".

How should i make it fetch 100 files at a time or may be one by one.

find . -name *.xml -exec gzip {} \; ...
Showing results 1 to 25 of 29

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