Search Results

Search: Posts Made By: rockingvj
2,647
Posted By rockingvj
Thanks Don. The operating system I'm using is...
Thanks Don. The operating system I'm using is LINUX.

I can see its printing the URL under SIT, but I forgot to mention that I need to search under different folders and so I have used below...
2,647
Posted By rockingvj
Sorry for late reply, I'm using below command: ...
Sorry for late reply, I'm using below command:

find . -name “*.xml” |xargs grep -n “SIT”

my config file has details of "DEV, SIT,UAT and PROD" as below:

<configs>

<config...
2,647
Posted By rockingvj
Command to get URL under string "SIT"
Hi All,

I have a requirement where I need to get all https URL's under config file SIT. example :

config environment="SIT"

<URL>https://yahoo.com</URL>

There are 100 files.xml and I need...
6,418
Posted By rockingvj
The year should be generic (It should be...
The year should be generic (It should be incremental). Can you please put in a script and give it to me.
6,418
Posted By rockingvj
I'm using below script , but it will move files...
I'm using below script , but it will move files based on today date:

#!/bin/bash

MONTH="$(date +'%d''%b''%Y')"

FILES="$(date +'%d''%m''%Y')"

mkdir "${MONTH}"

mv ${FILES}_*.xls ${MONTH}...
6,418
Posted By rockingvj
Need script to move files based on month
Hi ,

I need a script which moves files based on month. Example :

Apr 29 03:16 log4.txt
Apr 29 03:16 log5.txt

May 4 09:17 log1.txt
May 4 09:17 log2.txt


Move Apr files into ...
1,295
Posted By rockingvj
Thanks franzpizzo. Works great!!
Thanks franzpizzo. Works great!!
1,295
Posted By rockingvj
Command to find files
Hi All,

Can anyone give me the command to copy files from 03-Mar-2013 to 07-Mar-2013 in folder.

there are nearly 40+ thousand files in directory , so I just need files from Mar 3rd to Mar 7th...
1,438
Posted By rockingvj
Hi Rudic, Agreed. my intention was to check...
Hi Rudic,

Agreed. my intention was to check periodically and it is not yet decided to what are the time intervals the cronjob needs to check.

For now just think that its 5 minutes and yes my...
1,438
Posted By rockingvj
Serach a keyword based on last updated
Hi,

Can you guys help in writing script based upon my requirement.

The requirement is :

Th script should poll or sniff an log file every minute or every second. The log file name is...
1,822
Posted By rockingvj
Search string and send email
Hi All,

I need script which should search for the "reason code" and it should send mail with its preceding line as well as the line below it.(first line before it and line after it)


I used...
2,525
Posted By rockingvj
Hello, this will mail with subject error...
Hello,

this will mail with subject error that's it and I need entire line containing the string and in mail i need the line to be displayed.
2,525
Posted By rockingvj
Search a string and send the line containing it
Folks,

Need a script which searches for a string and send line containing the string to the mail.

The requirement is like this :

file abc.log containts below text :

"error occurred due to...
1,666
Posted By rockingvj
Alias script which runs with cronjob
Hi,

I wrote a alias script and I want to run this script every day at 10 AM. I don't want to mention this alias command in .profile(Since alias commands are nearly 30 to use).

so when I'm...
21,453
Posted By rockingvj
Hi hedkandi, According to you it will create...
Hi hedkandi,

According to you it will create the folder with current date. I want folder to be created based on file date and then file should move to the folder for which date it belongs.

Any...
21,453
Posted By rockingvj
Its still not working : $ ./movefiles.sh ...
Its still not working :

$ ./movefiles.sh
mkdir: cannot create 10112012_073952.xls
10112012_073952.xls: File exists
mv: 10112012_073952.xls.xls and 10112012_073952.xls are identical.

Just...
21,453
Posted By rockingvj
Hi rdrtx1, I'm getting error at line number...
Hi rdrtx1,

I'm getting error at line number 5 as :

./movefiles.sh[3]: syntax error at line 5 : `(' unexpected

I figured it out that
a=($(echo $i))

it should be like :

a=$(echo $i)...
21,453
Posted By rockingvj
Script moving files based on date
Hi,

I need a script that moves files based on date to a folder. The folder should be created based on file date. Example is :

Date file name
----- --------...
1,590
Posted By rockingvj
Great it works.
Great it works.
1,590
Posted By rockingvj
Hi zaxxon, My point here is , the files will...
Hi zaxxon,

My point here is , the files will be around 100 and which start with SH10234, I want to clear all files with one command.

I tried with:
> SH*
ksh[2]: SH*: 0403-005 Cannot create...
1,590
Posted By rockingvj
Script to reinitialize the files
Hi,

My requirement is :

In our AIX system we have log files like :

SH1012.LGO
sh123.txt
sh453.txt
sh267.txt
SH1015.LGO
SH1014.LGO

So i just want to reinitialize all files to zero...
Showing results 1 to 21 of 21

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