Just asking - Tips on how to maintain your scripts ..


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Just asking - Tips on how to maintain your scripts ..
# 1  
Old 06-05-2010
Just asking - Tips on how to maintain your scripts ..

Hi all,

Just writing to ask if any one can advise on what tools to use best for maintaining your scripts ... preferably free/open source and portable if there is one, that is, one that can be placed and run on a USB stick ...

At the moment, am having them in directories and files and no versioning of any kind.

Any advise or solution of how to put something like this in place, will be very much appreciated.

Thanks in advance.
# 2  
Old 07-25-2010
Are these script to be shared among other colleagues? If not, then a primitive solution is to add the date in the filename (format yyyymmdd). If yes, then use a shared folder (also with the date in the filename) or distributed version repository, such as git or mercurial.

You also need to think about some documentation in case someone else needs to find these scripts and knows how to find out how to use them.

A USB stick is not a long term solution, given the inevitable wear and the possibility of the data being wiped when inserting or removing.

Hope this helps
# 3  
Old 07-25-2010
Quote:
Originally Posted by figaro
A USB stick is not a long term solution, given the inevitable wear and the possibility of the data being wiped when inserting or removing.
I just had a USB stick die after about 2 years of use, so this is definitely true.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Maintain line format using awk

Hello I have a file with the following format: ... text1 num num P # 2014--2-28-22---6 33.76--38.4173---21.9403----0.08-0.00--0.01--0.01--0.46----------0 text1 num num P text 2 num num S text 3 num num P ... (where "-"=space, "spaces" cannot... (4 Replies)
Discussion started by: phaethon
4 Replies

2. Shell Programming and Scripting

Need to maintain in- and output format with awk

Hi All, I have a data file (myfile.txt) as below: - A H C - A HHH F - AAA HH I The importan point is that the width between the columns are not fixed and the column seperator is space. I wish to change the value of 4th column using awk only when $3 = HH. I can... (4 Replies)
Discussion started by: angshuman
4 Replies

3. UNIX for Dummies Questions & Answers

Script that will Delete and Maintain Files

Hi guys, Good day to all and Happy New Year!!! Cheers!!! I hope anyone could help/suggest me on hot to create a script that will monitor the directory where files are being dumped. I have a script in CRON that runs everyday and collect for logs with a filename of Output_$(date... (3 Replies)
Discussion started by: rymnd_12345
3 Replies

4. Shell Programming and Scripting

awk maintain case query

# Print list of word frequencies { $0 = tolower($0) for (i = 1; i <= NF; i++) counter++ } END { for (word in counter) printf "%s\t%d\n",word, counter } I have this simple awk code from awk user guide to count the frequency of word. Now consider the... (7 Replies)
Discussion started by: ajacobs365
7 Replies

5. UNIX for Dummies Questions & Answers

Tips to make scripts install

Hi, I have a series of BASH shell scripts that I would like to package and distribute. I would like to make it as easy as possible users to install the package on their system. The only tasks that need to be performed for installation are 1) unzip the package, 2) modify the user's ~/.bashrc... (1 Reply)
Discussion started by: msb65
1 Replies

6. Shell Programming and Scripting

maintain 32bit and 64bit C code

Hi, I have a C code which builds and works fine on 32bit linux machine. Now i want to convert that code to build and run on 64 bit linux machine. I dont want to maintain two separate sources for 32 and 64 bit build. Same source should get build on 32 as well as 64 bit machine (when a... (2 Replies)
Discussion started by: bhushan123
2 Replies

7. Shell Programming and Scripting

Log maintain in Perl

hi , While working on perl, have to write a continuous log file which I can monitor. I tried like, open (LOG,'>'.$log.'/Report_'.$todaysdate.'.log') or die("Unable to create the log file"); print LOG "\nDate : ".`date`; But when I ran the script in backend and monitor log, it... (1 Reply)
Discussion started by: Deei
1 Replies

8. UNIX for Dummies Questions & Answers

maintain database script...

Hi there. i'm new user at here I need help for this. I need to write a script that maintains a database of cryptographic checksums. In other words, I need this script to check the files checksum whether the files has been modified or not. But i got no idea where to start. Hope anyone here can... (8 Replies)
Discussion started by: hihihehe
8 Replies

9. Shell Programming and Scripting

Maintain 30 days data

Hi Folks, I have a log file that keeps the information pn the date and time a specific transaction is firedup. I found that the log file keeps growing and I intend to limit the entry to the log file to 30 days. Log file name is transaction.log, here is the content: 120802_23:47:37 ... (3 Replies)
Discussion started by: odogbolu98
3 Replies

10. UNIX for Dummies Questions & Answers

How do I create & Maintain directories

I need to either create or use a current directory to provide a path for a windows file, how do I do that? kimj (4 Replies)
Discussion started by: kimjones142001
4 Replies
Login or Register to Ask a Question