10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Unix File is pipe delimited with 17 fields. We may get extra pipes in data also.
We may get \n char (1 or more \n in one field or multi fileds) in data in any field.
Need to replace \n true ( line separator) with 'space and bell char space' chars (' \a ') Not data \n.
Input:... (1 Reply)
Discussion started by: rajeshkumare
1 Replies
2. Shell Programming and Scripting
Hi,
i have a huge file that need to check for a pattern that occur more than once in a line like below:-
#lkk>cd-m>A0DV0>192.134.1.1 blablabladsdjsk
jshdfskfslfs
#lqk>cd-m>A1SV0>192.14.11.1 blalalbnalablab
balablablajakjakjakja
#pldqw>sf-w>PH67FR>168.55.1.1 balablabala... (5 Replies)
Discussion started by: redse171
5 Replies
3. Shell Programming and Scripting
Hi,
My requirement is, to find the word "data" and replace the starting of each line with # using sed.
/dev/datavg/xxx /xxx ext3 defaults 1 2
/dev/datavg/yyy /yyy ext3 defaults 1 2
result to be
#/dev/datavg/xxx /xxx ... (1 Reply)
Discussion started by: ksgnathan
1 Replies
4. Shell Programming and Scripting
Ultimate goal is to delete lines from before and after a block of lines in a given file. First attempt was something like this:
sed -e '1,/STARTUP/ d' inputfile.txt > outputfile.txt
but that deleted everything down to and including the line with STARTUP. I need to delete everything before... (6 Replies)
Discussion started by: edstevens
6 Replies
5. Shell Programming and Scripting
Dear users,
I have a file like this:
geometry,geometry_vertex_count,Id,strnum,platecode,datatype,dtnum,refnum,appearance,disappeara,color,geogdesc,datatype_ft_style,import_notes
"<LineString><coordinates>-130.6539,51.5103,0
-130.7708,51.6287,0
-130.8356,51.6832,0
-130.9211,51.7772,0... (5 Replies)
Discussion started by: Gery
5 Replies
6. UNIX for Dummies Questions & Answers
I am trying to create a script in UNIX BASH where I can change the string to dashes. This is part of a "hangman" game (not a homework assignment). Once the dashes are in place, I then need to add the letter to the new string (of dashes) based on where the letter is located. (ie The word is 'String'... (11 Replies)
Discussion started by: needsomehelp
11 Replies
7. Shell Programming and Scripting
hi All,
i want to add the single digit front of the line in the report file and string compare with pattern file.
patter file: pattern1.txt
pattern num
like 4
love 3
john 2
report file: report.txt
i like very much
but john is good boy
i will love u
so after execute... (9 Replies)
Discussion started by: krbala1985
9 Replies
8. Shell Programming and Scripting
I want to delete a line between selected lines using sed:
e.g. : Between "bus" to "pins", delete lines conaining "signal" word.
Input :
bus
direction
signal new
signal old
pins
signal ok
end
Desired Output:
bus
direction
pins
signal
end (4 Replies)
Discussion started by: nehashine
4 Replies
9. Shell Programming and Scripting
in vi editor I want to replace next line char by space
help me
eg:
input:
123
123
123
output:
123 123 123 (5 Replies)
Discussion started by: RahulJoshi
5 Replies
10. Shell Programming and Scripting
Hi,
I want to print particular chars in a string. for example
ie.,
consider " dear,. roopa$#09%~`';']" as the example string. Here, I want to print only alphanumeric chars..
suppose , if i want only alphanumeric... value would be "dear roopa09"
suppose , if i want some spl char(,) with... (2 Replies)
Discussion started by: balan_mca
2 Replies