Search Results

Search: Posts Made By: Lakshman_Gupta
3,312
Posted By Lakshman_Gupta
Thanks Don for this useful script!!! Hi...
Thanks Don for this useful script!!!

Hi Rudic,

Was just building on your awk commands three things still i am not able to sort out.

1) How to use this awk command recursively in all...
3,312
Posted By Lakshman_Gupta
Yes exactly junior-helper Thanks a lot..
Yes exactly junior-helper Thanks a lot..
3,312
Posted By Lakshman_Gupta
Hi RudiC, Thanks for doing in awk way.. I...
Hi RudiC,

Thanks for doing in awk way..
I just ran this and getting below error, tried to correct syntactical error by myself but wasn't able to


bash-3.2$ awk ' {sub...
3,312
Posted By Lakshman_Gupta
Thanks Don !!! For your questions here is...
Thanks Don !!!

For your questions here is response

Are you performing case sensitive matches? Yes

Can the pattern match any text, or does the pattern have to match entire "words"? If you're...
3,312
Posted By Lakshman_Gupta
Hi Ravi, Thanks for your time this "where"...
Hi Ravi,

Thanks for your time this "where" can change and it replaced with some other characters as we have to scan through 1000 of files. So this will not be genearlised solution
3,312
Posted By Lakshman_Gupta
Finding all files based on pattern
Hi All,

I need to find all files in a directory which are containing specific pattern. Thing is that file name should not consider if pattern is only in commented area.

all contents which are...
2,992
Posted By Lakshman_Gupta
Thats Great Rudic .. it worked !! I am not...
Thats Great Rudic .. it worked !! I am not getting first portion of code just after sed -n and before /FAILED/ can you please explain?


sed -n '
1h
1!H
/FAILED/ {
n
n
H
x
d
}...
866
Posted By Lakshman_Gupta
below also works.. ls -ltr|awk...
below also works..


ls -ltr|awk '{if($5>209715200) {print $0}}'
2,992
Posted By Lakshman_Gupta
Hold buffer in sed
Hi Experts,

i have a file like below


****
table name is xyz
row count for previous day 10
row count for today 20
diff between previous and today 10
scan result PASSED
****
table name...
1,712
Posted By Lakshman_Gupta
Perl Script:how to find how many parameters are required to run the script
How to find how many parameters are required to run a Perl script?
4,995
Posted By Lakshman_Gupta
you can use winscp tool on windows machine to...
you can use winscp tool on windows machine to transfer file between unix and windows and vice versa.

Please refer below link as well

https://www.unix.com/showthread.php?t=21015
...
856
Posted By Lakshman_Gupta
one way of doing this is as below on sun ...
one way of doing this is as below on sun


echo "this is a test1,this is test2,this is test3"|sed -e 's/,/",="/g' -e 's/^/="/g' -e 's/$/"/g'
3,469
Posted By Lakshman_Gupta
awk :how to change delimiter without giving all field name
Hi Experts,

i need to change delimiter from tab to ","

sample test file


cat test
A0000368 A29938511 072569352 5 Any 2 for £1.00 BUTCHERS|CAT FOOD|400G ...
2,379
Posted By Lakshman_Gupta
Running a script with multiple variables like 25 variables.
Hi All,

i have a requirement where i have to run a script with at least 25 arguements and position of arguements can also change. the unapropriate way is like below. can we achieve this in more...
3,520
Posted By Lakshman_Gupta
PERFECT Thanks RudiC!!!!
PERFECT Thanks RudiC!!!!
3,520
Posted By Lakshman_Gupta
Hi RudiC, Thanks for your explanation. But...
Hi RudiC,

Thanks for your explanation. But got below query.

awk 'NR==FNR {T[$1$2$3]; next} ($2$3$4 in T) {next} 1' file1 file2

Regarding above code. I just found that if content of file1 is...
3,520
Posted By Lakshman_Gupta
Great Thanks so much RudiC... Its worked and...
Great Thanks so much RudiC... Its worked and faster than previous completed within 2 Min only..

Can you please explain also below code what does that mean?
awk 'NR==FNR {T[$1$2$3]; next} ($2$3$4...
3,520
Posted By Lakshman_Gupta
Hi RudiC Please have a look at contents of...
Hi RudiC

Please have a look at contents of files below.

file1
QC20011 063890404 02002
QC20011 059400669 02002
QC20011 ...
3,520
Posted By Lakshman_Gupta
Thanks blackrageous!! but i don't have privelege...
Thanks blackrageous!! but i don't have privelege to access ram disk in office.. is there any other way using awk or sed??
3,520
Posted By Lakshman_Gupta
[Solved] Performance issue with fgrep -vf file1 file2>file3
Hi all,


My requirement is that i have two files file1 and file2. file1 content is present in file2. i want to have a final which will have file2 contents but not the contents of file1 so I am...
2,582
Posted By Lakshman_Gupta
Use below just modified. awk -F","...
Use below just modified.

awk -F"," '{if(length($1)>12){print "Row:" $0 "\nService ID have higher precision"}else{print "Row:" $0 "\nService ID have lesser precision"}}' filename
Showing results 1 to 21 of 21

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