Search Results

Search: Posts Made By: Prat007
8,811
Posted By Prat007
Thanks so much , will try these options :)
Thanks so much , will try these options :)
8,811
Posted By Prat007
Thanks much, it should give the desired result...
Thanks much, it should give the desired result but mmin does not work for me, do we have any other option?
8,811
Posted By Prat007
how to list files between last 6 hours to 3 hours
Hi Frens,

I want to list some files from a directory, which contains "DONE" in their name, i am receiving files every minute. In this i want to list all the files which are newer than 6 hours but...
2,540
Posted By Prat007
How to mail with this body
Hi,

i have a file ABC, i want to mail the contents of this file and i want to make the body of the mail per my choice like this:

Hi All,

This is the Report for today.

<Browse of the...
2,021
Posted By Prat007
How to run this program with only one input file at a time
i have a program ABC, which runs every two minutes and takes the input according to the a value called "pointer"

files need to be processed by ABC are

input0001
input0002
input0003...
73,351
Posted By Prat007
try this.. cat infile | while read line do...
try this..

cat infile | while read line
do

count=$(echo $line | wc -c)
echo $line $count

done
2,183
Posted By Prat007
egrep -i "title.regu." `find . -name "*.dat"` >...
egrep -i "title.regu." `find . -name "*.dat"` > output

cat $output | while read line
do

dir=$( echo $line | cut -d / f2)

cd dir

# you will reach in directory and can execute whatever...
25,529
Posted By Prat007
Thank you so much, :)
Thank you so much, :)
25,529
Posted By Prat007
cat -r is giving me cat: illegal option -- r
cat -r is giving me

cat: illegal option -- r
25,529
Posted By Prat007
How to search for a pattern from bottom to top.
Hi,
I have a file, which is having a pattern "SEARCH" somewhere towards end of the file,

if i am giving " grep -i "SEARCH" $File" , it is taking too much time as file is very big.

So i want...
3,096
Posted By Prat007
How to get it in single line. pls help
Hi,
when i am executing this script, i am getting the values of TID and Intime in different lines.
How can i print both output values in a single line. please advise
...
6,020
Posted By Prat007
How to calculate this time difference
Hi,

Please help me in calculating the time difference between below mentioned timestamps.

a=07/17/2007 02:20:00 AM MST
b=07/17/2007 02:07:46 AM MST

Thanks
9,375
Posted By Prat007
How to print the output in single line
Hi,

Please suggest, how to get the output of below script in single line, its giving me in different lines

______________________
#!/bin/ksh
export Path="/abc/def/ghi";...
13,091
Posted By Prat007
it worked... thank you so much
it worked...

thank you so much
13,091
Posted By Prat007
How to cut a file name from back side
Hi
I have to delete 18 characters from my file names from back side.

i mean if file name is abcde123456

then i have to delete 6 characters from back and i need file name as abcde.
...
1,969
Posted By Prat007
help needed...
Guys,

There is a file where there are 1000s of records.
In the file if some condition satisfies in a certain TAB record (TAB would be first 3 digits of a certain record) then move TAB and all...
2,797
Posted By Prat007
How to get Previous date in this format.
hi ,

I am using this to get previous date :

#!/usr/bin/ksh
date '+%m %d %Y' |
{
read MONTH DAY YEAR
DAY=`expr "$DAY" - 1`
case "$DAY" in
0)
MONTH=`expr "$MONTH"...
20,849
Posted By Prat007
dont we have any other command to find the files...
dont we have any other command to find the files which are modified in last 1 to 2 hours.??
Forum: Solaris 07-21-2008
18,049
Posted By Prat007
Any alternative of find . -mmin 20
hi

find command is not working with -mmin in Solaris Os.

Do we hav any alternative to find the modified file in any specified time span ( suppose in last 1- 2 hours)

Thanks
20,849
Posted By Prat007
how to touch a file with prev time stamp
i want to find the files which are modified in last 30 to 120 minutes

i am using "find . -mmin +30 -mmin -120 "

it is giving me the error

find: bad option -mmin
find: path-list...
Showing results 1 to 20 of 20

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