Sponsored Content
Top Forums Shell Programming and Scripting Help/How-to - simple UNIX script / gzip (beginner) Post 302670747 by jim mcnamara on Thursday 12th of July 2012 11:12:38 AM
Old 07-12-2012
The attachment is hosed, cannot see it.
Code:
cd Documents/Vol1/A
find . -type d -exec basename  {} \; |
while read folder
do
   tar czvf /tmp/PR-2012`date +%m%d%H-XXXX-V1-XXXXXX-${folder}.tgz  $folder
done

This assumes that your version of tar supports the z options. It also assumes that when you cd to the directory: Documents/Vol1/A that you are in the directory immediately above Documents.

The compressed tar files end up in the /tmp directory.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Simple UNIX Shell Script help, PLEASE

I don't know anything about UNIX. I have been developing on NT platform and now a batch file I was running in my java code must work on UNIX instead. How do I change the below .bat file into a shell script that can be run on UNIX? Thanks in advance for your help. @ECHO OFF D:... (1 Reply)
Discussion started by: ci2a020
1 Replies

2. Shell Programming and Scripting

simple unix script help

when i run this script: # Author: xtos if then echo "Please enter ONLY one name to search, (example "$0" NAME)" exit fi INPUT="grep $1 $HOME/work/phone_book" if then echo "Listing not found, please try again." else (2 Replies)
Discussion started by: xtos
2 Replies

3. UNIX for Dummies Questions & Answers

A beginner for cygwin simple question

the current pwd is: c:\cygwin\home\hui which command can go to c:\documents and setting\hui\my documents\hui\reply.txt (1 Reply)
Discussion started by: zhshqzyc
1 Replies

4. Shell Programming and Scripting

A simple query on unix shell script

I want to write a script to go to particular path in file and run shell script from there. what will be shell script for the same. (2 Replies)
Discussion started by: shekhar_ssm
2 Replies

5. Shell Programming and Scripting

Simple unix variables in script

I'm creating a script that asks a user for a variable ex read filename; read numberinput; I also have a bunch of files named file.0 file.1 ... file.55 I'm trying to delete all files (if they exist) about file.$numberinput. Can someone help me out on how to include the variable as part... (6 Replies)
Discussion started by: jenix4545
6 Replies

6. Shell Programming and Scripting

Help with simple program. (beginner)

Hey all, Writing a program that searches for a username and if they are online creates a 'beep' and sends the username and date to a log file. the error i am getting is: paul.obrien16@aisling:~/os$ bash checklogin : command not found Enter username paul.obrien16 ': not a valid... (2 Replies)
Discussion started by: sexyladywall
2 Replies

7. Shell Programming and Scripting

very simple but mount everest for beginner

List directories at the home directory in increasing order. First of all is this correct? cd ~/ du -h|sort -n|more First command is to go to the home directory and second does the rest. Is there a way to do them in single command. Thanks in advance. (1 Reply)
Discussion started by: kevincobain2000
1 Replies

8. Shell Programming and Scripting

Cannot execute Unix command in a simple perl script

Am trying to lean perl scripting in Unix OS to automate my tasks. Please find the below perl script i have tried #!/usr/bin/perl -w print "Please Enter the VG name to be checked:"; $A = <>; print "Please Enter the free size to be checked in GB:"; $B = <>; $vgcheck = `vgdisplay... (7 Replies)
Discussion started by: jayachandran87
7 Replies

9. Shell Programming and Scripting

need a script that does a simple task on multiple unix servers.

hi guys, i need a script that does a simple task on multiple aix servers. if possible with both telnet and ssh. the simple task i wanna do is connect to a server and run "ifconfig -a" and get the output. nextweek i need to do similar jobs on like 50 servers... :( can anybody help me with making... (2 Replies)
Discussion started by: curtis911
2 Replies

10. Shell Programming and Scripting

Need Help on simple script as i dont know numch about UNIX scripting

Hello All, My name is vasu and I am very new to Unix scripting, i know basic commands, but now i need to write the following script, i have tried but no luck My requirment is i am getting one our from another command as following Used:1.8TB Advisory Quota:1.8TB aaa1 Used:4.5TB Advisory... (1 Reply)
Discussion started by: VasuKukkapalli
1 Replies
EXONERATE(1)						      General Commands Manual						      EXONERATE(1)

NAME
exonerate - suite for investigating DNA and RNA sequence similarities SYNOPSIS
exonerate-client [--help] exonerate-server [--help] fasta2esd [--help] fastaannotatecdna [--help] fastachecksum [--help] fastaclean [--help] fastaclip [--help] fastacomposition [--help] fastadiff [--help] fastaexplode [--help] fastafetch [--help] fastahardmask [--help] fastaindex [--help] fastalength [--help] fastanrdb [--help] fastaoverlap [--help] fastareformat [--help] fastaremove [--help] fastarevcomp [--help] fastasoftmask [--help] fastasort [--help] fastasplit [--help] fastasubseq [--help] fastatranslate [--help] fastavalidcds [--help] DESCRIPTION
These programs are not described by the upstream author, however, some information is available via the --help and -h arguments for all these programs. Whoever is using any of these programs in routine, is requested to provide a seed of a respective man page to the upstream author. OPTIONS
-h, --help Show summary of options. -v, --version Show version of program. SEE ALSO
http://www.ebi.ac.uk/~guy/exonerate/ The author of this package provides a beginner ( http://www.ebi.ac.uk/~guy/exonerate/beginner.html ) and and avanced http://www.ebi.ac.uk/~guy/exonerate/advanced.html ) tutorial on his web pages. AUTHOR
exonerate was written by Guy Slater <guy@ebi.ac.uk>. This manual page was written by Steffen Moeller for the Debian project (but may be used by others). 30 Jun 2007 EXONERATE(1)
All times are GMT -4. The time now is 03:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy