10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I have zip file that needs to be validated and checked for 5 times with sleep of 60 seconds. Some thing like below
#!/bin/bash
counter=1
while
do
curl -i -k -X GET `strings tmp.txt |grep Location| cut -f2 -d" "` -H "Authorization: Token $TOKEN" -o $zip_file ## this is... (6 Replies)
Discussion started by: Master_Mind
6 Replies
2. Shell Programming and Scripting
The below awk verifies the count and order of each text file in the directory. The script does execute and produce output, however the order of the headers are not compared to key. The portion in bold is supposed to do that. If the order of the headers in each text file is the same as key, then... (0 Replies)
Discussion started by: cmccabe
0 Replies
3. Shell Programming and Scripting
We have a job which we need to run on daily bases, before loading data in a table we need to validate whether the input file is received or not.
Daily client will place the files in a particular path.Below files which I need to process for 04/01/2013(Load date).... (2 Replies)
Discussion started by: katakamvivek
2 Replies
4. Shell Programming and Scripting
We have a job which we need to run on daily bases, before loading data in a table we need to validate whether the input file is received or not.Inputfile formatsrc_sps_d_Call_Center_Reporting_yyyymmdd_01.dat SPS-Service nameYYYY-yearMM-MonthDD-dayLike above we will get n number of files for... (1 Reply)
Discussion started by: katakamvivek
1 Replies
5. Shell Programming and Scripting
Hi,
I have written a small shell script to remove the files olderthan X days (say 30). But I not sure how it acts on the filesystem, as I am using rm.
if
then
echo "##############################################"
echo "Invalid no .of arguments\n"
echo "Usage:\n$0 PATH... (6 Replies)
Discussion started by: karumudi7
6 Replies
6. Shell Programming and Scripting
File Format
dataline1,12,,,,;
dataline2,24,,,;
dataline3,12,,,,;
dataline4,24,,,;
COUNT=0004;
Hi,
I have source(/home/rgupta) and destination folders /home/rgupta/arch and /home/rgupta/err. Source folders has many files. I want to move the files from source to destination with some... (1 Reply)
Discussion started by: ravigupta2u
1 Replies
7. Shell Programming and Scripting
Hi.. I am new to unix !!!
Please help me in combining two files by validating the first column.
The files are tab limited !!!
I have a file which has the following contents...
DEPT1_BABYCARE 20 abce
DEPT2_PHARMACY 50 cdgde
DEPT3_WOMENS ... (7 Replies)
Discussion started by: ashokrajaa
7 Replies
8. Filesystems, Disks and Memory
Hi ,
We are facing a weird problem in our project. we need to send some xml & audio files to a remote FTP server from a Linux box, we are doing this in Perl script using Net::FTP->. Issue here is.. when FTPed the files using Perl scripts, only empty files ( 0 byte) are getting created on the... (2 Replies)
Discussion started by: kishorepotta
2 Replies
9. Shell Programming and Scripting
I have a shell, which locks calls an expect script that connects to an sftp and downloads all files.
I need it to then check each file in my directory and compare the sizes. If the file name and file size match, then delete the file on the server.
Is this possible?
:confused: (2 Replies)
Discussion started by: tariqjamal
2 Replies
10. Shell Programming and Scripting
Hi. I've written a shell that will sftp about 5,000 to 10,000 files a day (they are small 200 byte files). Where I'm stuck at is that I need to not only copy those files from the ftp server, I also need to delete the files on the ftp server after they have been ftped BUT before they've been... (0 Replies)
Discussion started by: biglarrrr
0 Replies