Search Results

Search: Posts Made By: Gangadhar Reddy
7,450
Posted By rangarasan
You can use maxdepth option in find command to...
You can use maxdepth option in find command to search in current directory only.

Cheers!
-R
7,450
Posted By vidyadhar85
you can try ignoring the directory ...
you can try ignoring the directory


find ./ -type d \( ! lost+found \) -type f -name "*.csv" -mtime +6 -exec rm -f {} \;

if you consider it as warning messages

redirect the find output...
891
Posted By Yoda
awk -F\| 'NR==FNR{A[$1,$2];next}!(($1,$2) in A)'...
awk -F\| 'NR==FNR{A[$1,$2];next}!(($1,$2) in A)' File1.csv File2.csv
1,544
Posted By zaxxon
$ cat infile "11/16/09","ABC"," ...
$ cat infile
"11/16/09","ABC"," 1","EU","520892414","1","600","31351000","1234567","ANR BANK CO. LTD"
"11/16/09","PQR"," 2","EU","520892427","1","600","31351000","5467897","ANR BANK...
1,173
Posted By elixir_sinari
Try awk -vq='"' '/Proc Date/{d=$4} /PROC UNIT...
Try
awk -vq='"' '/Proc Date/{d=$4}
/PROC UNIT *:/{u=$NF}
/^"[^".]+"/{print q d q "," q u q "," $0}' file
19,277
Posted By itkamaraj
awk 'length<50{print NR,$0}' infile
awk 'length<50{print NR,$0}' infile
19,277
Posted By zaxxon
awk 'NF<50' FS= infile
awk 'NF<50' FS= infile
1,235
Posted By panyam
Hello Gangadhar, You can do something like...
Hello Gangadhar,

You can do something like this to get the dates:

Put the below in a script and execute it. Here you can pass from and todates to the script and assign them in start(Here for...
2,893
Posted By AlphaLexman
EDIT: aster007 explains it better! Does it...
EDIT: aster007 explains it better!

Does it work ??

From what I know [very little], it shouldn't.

The parenthetical ${text} is a character interpretation, and
The parenthetical $(num) is a...
2,893
Posted By aster007
This can be divided into 2 parts export...
This can be divided into 2 parts

export ROWSTOLOAD=${ROWSTOLOAD:--100}If "ROWSTOLOAD" is defined then
export ROWSTOLOAD=${ROWSTOLOAD}else set it to
export ROWSTOLOAD=-100 In general if a...
2,893
Posted By aster007
AlphaLexman is correct - This won't work with...
AlphaLexman is correct - This won't work with numbers.
If "ROWSTOLOAD" is null, then the output in this case will be "{ROWSTOLOAD:--100}" instead of -100
7,143
Posted By cgkmal
Hi GReddy:), When I tried to solve that, I...
Hi GReddy:),
When I tried to solve that, I discovered that part of the code is not needed at all, and the regexp you were facing problems with is not present now.

Each new version of the code is...
7,143
Posted By panyam
Just change the condition as below: ...
Just change the condition as below:


/command/{if(substr($2,index($2,".")+4)=="m" { c=substr($2,1,index($2," ")-1)} else {c=$2}}


or

/command/{if(substr($2,index($2," ")+1)=="m" {...
7,143
Posted By ctsgnb
@ganga reddy : I based my code on the sample...
@ganga reddy :

I based my code on the sample you gave : if your input file is different than the sample you posted, then of course, unexpected output may come.

By the way, i noticed in your...
7,143
Posted By cgkmal
Hi Gangadhar Reddy, Sorry for my lateness to...
Hi Gangadhar Reddy,

Sorry for my lateness to reply, I had not connected until now.

In order to handle when "m" appears or not, I have modify a little bit the line you mention from...
7,143
Posted By panyam
Reddy garu, Sed - An Introduction and...
Reddy garu,

Sed - An Introduction and Tutorial (http://www.grymoire.com/Unix/Sed.html)

Awk - A Tutorial and Introduction - by Bruce Barnett (http://www.grymoire.com/Unix/Awk.html)

I...
7,143
Posted By vgersh99
On Solaris, use nawk instead of awk
On Solaris, use nawk instead of awk
7,143
Posted By cgkmal
Gangadhar Reddy, Please try with: :~$ awk...
Gangadhar Reddy,
Please try with:

:~$ awk -F": " 'BEGIN{print "insert_job|job_type|command|machine|owner|condition|description|alarm_if_fail"}
{sub(/[ ]*job_type/,": job_type",$0)}
...
7,143
Posted By ctsgnb
sed 's/: /:/g;s/ */...
sed 's/: /:/g;s/ */ /g;/^$/d;/^\//d;/std.*file/d;/permiss/d;/^command/s/ .$//' tst |xargs -n1 | awk -F: 'BEGIN{print...
Showing results 1 to 19 of 19

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