The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
need encrypt form syamkp Shell Programming and Scripting 0 03-08-2008 04:51 AM
encrypt my sctipt readycpbala Shell Programming and Scripting 4 01-24-2008 05:08 PM
encrypt file murad.jaber SUN Solaris 1 01-08-2008 08:29 AM
How to encrypt and decrypt a file laknar Shell Programming and Scripting 2 12-11-2007 08:18 AM
Help with encrypt function giggi High Level Programming 1 03-16-2005 07:22 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-14-2005
frankthetank115 frankthetank115 is offline
Registered User
  
 

Join Date: Nov 2005
Posts: 1
Tr utility to Encrypt

I need some help.. I would like to make a script that uses the tr utility to "encrypt" a selected file. I need to know how to set up the script so that if i type encrypt(script name) the letter that i want to start the encryption and then the file name, that it starts with the entered letter, and changes that to a.

syntax: encrypt c file

it then makes all c's in the file now a, all the d's a+1 and so forth.. i think that the letter and the file both have to be parameters for the script.. if you can help me it would be much appreciated.

frank
  #2 (permalink)  
Old 11-15-2005
andryk's Avatar
andryk andryk is offline Forum Advisor  
Registered User
  
 

Join Date: Sep 2003
Posts: 448
Frank The Tank,
Google for rot13 encryption which uses tr, rot13 example
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:53 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0