Sponsored Content
Full Discussion: Command Logic
Top Forums Shell Programming and Scripting Command Logic Post 302814573 by johnprince1980 on Wednesday 29th of May 2013 05:13:50 PM
Old 05-29-2013
Thanks for the reply.

However, I am getting the following error while running a test command :

$ ls | while read val ;echo Try some command with "$val" ; done
-bash: syntax error near unexpected token `done'[/CODE]
 

2 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Need help in logic using awk command

I have task to find out the min,max, average value of each service for example i searched for " StatementService " $awk '/VST.*StatementService:/{print $3,$4,$19,$22,$25}' performance.log > smp.log $cat smp.log amexgtv VST: : StatementService:1860 StatementService:getCardReference:0... (3 Replies)
Discussion started by: senthil.ak
3 Replies

2. Shell Programming and Scripting

find command with complex logic

I'm looking to write a script that will do a find of directories and delete them if they are older than x days but keep the last x # of folders even if they are older than x days. The usage is for a deployment location, so we want to keep the location clean but retain maybe the last 2 builds that... (5 Replies)
Discussion started by: MaureenT
5 Replies
All times are GMT -4. The time now is 04:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy