9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I've input as ,
abcd|
ef
123456|
78|
90
Desired output as,
abcdef
1234567890
Anyone please give the solution. (5 Replies)
Discussion started by: jinixvimal
5 Replies
2. Shell Programming and Scripting
Good day all.
I have the following entries of data in a file in a column, however, I need this data written on a single line with several parameters in a different order.
Current format:
Treatment
,parmeter1=value
,parmeter2=value
,parmeter3=value
,parmeter4=value... (7 Replies)
Discussion started by: BRH
7 Replies
3. Shell Programming and Scripting
I have a text file delimited by commas, with three fields (no " marks).
I want to use awk to create a fourth field which is equal to the line number + field 1 + .txt
I've searched this forum and found the following
nawk -v OFS=';' '{print $0, FNR}' myFile
Which I've amended to change the... (2 Replies)
Discussion started by: b.hamilton
2 Replies
4. Shell Programming and Scripting
HI all,,
I hve defined something like
set data = /data/2012/text
while using
sed 's/$data//g'
I am getting error as:I understand this is due to / slash,but is there any way out of it....
sed: -e expression #1, char 12: unknown option to `s'
Thakns in adv. (6 Replies)
Discussion started by: Indra2011
6 Replies
5. Shell Programming and Scripting
Hi all,
I have the following piece of code which reformats a file but the part that isn't working converts a date from dd mmm ccyy format to 2 fields containing dd/mm/ccyy,ccyy-mm-dd hh:mm:ss.000000
This is for a DB2 load file. The problem I have is that the input dd values (the dd variable... (2 Replies)
Discussion started by: dazedandconfuse
2 Replies
6. Shell Programming and Scripting
Hi there,
After lots of reading I figured out how to use sed to parse my file.
This file is called services.txt:
00a1:ffff0000:0018:01f4:1:477
BravaNL
00a2:ffff0000:0018:01f4:1:471
MAX
00a3:ffff0000:000b:01f4:1:390
HaberTürk... (5 Replies)
Discussion started by: MastaG
5 Replies
7. Shell Programming and Scripting
I have file which contains around 5000 lines.
The lines are fixed legth but having no delimiter.Each line line contains nearly 3000 characters.
I want to delete the lines
a> if it starts with 1 and if 576th postion is a digit i,e 0-9
or
b> if it starts with 0 or 9(i,e header and footer)
... (4 Replies)
Discussion started by: millan
4 Replies
8. Shell Programming and Scripting
i'm new to shell scripting and have a problem please help me
in the script i have a nawk block which has a variable count
nawk{
.
.
.
count=count+1
print count
}
now i want to access the value of the count variable outside the awk block,like..
s=`expr count / m`
(m is... (5 Replies)
Discussion started by: saniya
5 Replies
9. Shell Programming and Scripting
Dear Friends,
I am trying to replace the following pattern , But I cant understand how to express the RE in this case . Please help me with a sed command to replace .
(Address = 918h : Initial = 0000h : RD /WR
(Address = 91Ah : Initial =... (2 Replies)
Discussion started by: user_prady
2 Replies