Sponsored Content
Top Forums Shell Programming and Scripting [Solved] Decoding a base 64 string Post 302737297 by Yoda on Wednesday 28th of November 2012 05:22:17 PM
Old 11-28-2012
You can use base64 -d option for decoding data, check the manual page here
Code:
echo "YmlwaW5haml0aAo=" | openssl base64 -d
bipinajith

These 3 Users Gave Thanks to Yoda For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Base 64 encoded string

Could anyone of you please give me some idea to decode base 64 encoded value in ksh? (4 Replies)
Discussion started by: nram_krishna@ya
4 Replies

2. Shell Programming and Scripting

[Solved] print chars of a string

how can i print all the chars of a string one by line? i have thought that use a for cicle and use this command inside: ${VARIABLE:0:last}but how can i make last? because string is random P.S. VARIABLE is the string or can i make a variable for every chars of this string? this was my idea... (10 Replies)
Discussion started by: tafazzi87
10 Replies

3. UNIX for Dummies Questions & Answers

[Solved] Extracting all characters from a string

I want to extract the string TC from the string TC10, the string can have any characters out of . I used the following code but didnt get the right output. Please guide nuc=match(val,/*/) seq=substr(val,RSTART,RLENGTH) ---------- Post updated at 09:40 PM ---------- Previous update was... (0 Replies)
Discussion started by: newbie83
0 Replies

4. UNIX for Dummies Questions & Answers

Decoding a string

Hi, If my input string is 3a3b4c then my result should be aaabbbcccc. Please guide me how to achieve this in a bash script. Thanks (18 Replies)
Discussion started by: pandeesh
18 Replies

5. Shell Programming and Scripting

[Solved] String Comparison

Hi I am beginner in writing shell scripting please tell me how to compare a string in Unix shell. i have two variables in a shell script, var1="00101 00201 00301 303 401 405" var2="101 201 301" i want to compare var1 with var2 . for example if 101 from Var1 present in Var2 or not. similarly... (5 Replies)
Discussion started by: nikesh29
5 Replies

6. UNIX for Dummies Questions & Answers

[Solved] How to extract integer out of a string?

Input: XXX:1,XXX:3,XXX:3 Output: A=1 B=3 C=3 Below code is what i do currently. However it doesn't work out for all cases. As some times the last digit extracted is giving me error. It cant be used for arithmetic computation. Any better methods out there? If possible, can you... (9 Replies)
Discussion started by: bananamen
9 Replies

7. UNIX for Dummies Questions & Answers

[Solved] Length of each string

Hi I have a file which has sequences which look like this >String1 aqwertrtrytytyuuijhgddfghhhghhgjhjhhsswekrkmygppdslxmvbnhkwqalldrtjbllnlnlnnnvc >String2 qwwerrtyuiopasdfghjmnbvfklzxerbvcwghjjkoowwqerrtggbddqsdfgaqwcxzakjtyugfsdefrtgyhujiknbbbbcdcdcxsxsx zxzxcvcfcdcg >String3... (5 Replies)
Discussion started by: sa@@
5 Replies

8. Shell Programming and Scripting

[Solved] String integer comparison

I am trying to execute something like this file=/tmp/test.txt firstline=$(head -n 1 $file) value=`echo $firstline | cut -d'=' -f2` if then echo true fi i read the first line of a file, cut to the numeric value in the first line and check if it greater than 2 but for some... (11 Replies)
Discussion started by: madhan_dc
11 Replies

9. Shell Programming and Scripting

[Solved] How to get file name which contains certain string?

Hi Gurus, I need find which file contains certain string in one directory. when using cat * |grep "string", I can get the string name but no file name displayed. I am wondering if there is any option I can use to get which file contains this certain string. Thanks in advance. (3 Replies)
Discussion started by: ken6503
3 Replies

10. Shell Programming and Scripting

[Solved] Last occurrence of a string

I apologize if it was asked before but I couldn't find something related. I want to replace 2 strings in a file e.g pwddb=Lar1wod (need to replace string after =) pwdapp=Wde2xe (need to replace string after =) AND in same file want to find last occurrence of a string (SR2-134561),... (2 Replies)
Discussion started by: J_ang
2 Replies
MEWENCODE(1)                                                  General Commands Manual                                                 MEWENCODE(1)

NAME
mewencode, mewdecode, mewcat - MIME encoder/decoder SYNOPSIS
mewencode [-options] [infile [outfile]] mewdecode [-options] [infile [outfile]] mewcat [-options] [infile] DESCRIPTION
The mewencode utility encode/decode MIME objects. The options are as follows: -e Encoding. -d Decoding. -8 See if any 8bit characters are contained. -b MIME base64 en/decoding. -q MIME quoted-printable en/decoding. -g MIME gzip64 en/decoding(not yet specified in RFC). -z The same as -g. -u Uudecoding. -l length Line length into which base64/quoted-printable/gzip64 encoding truncate. -t On base64/gzip64 encoding, local newline is treated as CRLF. On base/gzip64 decoding, any newline is translated into local new- line. Specify this option only when the input is a line based object(e.g. Content-Type: is text/plain or application/postscript). -h Display this help message. -v Display the version. 4th Berkeley Distribution March 17, 2001 MEWENCODE(1)
All times are GMT -4. The time now is 03:46 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy