Search Results

Search: Posts Made By: shankar1dada
2,190
Posted By shankar1dada
Actually the script is fired every time a file is...
Actually the script is fired every time a file is arrived. This is done through an external application. This featured cannot be disabled since its used by some other applications too.

So the idea...
2,190
Posted By shankar1dada
Help in running a script after a particular time
Unix Gurus,

I have a requirement where the shell script needs to do specific tasks after certain period of time.

Daily we receive few files in a particular folder. The script does the file...
4,513
Posted By shankar1dada
Help to move folders, subfolders and files from unix to windows
Hi Unix Gurus,

I am able to copy only files that exist in the parent folder. My parent folder has sub folders and within sub folders there are lots files.

I need to copy folder, sub folders and...
3,604
Posted By shankar1dada
generate logfile in a shell script
Unix Gurus,

I have a shell script which has few "echo" statements. I am trying to create a logfile where all the outputs of the echo statement sare stored.

I will have to add this as the...
4,147
Posted By shankar1dada
Alister, Can you please help me to change...
Alister,

Can you please help me to change the command?

Thanks
4,147
Posted By shankar1dada
Uniq sorting and count
Hi Unix gurus,

I have a requirement where I need to find the file count based on unique file names.

OPEN_INV_MMDDYYYY_HHMM.xls
OPEN_INV_MMDDYYYY_HHMM.xls
OPEN_INV_MMDDYYYY_HHMM.xls
...
4,986
Posted By shankar1dada
G.pi, I tried all your suggestions and it is...
G.pi,

I tried all your suggestions and it is still not working. It considers .txt and .xls as same set and removes 5 files leaving the count as 3.

The idea is to leave 3 files for each set...
4,986
Posted By shankar1dada
Delete files based on specific MMDDYYYY pattern in filename
Hi Unix gurus,

I am trying to remove the filenames based on MMDDYYYY in the physical name as such so that the directory always has the recent 3 files based on MMDDYYYY. "HHMM" is just dummy in...
1,778
Posted By shankar1dada
Thanks a bunch.
Thanks a bunch.
1,778
Posted By shankar1dada
Corona, Thanks for the script. The code is...
Corona,

Thanks for the script. The code is fine and it works when the extensions are same.
But my requirement is some thing like below:
OPEN_INV_01012011.xls
OPEN_INV_01022011.xls...
1,778
Posted By shankar1dada
Extract unique filenames
Hi Unix Gurus,

In a script, I am trying to extract unique text from a set of filenames.
I have certain files like below in a directory:

OPEN_INV_01012011.xls
OPEN_INV_01022011.xls...
1,371
Posted By shankar1dada
Thank you Jim. It works like a charm!!!!
Thank you Jim. It works like a charm!!!!
1,371
Posted By shankar1dada
I am still not able to make the script work. I am...
I am still not able to make the script work. I am not able to get the correct echo message.
I wanted to check only inside the /opt/feeds directory.

Can you please modify the script?

Thanks,...
1,371
Posted By shankar1dada
Help in searching a particular string in a file name (not inside the file contents)
Dear Unix Gurus,
I am new to shell scripting and in the process of learing.
I am trying to find whether a file name has today's date in MMDDYYYY format.
I am using the following code and it...
5,758
Posted By shankar1dada
Thanks a bunch DGPickett!!!!!. Everything...
Thanks a bunch DGPickett!!!!!.

Everything works fine.
5,758
Posted By shankar1dada
DGPickett: I am using the following code...
DGPickett:

I am using the following code where I just added additional "echo statements".
There are two files inside the CURRENT directory - BAXT_INV_08032011.csv and BAXT_INV_08042011.csv. The...
5,758
Posted By shankar1dada
Adding one more point currently the files always...
Adding one more point currently the files always has .CSV as the extension. Will there be a problem if the file extensions are different.
For example if we get files like:
HMIA_CLS_08012011.csv...
5,758
Posted By shankar1dada
DGPickett: When I execute the script it doesn't...
DGPickett: When I execute the script it doesn't do anything or throw error.

g.pi: When I execute your script what ever is in the CURRENT goes to the ARCHIVE. But the new file from Source does not...
5,758
Posted By shankar1dada
Yes Please that will be great. Also if...
Yes Please that will be great.

Also if possible if you an include comments that will be informative for a beginner like me.

For example if you can add some comments here:
while (( 6 < $( ls...
5,758
Posted By shankar1dada
Dear GURUS, First of all I am thankful for...
Dear GURUS,

First of all I am thankful for being patient with me. Let me explain in more detail:

Current will always have the filename with the latest "MMDDYYYY".
Archive will be having the...
5,758
Posted By shankar1dada
The code still not working. May be I am not...
The code still not working. May be I am not getting it to work as expected. I will try tweaking the code.

If you can throw some more light with comments and any new code will be helpful.

Thanks
5,758
Posted By shankar1dada
Hi Shell_life, I am still not getting the...
Hi Shell_life,

I am still not getting the script to work. The issue I notice is the file name.
The names I gave was an example.
If the file name format changes then the script won't work.
The...
5,758
Posted By shankar1dada
These files are actually report outputs with .CSV...
These files are actually report outputs with .CSV extension. They are moved to this folder via application.

I am using something like below:


CURR_DIRECTORY=/opt/data/feeds/Current...
5,758
Posted By shankar1dada
Help with Archiving multiple files based on name and date
Dear Gurus,

I am a novice in shell scripts. I have a requirement where I need to move files every day from Current Folder to Archive folder.

Daily I will be receiving 5 files in the folder -...
Showing results 1 to 24 of 24

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