10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
I have a log file, which i have divided into 14 files using csplit, the file looks like below
test-000000
test-000001 #and so on until 14
now I want all the 14 files generated to be renamed as the some part of test in first line of the file how can i eliminate the unwanted text?
sample... (5 Replies)
Discussion started by: Sekhar419
5 Replies
2. Shell Programming and Scripting
I have input data looks like this which is a part of a csv file
7,1265,76548,"0102:04"
8,1266,76545,"0112:04"
I need to make the output data should look like this and the output data will be part of text file:
7|1265000 |7654899 |A|
8|12660000 |76545999 |B|
The logic behind the... (6 Replies)
Discussion started by: RJG
6 Replies
3. Shell Programming and Scripting
Hello friends,
I have a file as follows:
"empty line"
content1
content2
content3
content1
content2
content3
content1
content2
content3
It starts with an empty line,
how can i get a csv like this: (12 Replies)
Discussion started by: kraterions
12 Replies
4. Shell Programming and Scripting
Legends,
I have following entries in a file.
I want to toggle the entry of 2nd column. TRUE/FALSE
i tried using perl -p -i -e
but the problem is, if instead of "tab" space after 1st column, there is a character or multi character space then this won't work.
perl -p -i -e... (6 Replies)
Discussion started by: sdosanjh
6 Replies
5. Shell Programming and Scripting
Hi,
Iam a novice to unix shell scripting, need a help from you guys.The scenario is as follows, i have the following Text file.
order No Company Category
21 aaa A
24 aaa A
87 aaa B
98 aaa B
23 abc A
45 abc B
25 bbb A
76 wes A
66 ... (6 Replies)
Discussion started by: tech_frk
6 Replies
6. Solaris
Hi,
I want to parse an XML File using Shell Script preferably by using awk command,
I/P file is :
<gn:ExternalGsmCell id="016P3A">
<gn:attributes>
<gn:mnc>410</gn:mnc>
<gn:mcc>310</gn:mcc>
<gn:lac>8016</gn:lac>
... (2 Replies)
Discussion started by: tech_frk
2 Replies
7. Shell Programming and Scripting
Hi folks,
Need some help with XML to text file parsing , the following is the content of the XML File.
<xn:SubNetwork id="SNJNPRZDCR0R03">
<xn:MeContext id="PRSJU0005">
<xn:VsDataContainer id="PRSJU0005">
<xn:attributes>
... (6 Replies)
Discussion started by: tech_frk
6 Replies
8. Shell Programming and Scripting
Hi everyone,
I have a program that produces postscript files on the fly
The color of the files produced are in black and white
I want to change the text color of postscript file as the file is being produced without having to manually go into the ps file and change it myself.
Any Ideas?... (5 Replies)
Discussion started by: walforum
5 Replies
9. Shell Programming and Scripting
Hi all,
I need to insert new text and change existing text in a file. For that I used the below line in the command line and got the expected output.
sed '$a\
hi...
' shell > shell1
But I face problem when using the same in script. It is throwing the error as,
sed: command garbled:... (4 Replies)
Discussion started by: iamgeethuj
4 Replies
10. UNIX for Dummies Questions & Answers
Hi this is quite simple i am sure but without using awk or sed i need to add text to the top of a file this is what i have got so far
#!bin/bash
echo "Add text to top of file"
read line
echo $line >> file1
This adds the text to the bottom of the file can some1 please help cheers (7 Replies)
Discussion started by: meadhere
7 Replies