Unable to obtain the desired output


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Unable to obtain the desired output
# 8  
Old 07-29-2013
Quote:
Originally Posted by brinjit
Hi,

What is really happening is that even though I have changed the criteria for finding masked files to cycfnm in`ls $filepath/AC3.C*.AC0*.D*.T*.CSV*, I still am getting .txt and .pdf from the source directory and all are being populated into the target
... ... ...
With scripts of this size, it would be MUCH MUCH easier to read your posts and to look at your code if you would attach the source rather than including it in the text. And when you post multiple slightly different versions, please also attach a file containing output from the command:
Code:
diff previous_version_of_file current_version_of_file

The filename matching pattern $filepath/AC3.C*.AC0*.D*.T*.CSV* will match filenames that consist of the string AC3.C followed by any string of zero of more characters followed by the string .AC0 followed by any string of zero or more characters followed by the string .D followed by any string of zero or more charactters followed by the string .T followed by any string of zero or more characters followed by the string .CSV followed by any string of zero or more characters in the directory named by the expansion of $filepath (assuming that there aren't any filename matching meta-characters and there aren't any whitespace characters in the expansion of $filepath). I assume that you don't have any files with names that match that pattern and that the command in your script:
Code:
 for cycfnm in `ls $filepath/AC3.C*.AC0*.D*.T*.CSV*`   ##After files transferred, remove null chars

produced a diagnostic message similar to :
Code:
ls: expansion_of_$pathname/AC3.C*.AC0*.D*.T*.CSV*: No such file or directory

(even though you didn't mention that crucial piece of information). So the above command (after command substitution) expands to:
Code:
 for cycfnm in   ##After files transferred, remove null chars

which will go through the following loop with cycfnm set to the name the name of a file in the current directory for every file in the current directory whose name does not have a period (.) as its first character.

From what you have said, it isn't clear what pattern you need in this ls command, but from some of the following if statements, it is probably something like:
Code:
 for cycfnm in $(ls $filepath/*AC0*.CSV)   ##After files transferred, remove null chars

If you would have redirected the standard error output into a file when you ran this script and looked at it when it finished, the diagnostics from ls would have stood out clearly.

If you can't figure out what is going wrong (especially in a script this size) you need to learn how to use set -xv and set +xv to turn tracing on and off while you're debugging portions of your code.
# 9  
Old 07-30-2013
Getting more files than required in the target directory

The files are being written to the following directories:
Code:
/fpapps/op/dev/ftproot/ftpdown/2013_Billing/201307_Final/07th/0570_07th
/fpapps/op/dev/ftproot/ftpdown/2013_Billing/201307_Final/07th/0571_07th
/fpapps/op/dev/ftproot/ftpdown/2013_Billing/201307_Final/07th/0572_07th
/fpapps/op/dev/ftproot/ftpdown/2013_Billing/201307_Final/07th/0573_07th
/fpapps/op/dev/ftproot/ftpdown/2013_Billing/201307_Final/07th/0584_07th

the command typed to execute the shell script is as follows:
Code:
batchjob OP exec ${FP_SCRIPTS}/cdg/FRP_CDG_BILLING_Script.ksh 07th

I have attached the log file for your reference so that you can see the complete trail.

The files that are being written to

/fpapps/op/dev/ftproot/ftpdown/2013_Billing/201307_Final/07th/0570_07th

are as follows:

Code:
total 593024
-rwxrwxrwx 1 opqa opuser 16494243 Jul 30 06:47 AC3.C0570.AC0020.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 1409313 Jul 30 06:47 AC3.C0570.AC0021.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 4715913 Jul 30 06:47 AC3.C0570.AC0022.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 585168 Jul 30 06:47 AC3.C0570.AC0025.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 501 Jul 30 06:47 AC3.C0570.AC0185.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 99471 Jul 30 06:47 AC3.C0570.AC0068.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 21543 Jul 30 06:47 AC3.C0570.AC0065.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 26607108 Jul 30 06:47 AC3.C0570.AC0300.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 517032 Jul 30 06:47 AC3.C0570.AC0050.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 74148 Jul 30 06:47 AC3.C0570.AC0260.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 8016 Jul 30 06:47 AC3.C0570.AC03002.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 169521 Jul 30 06:47 AC3.C0570.AC0505.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 23547 Jul 30 06:47 AC3.C0570.AC020P.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 135771 Jul 30 06:47 AC3.C0570.AC02602.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 636054 Jul 30 06:47 AC3.C0570.AC0049.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 16812 Jul 30 06:47 AC3.C0570.AC0048.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 11022 Jul 30 06:47 AC3.C0570.AC0045.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 741981 Jul 30 06:47 AC3.C0570.AC0040.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 30060 Jul 30 06:47 AC3.C0570.ACI05015.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 71142 Jul 30 06:47 AC3.C0570.AC0787.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 1248993 Jul 30 06:47 AC3.C0570.AC0785.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 101703 Jul 30 06:47 AC3.C0570.AC0781.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 227454 Jul 30 06:47 AC3.C0570.AC0765.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 173847 Jul 30 06:47 AC3.C0570.AC0775.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 743931 Jul 30 06:47 AC3.C0570.AC0780.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 117234 Jul 30 06:47 AC3.C0570.AC0770.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 595689 Jul 30 06:47 AC3.C0570.AC0760.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 6966906 Jul 30 06:47 AC3.C0570.AC0740.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 8712546 Jul 30 06:47 AC3FPT2.51213.AC0300.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 9960566 Jul 30 06:47 AC3FPT2.51213.AC0300.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 9191 Jul 30 06:47 AC3FPT2.51216.AC0300.R04.000.pdf
-rwxrwxrwx 1 opqa opuser 12255963 Jul 30 06:47 AC3.C0570.AC0730.D0711.T162703.CSV
-rwxrwxrwx 1 opqa opuser 270893 Jul 30 06:47 AC3FPT3.51730.AC0505.R02.000.pdf
-rwxrwxrwx 1 opqa opuser 171490 Jul 30 06:47 AC3FPT3.51729.AC0505.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 199821 Jul 30 06:47 AC3FPT3.51729.AC0505.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 14746588 Jul 30 06:47 AC3FPT3.51702.AC0500.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 19337773 Jul 30 06:47 AC3FPT3.51702.AC0500.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 200 Jul 30 06:47 AC3FPT2.51357.AC0382.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 1794 Jul 30 06:47 AC3FPT2.51357.AC0382.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 2929 Jul 30 06:47 AC3FPT2.51221.AC0300.R09.000.txt.done
-rwxrwxrwx 1 opqa opuser 6090 Jul 30 06:47 AC3FPT2.51216.AC0300.R04.000.txt.done
-rwxrwxrwx 1 opqa opuser 257976 Jul 30 06:47 AC3FPT2.51219.AC0300.R07.000.pdf
-rwxrwxrwx 1 opqa opuser 228422 Jul 30 06:47 AC3FPT2.51219.AC0300.R07.000.txt.done
-rwxrwxrwx 1 opqa opuser 3959976 Jul 30 06:47 AC3FPT2.51220.AC0300.R08.000.pdf
-rwxrwxrwx 1 opqa opuser 3523420 Jul 30 06:47 AC3FPT2.51220.AC0300.R08.000.txt.done
-rwxrwxrwx 1 opqa opuser 4736 Jul 30 06:47 AC3FPT2.51221.AC0300.R09.000.pdf
-rwxrwxrwx 1 opqa opuser 84696 Jul 30 06:47 AC3FPT3.51835.AC0765.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 110587 Jul 30 06:47 AC3FPT3.51835.AC0765.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 10036081 Jul 30 06:47 AC3FPT3.51741.AC0650.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 8271937 Jul 30 06:47 AC3FPT3.51751.AC0730.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 242562 Jul 30 06:47 AC3FPT3.51730.AC0505.R02.000.txt.done
-rwxrwxrwx 1 opqa opuser 8083737 Jul 30 06:47 AC3FPT3.51741.AC0650.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 263106 Jul 30 06:47 AC3FPT3.51830.AC0760.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 300303 Jul 30 06:47 AC3FPT3.51830.AC0760.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 2659156 Jul 30 06:47 AC3FPT3.51814.AC0755.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 2418595 Jul 30 06:47 AC3FPT3.51814.AC0755.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 12867 Jul 30 06:47 AC3FPT3.51813.AC0750.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 24491 Jul 30 06:47 AC3FPT3.51813.AC0750.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 2527789 Jul 30 06:47 AC3FPT3.51796.AC0740.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 3503158 Jul 30 06:47 AC3FPT3.51796.AC0740.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 5990350 Jul 30 06:47 AC3FPT3.51751.AC0730.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 31028 Jul 30 06:47 AC3FPT3.51868.AC0781.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 36624 Jul 30 06:47 AC3FPT3.51868.AC0781.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 596935 Jul 30 06:47 AC3FPT3.51859.AC0780.R02.000.txt.done
-rwxrwxrwx 1 opqa opuser 95091 Jul 30 06:47 AC3FPT3.51837.AC0770.R02.000.pdf
-rwxrwxrwx 1 opqa opuser 14936 Jul 30 06:47 AC3FPT3.51838.AC0770.R03.000.pdf
-rwxrwxrwx 1 opqa opuser 95087 Jul 30 06:47 AC3FPT3.51836.AC0770.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 75312 Jul 30 06:47 AC3FPT3.51836.AC0770.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 708020 Jul 30 06:47 AC3FPT3.51859.AC0780.R02.000.pdf
-rwxrwxrwx 1 opqa opuser 180101 Jul 30 06:47 AC3FPT3.51858.AC0780.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 145877 Jul 30 06:47 AC3FPT3.51858.AC0780.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 75312 Jul 30 06:47 AC3FPT3.51837.AC0770.R02.000.txt.done
-rwxrwxrwx 1 opqa opuser 130571 Jul 30 06:47 AC3FPT3.51857.AC0775.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 159550 Jul 30 06:47 AC3FPT3.51857.AC0775.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 10620 Jul 30 06:47 AC3FPT3.51838.AC0770.R03.000.txt.done
-rwxrwxrwx 1 opqa opuser 2172921 Jul 30 06:47 AC3FPT4.51967.AC0025.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 2683553 Jul 30 06:47 AC3FPT4.51967.AC0025.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 297320 Jul 30 06:47 AC3FPT4.51943.AC0021.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 377888 Jul 30 06:47 AC3FPT4.51943.AC0021.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 12564069 Jul 30 06:47 AC3FPT4.51942.AC0020.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 38265 Jul 30 06:47 AC3FPT3.51879.AC0787.R02.000.pdf
-rwxrwxrwx 1 opqa opuser 219602 Jul 30 06:47 AC3FPT3.51884.AC0790.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 479155 Jul 30 06:47 AC3FPT3.51873.AC0785.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 28863 Jul 30 06:47 AC3FPT3.51878.AC0787.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 31916 Jul 30 06:47 AC3FPT3.51879.AC0787.R02.000.txt.done
-rwxrwxrwx 1 opqa opuser 22515 Jul 30 06:47 AC3FPT3.51878.AC0787.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 409911 Jul 30 06:47 AC3FPT3.51873.AC0785.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 15626555 Jul 30 06:47 AC3FPT4.51942.AC0020.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 169209 Jul 30 06:47 AC3FPT3.51884.AC0790.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 31054 Jul 30 06:47 AC3FPT4.52133.AC020PLN.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 47370 Jul 30 06:47 AC3FPT4.52133.AC020PLN.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 136130 Jul 30 06:47 AC3FPT4.52124.AC0068.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 182341 Jul 30 06:47 AC3FPT4.52124.AC0068.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 380279 Jul 30 06:47 AC3FPT4.52093.AC0049.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 481663 Jul 30 06:47 AC3FPT4.52093.AC0049.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 13584 Jul 30 06:47 AC3FPT4.52074.AC0048.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 19272 Jul 30 06:47 AC3FPT4.52074.AC0048.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 20984066 Jul 30 06:47 AC3FPT4.51975.AC0030.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 31754 Jul 30 06:47 AC3FPT4.52058.AC0045.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 6952961 Jul 30 06:47 AC3FPT4.52037.AC0040.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 8713745 Jul 30 06:47 AC3FPT4.52037.AC0040.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 26457882 Jul 30 06:47 AC3FPT4.51975.AC0030.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 24601 Jul 30 06:47 AC3FPT4.52058.AC0045.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 22641 Jul 30 06:47 AC3FPTXT.51086.AC0260.R05.000.txt.done
-rwxrwxrwx 1 opqa opuser 26918 Jul 30 06:47 AC3FPTXT.51086.AC0260.R05.000.pdf
-rwxrwxrwx 1 opqa opuser 87845 Jul 30 06:47 AC3FPTXT.51085.AC0260.R04.000.txt.done
-rwxrwxrwx 1 opqa opuser 100029 Jul 30 06:47 AC3FPTXT.51085.AC0260.R04.000.pdf
-rwxrwxrwx 1 opqa opuser 51654 Jul 30 06:47 AC3FPTXT.51084.AC0260.R03.000.txt.done
-rwxrwxrwx 1 opqa opuser 2339 Jul 30 06:47 AC3FPTXT.51083.AC0260.R02.000.txt.done
-rwxrwxrwx 1 opqa opuser 4286 Jul 30 06:47 AC3FPTXT.51083.AC0260.R02.000.pdf
-rwxrwxrwx 1 opqa opuser 65855 Jul 30 06:47 AC3FPTXT.51084.AC0260.R03.000.pdf
-rwxrwxrwx 1 opqa opuser 7174 Jul 30 06:47 AC3FPTXT.51082.AC0260.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 26754 Jul 30 06:47 AC3FPTMI.50801.AC020OCC.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 13398 Jul 30 06:47 AC3FPTXT.51064.AC0207.R02.000.pdf
-rwxrwxrwx 1 opqa opuser 20263 Jul 30 06:47 AC3FPTMI.50801.AC020OCC.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 10699 Jul 30 06:47 AC3FPTXT.51064.AC0207.R02.000.txt.done
-rwxrwxrwx 1 opqa opuser 9538 Jul 30 06:47 AC3FPTXT.51082.AC0260.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 585168 Jul 30 06:47 AC3.C0570.AC0025.D0711.T162703.CSV.tmp
-rwxrwxrwx 1 opqa opuser 16494243 Jul 30 06:47 AC3.C0570.AC0020.D0711.T162703.CSV.tmp
-rwxrwxrwx 1 opqa opuser 883893 Jul 30 06:47 AC3FPTXT.51130.AC0050.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 2518 Jul 30 06:47 AC3FPTXT.51093.AC0260.R12.000.pdf
-rwxrwxrwx 1 opqa opuser 3860 Jul 30 06:47 AC3FPTXT.51125.AC0219.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 1759 Jul 30 06:47 AC3FPTXT.51125.AC0219.R01.000.txt.done
-rwxrwxrwx 1 opqa opuser 1121688 Jul 30 06:47 AC3FPTXT.51130.AC0050.R01.000.pdf
-rwxrwxrwx 1 opqa opuser 821 Jul 30 06:47 AC3FPTXT.51093.AC0260.R12.000.txt.done
-rwxrwxrwx 1 opqa opuser 291115 Jul 30 06:47 AC3FPTXT.51087.AC0260.R06.000.txt.done
-rwxrwxrwx 1 opqa opuser 328185 Jul 30 06:47 AC3FPTXT.51087.AC0260.R06.000.pdf
-rwxrwxrwx 1 opqa opuser 743931 Jul 30 06:47 AC3.C0570.AC0780.D0711.T162703.CSV.tmp

Let me know if you need more information.

Last edited by Franklin52; 07-30-2013 at 10:03 AM.. Reason: Please use code tags
# 10  
Old 07-30-2013
No, I don't need any more information. I suggested several tools you could use to find your problem. Giving me a list of files that your script modified was not one of those tools.

We are happy to help you learn how to use UNIX systems; we are not here to do your job.

If you'd like to hire me to do some work for you, send me a private message with details on what needs to be done, how I can access your system, and what you'll pay for the work. Smilie
# 11  
Old 07-30-2013
Getting extra files in the destination directory

Hi,

I forgot to mention that I need only the files ending in .tmp were desired in the destination directory, not the rest of them.

Thanks,

Brinjit
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need help in solving to obtain desired print output using awk or perl or any commands, Please help!!

I have an file which have data in lines as follows ad, findline=24,an=54,ab=34,av=64,ab=7989,ab65=34,aj=323,ay=34,au=545,ad=5545 ab,abc,an10=23,an2=24,an31=32,findline=00,an33=23,an32=26,an40=45,ac23=5,ac=87,al=76,ad=26... (3 Replies)
Discussion started by: deepKrish
3 Replies

2. Shell Programming and Scripting

Output not coming as desired.

Hi guys. I have a file containing some hosts and their IPs. host host1 192.168.2.10 host host2 192.168.2.11 host host3 192.168.2.12 I am writing a script where I want to print these values in 1 line. My script looks like RUNTIME_NODE=`cat hosts.properties | grep host` for i in... (7 Replies)
Discussion started by: Junaid Subhani
7 Replies

3. UNIX for Dummies Questions & Answers

Unable to obtain lock on NFS files

Hello , I am creating a controlfile of database in linux and below is the error coming: SQL> CREATE CONTROLFILE REUSE set DATABASE "newdbcln" RESETLOGS NOARCHIVELOG 2 MAXLOGFILES 5 3 MAXLOGMEMBERS 5 MAXDATAFILES 100 4 5 MAXINSTANCES 1 6 MAXLOGHISTORY... (2 Replies)
Discussion started by: admin_db
2 Replies

4. Shell Programming and Scripting

Help!! needed to get the desired output

Am in need of your help to get the desired output. nameSECURITY.SERVICES.CONFIG:GETVALUEisPrefetchedNsAccessLast2013-09-13 10:50:13 MESTsAccessTotal1sRunningcHitLastnamePUBLIC.SERVER:INVOKEisPrefetchedNsAccessLast2013-09-17 15:02:05... (5 Replies)
Discussion started by: rocky2013
5 Replies

5. Shell Programming and Scripting

How to grep the desired output and output to a file?

currently I have process from a raw file to this stage ALTER TABLE "EXCEL_ADMIN"."TC_TXN_VOID" ADD CONSTRAINT "PK_TC_TXN_VOID" PRIMARY KEY ("TC_TXN_IID") ALTER TABLE "EXCEL_ADMIN"."TC_TXN_AMT" ADD CONSTRAINT "PK_TC_TXN_AMT" PRIMARY KEY ("TC_TXN_AMT_IID") ALTER TABLE... (10 Replies)
Discussion started by: jediwannabe
10 Replies

6. Shell Programming and Scripting

need to get the desired output

Below is the my cide which is working fine but I am not getting the output indesired format.there is some problem in alignment.Can someone help me to correct this? if ]; then summary=$( echo -e "Please review the log file of auto coloclean utility.\n"; echo -e... (2 Replies)
Discussion started by: anuragpgtgerman
2 Replies

7. Shell Programming and Scripting

SED - output not desired

echo '0x3f 0xfa ae 0xeA' | sed '/0x/ y/abcdef/ABCDEF/' output: 0x3F 0xFA AE 0xEA echo '0x3f 0xfa ae 0xeA' | sed -r '/0x{2}/ y/abcdefg/ABCDEFG/' output: 0x3F 0xFA AE 0xEA my expected output: 0x3F 0xFA ae 0xEA What I want to achieve is change all hexadecimals to UPPER case(only those... (6 Replies)
Discussion started by: kevintse
6 Replies

8. Shell Programming and Scripting

how to get desired output after redirection

hi i am running script which contains the commmnds and i am redirecting the script output to a file. like ./script 1> result.txt 2>&1 the above redirection is not working for commands when run in background in a script. but the problem here result.txt containg output which is repeated.... (3 Replies)
Discussion started by: raji
3 Replies

9. Shell Programming and Scripting

script not giving the desired output

Hi, I have a script in which an entry like this ..... FILENAME_B="PIC_${DATE}0732*.JPG" The script connects to an ATM and pull a pic file from it.The format for the file is like PIC_2008061400000001.JPG in the ATM. Means 1st 8 digit is the date(YYYYMMDD) field 2nd 8 digit means hrs... (2 Replies)
Discussion started by: Renjesh
2 Replies

10. Shell Programming and Scripting

Help me in getting the desired output

I wanted to put "|" this sign at starting and at end of every field but its not working with first field like Currently the out put is : abc | abc | abc | xyz | xyz | xyz | But I want the out put in this form: | abc | abc | abc | | xyz | xyz | xyz | plz help me. (2 Replies)
Discussion started by: akash
2 Replies
Login or Register to Ask a Question