10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm trying to parse the website, finance.yahoo.com/q?s=ge&ql=1, and retrieve the info between <span id="yfs_l84_ge">18.98</span>, so 18.98.
What would be the best way to go about this in a bash script?
Any help or suggestions will be much appreciated.
Thanks! (2 Replies)
Discussion started by: mayson
2 Replies
2. Shell Programming and Scripting
Input File
Information about each HBA:
HBA UID: 20:00:00:00:C9:9A:62:88:10:00:00:00:C9:9A:62:88
Server Name: 20:00:00:00:C9:9A:62:88:10:00:00:00:C9:9A:62:88
Server IP Address: UNKNOWN
HBA Model Description:
HBA Vendor Description:
HBA Device Driver... (2 Replies)
Discussion started by: greycells
2 Replies
3. Shell Programming and Scripting
Hello all, I am relatively new to linux and bash scripting. I have what seems to be a simple question but I'm having trouble finding the answer.
The question is what is the difference between the variables $@ and $*. I've seen them both used in the same context, and I've tried a number of... (4 Replies)
Discussion started by: nicthu
4 Replies
4. Shell Programming and Scripting
Hello,
I'm just getting started with BASH programming. I would like to write a script to solve a file renaming problem I have. I received a directory containing a collection (>2000) of files whose names are in DOS 8.3 format, and woild like to rename the filenames to a longer and more... (8 Replies)
Discussion started by: polomora
8 Replies
5. Shell Programming and Scripting
I need some help loading an array. I have two unique delimiters, but I keep running into recursion.
#!/usr/bin/perl
$INFILE="/root/scripts/data.txt";
$pat1="SCRIPT####";
$pat2="SCRIPT#echo";
$flag=0;
$inc=0;
$chunk="";
open(INFILE,"<$INFILE")|| die;
while(<INFILE>) {
if... (2 Replies)
Discussion started by: s_becker
2 Replies
6. Shell Programming and Scripting
Hi,
I am doing some data parsing for some economics research. I was recently exposed to shell script and am brand new to awk. I have a large csv file (like 10G) and I would like to make it a lot smaller with awk, but it is a bit tricky for me and I haven't been able to get it yet. I would... (5 Replies)
Discussion started by: EconResearch
5 Replies
7. Shell Programming and Scripting
Hi There,
First time poster here. I've got a parsing question and have a solution but am sure there is a much better way of doing this with just awk. My knowledge of awk is pretty limited so hope someone out there can give me a better solution. Here's the problem, I'm receiving a file from a... (2 Replies)
Discussion started by: little_happosai
2 Replies
8. UNIX for Dummies Questions & Answers
I have a file that reads like this:
name:john
name:bill
name:james
phone:123
phone:456
phone:789
i would like change the file so it appears like this:
name:john
phone:123
name:bill
phone:456
name:james
phone:789
any help is greatly appreciated! (1 Reply)
Discussion started by: chknstrp
1 Replies
9. Shell Programming and Scripting
Hi Guys,
I was wondering if you could help me out -
I have a directory /home/users/datafiles/ which contain files "dat dd-mm-yy.xls"
I am trying to write a script which does the following -
(1) loops through all the files
(2) retrieves the dd-mm-yy string and converts it into a... (12 Replies)
Discussion started by: muser
12 Replies
10. UNIX for Dummies Questions & Answers
How would I split a file based on the location of a string, basically I want all entries above the string unix in this example
1
2
3
4
unix
5
6
7
Thanks,
Chuck (3 Replies)
Discussion started by: 98_1LE
3 Replies