Search Results

Search: Posts Made By: Ram Kumar_BE
1,774
Posted By Ram Kumar_BE
Delete directory
Can we force delete the directories despite having files in it? Because I need to delete multiple directories which has multiple files. As of now, I'm deleting the files before deleting the...
11,731
Posted By Ram Kumar_BE
Could you please guide me for SAS 9.3? In...
Could you please guide me for SAS 9.3?

In your reply, when should I run the start and stop script?
11,731
Posted By Ram Kumar_BE
Thanks for your patience and support. I can...
Thanks for your patience and support.

I can wait for your reply.
11,731
Posted By Ram Kumar_BE
Yes, I've.
Yes, I've.
11,731
Posted By Ram Kumar_BE
May I request you to get me the code to overcome...
May I request you to get me the code to overcome this error?
11,731
Posted By Ram Kumar_BE
How to kill the process when the file is locked?
I was trying to read the file to create a table in SAS and I got error as follows while I read.

Resource is write-locked by another user. File ...
2,896
Posted By Ram Kumar_BE
How to explicitly define a folder in your find...
How to explicitly define a folder in your find command to search for files?

Where your command will search for the file?
2,896
Posted By Ram Kumar_BE
In similar fashion, how to search for a file from...
In similar fashion, how to search for a file from the list of folder.

I need to find the file sync_dailyscheduler_data.sh from the folder /usr/?

This file may be available any where (/usr/sas...
2,896
Posted By Ram Kumar_BE
Thanks a ton Ravinder for your detailed...
Thanks a ton Ravinder for your detailed explanation. Much appreciated.
2,896
Posted By Ram Kumar_BE
Your understanding is right. I went to this...
Your understanding is right. I went to this folder /usr/sas/reports/RetailSalesTaxallocation and ran ,

find /usr/sas/reports/RetailSalesTaxallocation -type f -exec grep -l "%Retail by State" {} \+...
2,896
Posted By Ram Kumar_BE
Find command to find a word from list of files
I need to find a word '% Retail by State' in the folder /usr/sas/reports/RetailSalesTaxallocation.

When I tried like below,

-bash-4.1$ cd /usr/sas/reports/RetailSalesTaxallocation
-bash-4.1$...
1,505
Posted By Ram Kumar_BE
It works like a charm. Thanks a ton Ravinder.
It works like a charm.

Thanks a ton Ravinder.
1,505
Posted By Ram Kumar_BE
Create a file with header
With the following script, I could get a .txt file. However, I wish to add a header 'fname' in .txt file. Please guide me.

#!/bin/sh
rm output_file.txt
for i in...
2,411
Posted By Ram Kumar_BE
Script is working fine. Earlier there was a line...
Script is working fine. Earlier there was a line feed issue.

Now I was looking to get a script execution log file.
2,411
Posted By Ram Kumar_BE
There is other way which I found now:). Just I...
There is other way which I found now:). Just I put a remove command at the beginning of the script like below.#!/bin/sh
rm output_file.txt
for i in...
2,411
Posted By Ram Kumar_BE
I've one last question. With this code I...
I've one last question.

With this code I can get a .txt file as required. However, I would like to get a fresh file everyday instead of the appending the the same .txt file.

#!/bin/sh...
2,411
Posted By Ram Kumar_BE
I got the required output in command prompt....
I got the required output in command prompt. However I would like redirect the result to file (eg.output_file.txt).

I would also request you to explain the echo statementecho "${i##*/}" as well.
2,411
Posted By Ram Kumar_BE
When I run the script below,#!/bin/sh for i in...
When I run the script below,#!/bin/sh
for i in "/usr/sas/sas_config/Lev1/SASApp/StoredProcessServer/Logs/SASApp_STPServer_"$(date +%Y-%m-%d --date "4 day ago")"_tmptcmsaslva2_"*".log"
do
echo...
2,411
Posted By Ram Kumar_BE
Delete word from the file
My file has contents like below. It is named as output_file.txt

/usr/sas/sas_config/Lev1/SASApp/StoredProcessServer/Logs/SASApp_STPServer_2015-08-27_tmptcmsaslva2_19142.log...
6,162
Posted By Ram Kumar_BE
I want tHe Command to Capture entire exeCution in...
I want tHe Command to Capture entire exeCution in log.

Kindly giVe Command witH example to remoVe matCHing prefix as I'm not sure write a Command wit your inputs.

THanks.
6,162
Posted By Ram Kumar_BE
-bash-4.1$ uname -a Linux serername x86_64...
-bash-4.1$ uname -a
Linux serername x86_64 x86_64 GNU/Linux
-bash-4.1$ type bash date sh
bash is /bin/bash
date is /bin/date
sh is /bin/sh
-bash-4.1$ ls -l /bin/bash /bin/date /bin/sh...
6,162
Posted By Ram Kumar_BE
I will execute the script in command prompt like...
I will execute the script in command prompt like sh list_file.sh
I use SSH secure client which is a windows application and then select the server which I need to connect by supplying username and...
6,162
Posted By Ram Kumar_BE
Hi Ravinder, Still I'm getting the same...
Hi Ravinder,

Still I'm getting the same error.

---------- Post updated at 01:14 AM ---------- Previous update was at 01:11 AM ----------

I'm using SSH secure client to connect the terminal....
6,162
Posted By Ram Kumar_BE
For loop - unexpected token `do
My requirement is to search for current date-1 .log files in /usr/sas/sas_config/Lev1/SASApp/StoredProcessServer/Logs folder and write the file name to filenames.txt

When I ran the script below,...
4,078
Posted By Ram Kumar_BE
it is 4.1.2
it is 4.1.2
Showing results 1 to 25 of 34

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