10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Extremely new to Perl scripting, but need a quick fix without using TEXT::CSV
I need to read in a file, pass any delimiter as an argument, and convert it to bar delimited on the output. In addition, enclose fields within double quotes in case of any embedded delimiters.
Any help would... (2 Replies)
Discussion started by: JPB1977
2 Replies
2. Shell Programming and Scripting
Hi one of the output of the command is as below
# sed -n "/CCM-ResourceHealthCheck:/,/---------/{/CCM-ResourceHealthCheck:/d;/---------/d;p;}" Automation.OutputZ$zoneCounter | sed 's/$/<br>/'
Resource List : <br>
*************************** 1. row ***************************<br>
... (2 Replies)
Discussion started by: vivek d r
2 Replies
3. Shell Programming and Scripting
Hi,
I have a No Delimiter variable length text file with following schema -
Column Name Data length
Firstname 5
Lastname 5
age 3
phoneno1 10
phoneno2 10
phoneno3 10
sample data - ... (16 Replies)
Discussion started by: Gaurav Martha
16 Replies
4. Shell Programming and Scripting
Hi,
I am facing issue while reading data from a file in UNIX. my requirement is to compare two files and for the text pattern matching in the 1st file, replace the contents in second file by the contents of first file from start to the end and write the contents to thrid file.
i am able to... (2 Replies)
Discussion started by: seeki
2 Replies
5. Shell Programming and Scripting
Hi All,
I have a file with contents :
cat >file1.sh
qw^A34^Aer
the command i am using is:
cut -f1,2,3 -d"^A" file1.sh
which gave output as:
qw^A34^Aer
and the command
cut -f2 -d"^A" file1.sh
gave an output :
A34
i need the output as : (15 Replies)
Discussion started by: gsandhya31
15 Replies
6. UNIX for Dummies Questions & Answers
Give shell script....which takes two file names as input and compares the contents, is both are same delete second file's contents.....
I try with "diff"...... but confusion how to use "diff" with if ---else
Thanking you (5 Replies)
Discussion started by: krishnampkkm
5 Replies
7. Shell Programming and Scripting
hi all,
i have some file whoes contents are
0 /home8/mc09ats/UnixCw/a1
1 /home8/mc09ats/UnixCw/a2
2 /home8/mc09ats/b3
3 /home8/mc09ats/UnixCw/d1
i want to seperate the content following way...
fileindex= 0
filepath=... (4 Replies)
Discussion started by: AbhijitIT
4 Replies
8. UNIX for Dummies Questions & Answers
Hi Experts,
Im a new bee for scripting,
I would ned to do the following via linux shell scripting, I have an application which throws a log file, on each action of a particular work with the application, as sson as the action is done, the log file would vanish or stops updating there, the... (2 Replies)
Discussion started by: pingnagan
2 Replies
9. Shell Programming and Scripting
i want to write a script in Bash Shell that accept a list of files.an example of file is
4334:234
322.345:32
234:3452 e.t.c
each file only contain lines like num1:num2
i want to count the lines of this file and find the summary of X=4334+322.345+234 and Y=234+32+3452 (1 Reply)
Discussion started by: nektarios4u
1 Replies
10. Shell Programming and Scripting
Hi,
So I have a text file which I want to separate into separate text files. I would use the split command but the problem here is that the text file is separated by delimiters. For example:
blah
blah blah
------
more text
-----
and some more text
So basically the first part should be... (4 Replies)
Discussion started by: eltinator
4 Replies