I need help to write easy shell script


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting I need help to write easy shell script
# 1  
Old 04-16-2011
I need help to write easy shell script

Hello every one Smilie
I am very new in Linux ... that why I do not have any idea to write the script Smilie
I am trying to read some tutorial , but I do not have enough time to do it !
because I have to submit my project results in next Wednesday
I need your help to write script !
I will be so appreciate if you help me ^_^
I have 2 program the compress and decompress images ....

compress program will take the image name and compressed file name and it will generate the compressed data and store it in compressed file
the decompress program will take the compressed file name and image name
then decompress the compressed file and store the image

I want to test those programs on more that 120 images , that why I need to make a script to execute this programs on all those images
how can I make the script that will take the images from the directory then stored the compressed files
then another script to take the compressed files and store the images in the directory
do you have any idea to help me SmilieSmilieSmilie
who's can write this script for me

Thank you
Seereen
# 2  
Old 04-17-2011
Code:
I am trying to read some tutorial , but I do not have enough time to do it !

This is not correct. Nobody here has time as well.
So, you have to spend time in learning the tutorial, make your hands dirty and come back here if you are stuck somewhere completely.

That is how pretty much how everybody here learned it ( well, everybody ! Smilie )
These 2 Users Gave Thanks to matrixmadhan For This Post:
# 3  
Old 04-17-2011
Quote:
Originally Posted by seereen
because I have to submit my project results in next Wednesday
I need your help to write script !
[...]
who's can write this script for me
Is this homework? If so, repost here, and don't forget to fill out the template completely.

Otherwise: This isn't a solutions factory. We're not paid to write anything for anybody (and no, it's not allowed to promise payment for writing scripts). We'll be glad to help you if you're stuck, and check for errors in your script, or even to provide a basic algorithm to do what you need, but that's it.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script for renaming and moving Files - Easy?

Hey guys, ive been working on this for about 2hrs now - without any solution. At first I need to say I dont have skills in linux bash scripting, but I tried to use some codesnippets and manuals from google. What I want to do: I have different folders including 2 different filestypes with... (15 Replies)
Discussion started by: peter1337
15 Replies

2. Shell Programming and Scripting

Please help me to write the shell script

Please help me to write the shell script AC|NAME|STATE|MAXVALUE|MINVALUE---------heading 111|UMA|ODISHA|123,00.00|54.00 111|UMA|ODISHA|124,00.00|25.00 111|UMA|ODISHA|114,00.00|58.00 111|UMA|ODISHA|104,00.00|00.00 111|UMA|ODISHA|194,00.00|19.00 111|UMA|ODISHA|184,00.00|64.00... (5 Replies)
Discussion started by: alokjyotibal
5 Replies

3. Shell Programming and Scripting

How to write config shell script to pass variables in master shell script?

Dear Unix gurus, We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Discussion started by: dba1981
1 Replies

4. UNIX for Dummies Questions & Answers

How to write Config shell script to pass variables in master shell script?

Dear Unix gurus, We have a config shell script file which has 30 variables which needs to be passed to master unix shell script that invokes oracle database sessions. So those 30 variables need to go through the database sessions (They are inputs) via a shell script. one of the variable name... (1 Reply)
Discussion started by: dba1981
1 Replies

5. Shell Programming and Scripting

Need to write a shell script

Hi, I need to write a statement which will read a data from a specific line based on condition and then read related lines to delete. For example: |T20150322 100930290 208940000 598000080 700000000 930000202 100000000 .T56789 |T20150322 0100000000 0200000000 0500000000 9000000000... (1 Reply)
Discussion started by: abhi.mit32
1 Replies

6. Shell Programming and Scripting

Opinion on an easy shell script (mv)

:wall:I've this simple code: STF=/opt/aaa cat $STF | nice sort -u > $STF.new && mv $STF.new $STF Which works until today. What happened is that this script has been corrupted the FS, so I've to use fschk to repair the filesystem. I presume the move command executed just a little too early... (1 Reply)
Discussion started by: accolito
1 Replies

7. Shell Programming and Scripting

how to write shell script

Hi , i need to write a script like this In 1.sh ./test.sh wait(5sec) send ctrl+C to server ./testxxxx.sh first i need invoke test.sh from 1.sh , after wating for some time i need to close the test.sh script & i need to start new script i tried to invoke script... (2 Replies)
Discussion started by: pvr_satya
2 Replies

8. Shell Programming and Scripting

Need to Write Shell Script based off of this shell command

I'm trying to read a bunch of log files and output the lines that contain particular strings. To accomplish this, I've been running the following from the command line: find . -name "*" | xargs grep " " | grep " " > output.txt Two grep statements are needed in case I'm looking for a... (3 Replies)
Discussion started by: Rally_Point
3 Replies

9. Shell Programming and Scripting

I need to write a shell script.

Hi Guys, I need to write a shell script, to which I have getting results from CPU and Memory Utilization. This is to generate automatically through Shell script by running cron job. Is it possible to write it. I am new to this shell scripting. Can you please help me on this ASAP. ... (6 Replies)
Discussion started by: lakshmanrk
6 Replies

10. Shell Programming and Scripting

shell script : text manipulation (easy quesiton)

hi, i am newbie in shell script i want to do the following: given a filename like abc.txt i want to change the name to abc.properties how to do it? pls enligthen me. thanks (3 Replies)
Discussion started by: champion
3 Replies
Login or Register to Ask a Question