10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Folks,
While transferring file from FTP software like Filezilla the files gets corrupted.
Is there any way I can check if the recently transferred file is in ASCII and not corrupted. I have tried using file -i filename command which does tell if the file character set is ASCII or binary... (6 Replies)
Discussion started by: Khan28
6 Replies
2. Shell Programming and Scripting
Hi All
Need a help to understand how one can automatically correct a file name using a shell script even if it is in a completely different format...
Ex : adv_OK_0215_mem_rules_firing.txt / advex_0215_OK_me_rule_fire.txt (or in any other format as above)
to :... (13 Replies)
Discussion started by: chatwithsaurav
13 Replies
3. Shell Programming and Scripting
Hi All,
Is it possible to compare 2 files using the contents of a third file as a guide using a bash script?
I have 2 files I want t compare (1 and 2 below) the difference between the two is the first line (a)
I want my script to ignore this difference if the difference is stored in file... (5 Replies)
Discussion started by: nwalsh88
5 Replies
4. Shell Programming and Scripting
I have some data as below. I need correct it as result.
Data:
BG1:100+10++II
DG1:200+100+1234
DG2:300+200++II
CG1:200+100+1111
DG2:400+100++II
DG6:200+200+2345
DG2:400+100+2222
Result:
BG1:100+10++II
DG1:200+100+1234
DG2:300+200++1
CG1:200+100+1111
DG2:400+100++1... (4 Replies)
Discussion started by: mr.awk
4 Replies
5. Shell Programming and Scripting
Hi Folks,
I have just basic queries is that suppose I have to monitor the logs then there is a command , suppose I have to monitor the abc.log which is updating dynamically within seconds so the command will be after going to that directory is .. tail -f abc.log
Now please advise what about... (1 Reply)
Discussion started by: punpun66
1 Replies
6. Shell Programming and Scripting
Hi Folks,
please advise , I have logs generated on unix machine at location /ops/opt/aaa/bvg.log , now sometimes there come exception in these logs also, so I want to write such a script such that it should continuously monitor these logs and whenever any exception comes that is it try to find... (3 Replies)
Discussion started by: tuntun27272727
3 Replies
7. Shell Programming and Scripting
I am trying to write a shell script for monitoring the file system mount.
command I am using will retrieve a output as shown below.
/dev/fsv29 2% /apps/rj/pgl/bslSys
I also need to add exception mounts in a file and I would like script to ignore the mount which I specify.
If I add the... (6 Replies)
Discussion started by: chandu123
6 Replies
8. Shell Programming and Scripting
Hi all
Im trying to call a PL SQl block from a ksh file like this :
sqlplus -s $DB_USERID/$DB_PASSWD@$DB_NAME<<eof
whenever SQLERROR exit 1
var varError VARCHAR2(200);
exec ODAS_BATCH_JOBS_RETRIEVE.retrieve_user_info(:varError);
eof
If there is a error then varError will return a... (1 Reply)
Discussion started by: Sam123
1 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
I am trying to write a script for an application server log file where i want to put this script as a cron tab entry and it will check the server log file last 1000/500 line for every fifteen minute.
i am using the script like this.
count=`tail -n 1000 Trace.log | grep -c... (1 Reply)
Discussion started by: senthilkumar_ak
1 Replies
10. UNIX Desktop Questions & Answers
hi,
I want to know the date the file was created or modified. I can do this using ls, ll -ltr etc...
I want to do this in a function (so If the file date is older then a week I can report it), is there a way?
another thing...
In sql function, I can catch exceptions, is there a way to do this... (1 Reply)
Discussion started by: krem
1 Replies