Search Results

Search: Posts Made By: cnrj
10,410
Posted By cnrj
Thanks Rudic i want to make this as solved,...
Thanks Rudic

i want to make this as solved, can someone advise how to do this? i tried finding the tags, but could find it
10,410
Posted By cnrj
Write log file for SFTP command
Hi

I am transferring files to SFTP Server using sftp command(below), and want to write log file of this activity. Can you please advise if i am doing wrong.

sftp -v...
2,027
Posted By cnrj
Hi hicksd8 What i am trying to do is I have...
Hi hicksd8

What i am trying to do is I have one text file(Eg:Filelist.txt) It has list of filenames(Filenames are contained with date as mentioned in the initial post)

I want remove the...
2,027
Posted By cnrj
Thanks But I dont want to remove files in...
Thanks

But I dont want to remove files in the directory. I have list of filenames in one file. all file names should be removed based on date in filename.
2,027
Posted By cnrj
Hi Pravin, Date format is MMDDYY. ...
Hi Pravin,

Date format is MMDDYY.
filename_<MMDDYY>.csv

What i want to do is I just want a file with last 15 days of files. rest should be removed from file.

Please let me know if you...
2,027
Posted By cnrj
Remove data from file
Hi

I have file with filename as below and need to remove based on date in it.

Data in file:
filename_092013.csv
filename_082013.csv
filename_072013.csv


I want to remove filenames...
15,301
Posted By cnrj
Thanks Rudi, I don't want to receive the...
Thanks Rudi,

I don't want to receive the files again. that is the reason i do keep all the processed files in the same directory location. I do house keeping activity on which received before 15...
15,301
Posted By cnrj
Thanks Krish 1st option may not be possible...
Thanks Krish

1st option may not be possible because if i rename the file, I will receive the same file again from sourece as they do ftp for 15 days of files.

2nd Option: i don't understand...
15,301
Posted By cnrj
Find Unread Files
Hi

I have requirement to read only unread files from the directory and load into database.

Scenario: I do receive bunch of files into my unix directory for every 15 mins. My ETL Process every...
2,223
Posted By cnrj
Archive folders and sub folders
Hi

Can i archive folder and folders in with the tar command

My files are located in subfolders
Eg: Folder1/Folder1_1/*.pdf
Folder1/Folder1_2/*.pdf
Folder1/Folder1_3/*.pdf


so i would...
2,097
Posted By cnrj
Send Mail
Hi

I want to send email from unix box. I tried below code

sendmail -s Hello cnrj@mail.com


It has given Warning as below
WARNING: RunAsUser for MSP ignored, check group ids (egid=33064,...
2,267
Posted By cnrj
Used basename in the next step to get rid of the...
Used basename in the next step to get rid of the path.

Thanks everone
2,267
Posted By cnrj
Thanks bean, Could you please give some...
Thanks bean,

Could you please give some info about using the command with $ and `` as i used `` in same command it took long time so cancelled, when i use $() it worked quickly and got the...
2,267
Posted By cnrj
It gives the number of files, But my problem is...
It gives the number of files, But my problem is it is giving the error saying "arg list too long" as there are numerous files
2,267
Posted By cnrj
Thanks But i don't want to store list in...
Thanks

But i don't want to store list in variable i just need to store count value into Variable. still getting the same error.

Any other way to get this done?
2,267
Posted By cnrj
My Script which i am using: cd /var/opt/input ...
My Script which i am using:
cd /var/opt/input
filecount=$(find . -type f -name *.csv | xargs wc -l)
if [ $filecount -gt 0 ]
then
echo "Number of Files are $filenumber"
else
echo "No Files"
fi...
2,267
Posted By cnrj
Thanks Bartus, It works if i do process one...
Thanks Bartus,

It works if i do process one by one file until there are no files.
I don't want to pick any files which arrive after my process is invoked. So I am checking whether the files...
2,267
Posted By cnrj
Check the Files existence
Hi

I have a requirement to check whether the files exists, then it will call other steps in shell script.

I did
ls *.csv|wc -l
if [ -f *.csv ]
then checking the count of the files should...
1,083
Posted By cnrj
Loader Script Status
Hi

I am running Sql Loader script in Unix Shell Script, I want to make shell script failure when Sql Loader script gives any warnings or failed. Please advise on this.

Thanks
2,373
Posted By cnrj
Extract string from filename
Hi

I need to extract the string from file name
filename: FILENAME_STRUT_01032013_XXXXXXX.TXT

I want 01032013 from the above file name. number of characters may differ before the required...
3,680
Posted By cnrj
Log file Creation
Hi

I have unix script which does execute some OS commands and DB Commands. I would like to create log file for each command execution, Could some one advise how do we create log file.

Example...
1,691
Posted By cnrj
Thanks a lot , it worked now.
Thanks a lot , it worked now.
1,691
Posted By cnrj
Thanks dexdex200, It got executed but it...
Thanks dexdex200,

It got executed but it hasn't create the file as expected, it didn't take any value from the shell variable. I ran teh script with sex-x, so below is the one executed on....
1,691
Posted By cnrj
awk Error
Hi

I am trying to create a file with count of lines and string from shell variable, i am getting the error incorrect syntax.

Below is the code :

wc -l $filename | awk '{ print...
5,911
Posted By cnrj
Hi Would you please let me know how do i...
Hi

Would you please let me know how do i find out the type ksh on Server?

Thanks in advance
Showing results 1 to 25 of 40

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