Search Results

Search: Posts Made By: vagar11
1,898
Posted By vagar11
getting this error now ---------- Post...
getting this error now


---------- Post updated at 04:53 PM ---------- Previous update was at 04:14 PM ----------

Made some changes in the code :



getting the error below


please...
1,898
Posted By vagar11
Finding days in previous month
#!/bin/ksh
day=1
month=1
year=2012
if [ $day -eq 1 ] then
[
if [$month -eq 1 || $month -eq 5 || $month -eq 7 || $month -eq 9 || $month -eq 11]
then
prevmonth=31
elif [$month -eq 2 || ...
4,646
Posted By vagar11
Although, i need the files between 'today...
Although, i need the files between 'today midnight' and 'yesterday midnight' but in my case the file i want gets updated very frequently every day.So, my problem is getting resolved by using that...
1,244
Posted By vagar11
I am able to work it out. i think it was not...
I am able to work it out.
i think it was not working cause date command output also contains spaces. It was having trouble creating a filename with spaces.
1,244
Posted By vagar11
I am working on unix box. nawk -v...
I am working on unix box.

nawk -v da="${date}" '{fname="doc"da".txt"} $23>199 {print $0 > fname}' doc
it is throwing a error
nawk : can't open file 1
1,244
Posted By vagar11
taking the output of awk command to a new file
cat doc | nawk -v da="${date}" '$23>199 {print $0 > "doc"+da+".txt"}'

Every time(need to run every day) i run this, i want to a create a new file "doc_01 Aug.txt".

Basically, i want to create a...
4,646
Posted By vagar11
The above is doing fine for me.
The above is doing fine for me.
4,646
Posted By vagar11
this is not working in unix. ---------- Post...
this is not working in unix.

---------- Post updated at 01:31 PM ---------- Previous update was at 01:25 PM ----------

Thanks Cragun for the reply.
But, after reading your post i believe it...
7,521
Posted By vagar11
egrep -i '16500' | wc -l i think it will do...
egrep -i '16500' | wc -l

i think it will do it.
983
Posted By vagar11
In which line i have missed the quote?
In which line i have missed the quote?
983
Posted By vagar11
help with script
#!/bin/ksh
cd /idn/home/was/logs/ic_server
set da=date | nawk '{ print $2,$3-1}'
echo $da
ls -lrt SystemOut* | nawk '$0 ~ da {print $NF}'
#ls -lrt | nawk '/d/{print $NF}'


The following...
4,646
Posted By vagar11
Hi Vgresh, Could you please explain what...
Hi Vgresh,

Could you please explain what does d="${d}" do?

Were you asking a question to me in the above post ?

---------- Post updated at 01:13 PM ---------- Previous update was at 11:17 AM...
4,646
Posted By vagar11
List the files of previous day
I am using KSH.


d=date | nawk '{ print $2,$3-1}'
ls -lrt SystemOut* | nawk '/d/{print $NF}'


I am trying to list the files of previous day but it doesn't seem to be working and i am also...
843
Posted By vagar11
Thanks !!
Thanks !!
843
Posted By vagar11
Help with command
ls -lrt SystemOut* | grep 'Jul 25'

This command is showing me a lot of details but i just want the filename out of it.

-rw-r--r-- 1 was was .............................................
Showing results 1 to 15 of 15

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