10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need help to combine the first 7 character of firstname if it is longer than 7and combine with the first character of lastname.
ex: username lastname => usernaml
user lastname => userl
Thanks in advance. (10 Replies)
Discussion started by: xitrum
10 Replies
2. Shell Programming and Scripting
Hi,
I have the following requirement.
There will be following text/line in a file (eg: search-build.txt)
PRODUCT_VERSION="V:01.002.007.Build1234"
I need to update the incremental build number (eg here 007) every time I give a build through script. I am able to search the string and get... (4 Replies)
Discussion started by: drwatson_droid
4 Replies
3. Shell Programming and Scripting
Hi All,
My Input file contains:
Input.txt
Name|Marks
ABC|10
GHI|10
JKL|20
MNO|20
PQR|30
Output.txt
MARKS|NAME
10|ABC,GHI
20|JKL,MNO
30|PQR
Thanks in advance (4 Replies)
Discussion started by: kmsekhar
4 Replies
4. Shell Programming and Scripting
Hello Unix gurus,
how to concat 3 files content side by side .
i have 3 files
more report1.txt
select *from tab1 A JOIN tab1 B ON
more report2.txt
A.PK1=B.PK1 where
more report3.txt
A.AAA <> B.AAA or
A.BBB <> B.BBB or
A.CCC<> B.CCCC or
..
..
..
A.ZZZ <> B.ZZZ;
if i concatinate... (3 Replies)
Discussion started by: kanakaraju
3 Replies
5. UNIX for Dummies Questions & Answers
Hi, I'm trying to find the position of a series of numbers within a large text file. The numbers are separated by spaces.
This works fine:
type Huge_File.txt | gawk "{print index($0,"255")}"
But this does not:
type Huge_File.txt | gawk "{print index($0,"188 028 239 160 016 190 137... (4 Replies)
Discussion started by: Lemming42
4 Replies
6. Shell Programming and Scripting
Hello,
I have a list of tablespaces in oracle and I want to concatenate 'drop tablespace' on the left of each line and 'INCLUDING CONTENTS AND DATAFILES' on the right of each line.
Any idea how to do that?
many thanks.
PS: I tried to use excel and copy/paste it to vi. But I noticed many... (1 Reply)
Discussion started by: melanie_pfefer
1 Replies
7. Shell Programming and Scripting
hi
I have a file, I need to concatenate depening on the no of columns i need to concatenate.
for example i need to concatenate field1,filed34,field2( no of columns is not always 3, it can be any number of fields)
concat.ksh field1 field34 field2
how to achieve this, is there any argv ,argc... (10 Replies)
Discussion started by: markjason
10 Replies
8. Shell Programming and Scripting
Hello all
i have this simple loop that gets me every time the match of "<#" in my string
something like that :
my $str ="gggg<#nnnnn#>kkkk<#ssss#>llllll";
while($str =~m/<#/g){
print pos($str);
}
but now i like to get another pos in the same loop iteration , i will like to get the... (1 Reply)
Discussion started by: umen
1 Replies
9. Shell Programming and Scripting
HI all,
How to concat two strings in Shell scrpits
suppose
x=a
y=b
i want to display it as
ab
How to do it ?
Thanks.. (1 Reply)
Discussion started by: dhananjaysk
1 Replies
10. Shell Programming and Scripting
in my file, i like to search for a string and if there is a match then i want to replace it with someother string(like in windows wordpad).
i only know how to search for a pattern.... but i dont know how to replace it..
and
1). i think it is there in unix grep or some other commends... if... (6 Replies)
Discussion started by: sekar sundaram
6 Replies