10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
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
2. UNIX for Dummies Questions & Answers
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
3. UNIX for Dummies Questions & Answers
I have two files:
pgmname.ou1 - contains invoice data
pgmname.ou2 - contains unique file name for pgmname.ou1
I want to copy pgmname.ou1 to a file with the name specified in pgmname.ou2.
So if pgmname.ou2 has a line in it with the following data:
FILE.NAME.UNIQUE.csv
I want to:
cpy... (2 Replies)
Discussion started by: rjjv0208
2 Replies
4. UNIX for Dummies Questions & Answers
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
5. Shell Programming and Scripting
Hello All,
I have a file that has following contents ...
config INY_DEBUG
bool "Debug"
default n
source mod/ati/Kconfig
source mod/spi/Kconfig
source mod/kgi/Kconfig
source mod/mei/Kconfig
source mod/cai/Kconfig
source mod/stormi/Kconfig
I have a shell variable ... (6 Replies)
Discussion started by: anand.shah
6 Replies
6. Shell Programming and Scripting
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
7. Shell Programming and Scripting
Is it possible to decode a base 64 string in linux or unix. If so, related commands or reference notes would be really helpful. (1 Reply)
Discussion started by: chandu123
1 Replies
8. Shell Programming and Scripting
Why does this work:
awk -v s="this is a string" 'index($0, s)' file
while the following doesn't?
s="this is a string"
awk -v s=$s 'index($0, s)' file
How do I search for a string with spaces in it?
---------- Post updated at 01:18 AM ---------- Previous update was at 01:15 AM ----------... (0 Replies)
Discussion started by: locoroco
0 Replies
9. Shell Programming and Scripting
In the kornshell you can get the length of a string with
$ x=abc
$ print ${#x}
3
If the current locale is a multibyte locale, like de_AT.UTF-8, you get the length of the string in bytes, not characters:
$ x=für
$ print ${#x}
4
Is there an easy way to get the length of a... (8 Replies)
Discussion started by: hergp
8 Replies
10. Shell Programming and Scripting
i have two files as
file1:
1
2
3
file2:
a
b
c
and the output should be:
file3:
1~a
2~b
3~c (1 Reply)
Discussion started by: mlpathir
1 Replies