10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
I'm trying to parse the to_addr field of emails and split it into individual email addresses. The idea is to split using the comma character (,):
These two first approach work:
$ field="'Paul FOO' <paul@foo.com>, Andrew FOO <andrew@foo.com>"
$ IFS=, read -r -a array <<< "$field";... (4 Replies)
Discussion started by: chebarbudo
4 Replies
2. UNIX for Advanced & Expert Users
Hello All,
I have the following input file that i'm trying to parse:
10.0.011.40
hadoop 15526 15524 0
hadoop 15528 15526 0
hadoop 19747 4018 1
10.0.081.227
hadoop 2862 2861 0
hadoop 2864 2862 0
hadoop 12177 14376 1
I'm trying to get this in my output file:
10.0.011.40 15526 15528... (2 Replies)
Discussion started by: ramky79
2 Replies
3. Shell Programming and Scripting
I would like to setup a script that pulls in time/date in two seperate columns, and then name the other columns as listed below:
Column1=Art/TJ output
Column2=Art/TJ output
Column3=TJ output
column4=Art output
Column5=If time/date past 12:00 noon -fail
Colume6=If time/date before... (1 Reply)
Discussion started by: walnutpony123
1 Replies
4. Shell Programming and Scripting
Hello can anyone help me parse this line.
<tr><td>United States of America</td><td>Dollar</td><td>43.309</td></tr><tr><td>Japan</td><td>Yen</td><td>0.5579</td></tr>
the line above did not break.
so i would like to have a result like this
United States of America
Dollar
43.309
Japan... (3 Replies)
Discussion started by: doomsayer16
3 Replies
5. Shell Programming and Scripting
Hi
I'm just messing around with bash and trying to learn it because I have a course next semester dealing with OS design where we need to know how to use SSH client and either bash or ksh. I've never done shell scripting before.
I just started today and I was wondering how parsing files... (1 Reply)
Discussion started by: mehungry
1 Replies
6. Shell Programming and Scripting
Hi ,
I have a config _file that has 3 columns (Id Name Value ) with many rows . In my bash script i want to be able to parse the file and do a mapping of any Id value
so if i have Id of say brand1 then i can use the name (server5X) and Value (CCCC) and so on ...
Id Name ... (2 Replies)
Discussion started by: nano2
2 Replies
7. Shell Programming and Scripting
Hi all!
Looking for some help parsing filenames in bash. I have a directory full of files named "livingroom-110111105637.avi". The format is always date and time (yymmddhhmmss). I'm looking to parse the filenames so they are a little more easily readable. Maybe rename them to... (4 Replies)
Discussion started by: mtehonica
4 Replies
8. Shell Programming and Scripting
Looking for a little help parsing some command line arguments in a bash script I am working on, this is probably fairly basic to most, but I do not have much experience with it.
At the command line, when the script is run, I need to make sure the argument passed is a file, it exists in the... (3 Replies)
Discussion started by: Breakology
3 Replies
9. Shell Programming and Scripting
Hi all:
I have a directory where all of the subdirectories are named by the convention "images_#1:#2_Date." My goal is to get an array for each subdirectory that has the structure (#1,#2, int). I am able to use awk to print each subdirectory's values, but cannot figure out how to get them into an... (6 Replies)
Discussion started by: aefskysa
6 Replies
10. Shell Programming and Scripting
I need help with a perl parsing script. I have some error logs on a windows machine that I need to parse from a text file, but I know nothing about perl. I usually run this bash script on my linux box and it does just what I need. How would I do the same thing with perl and port it to my windows... (2 Replies)
Discussion started by: cstovall
2 Replies