Sponsored Content
Top Forums Shell Programming and Scripting newb at scripting how would I do this? Post 302558099 by ahamed101 on Thursday 22nd of September 2011 05:32:27 PM
Old 09-22-2011
Try this...
Code:
awk -F\" 'BEGIN{ printf("%-15s\t%-10s\t%-20s\t%-10s%-20s\t%-20s\t%-20s\t%-20s\t%-20s\t%-20s\n",
"Name","Number","Service Plan Name","Charge","Phone Daytime Usage","Phone Daytime Charges","Phone Evening Usage",
"Phone Evening Charges","Phone Weekend Usage","Phone Weekend Charges")} /Total/{next} /^"Name/{t=1;next} 
{if(t>0){printf("%-15s\t%-10s\t%-20s\t%-10s%-20s\t%-20s\t%-20s\t%-20s\t%-20s\t%-20s\n",$2,$4,$6,$7,$8,$9,$10,$11,$12,$13)}}' 
input_file

--ahamed
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

The biggest newb ever...

Hi, all you unix people. I am a pretty advanced windows user, but I am curious about unix. Is there any reason I should attempt to acquire some form of unix for my home computer system? What sort of things is unix useful for? Unix is open source, right? Assuming that to be the case, I infer that... (3 Replies)
Discussion started by: BoneMalone
3 Replies

2. UNIX for Dummies Questions & Answers

100% newb - please help

I run windows 2000 right now. I want to learn how to use unix/linux. How do i go about installing Unix/Linux? What's the easiest version to install? Where can i get it? Is my Hardware Compatable? How do i partition my Hd? HELP!!!!!:confused: (6 Replies)
Discussion started by: Rawdawg
6 Replies

3. UNIX for Dummies Questions & Answers

help for a newb

ok i just installed FreeBSD 4.8 on a computer i had lying around and it was working ok but then when i tried to set up KDE's xdm (kdm) i think i must have configured the login manager wrong because i cant login through the kdm and therefore i can log in to BSD at all?! please can someone help me... (5 Replies)
Discussion started by: h3x
5 Replies

4. UNIX for Dummies Questions & Answers

Newb question

I don't even know if this should go here but I just would like to know what this means: d0e45878043844ffc41aac437e86b602 I know absolutely nothin' about UNIX, and I found this in a SQL table in a board I run. Someone please tell me what that is in "normal" mode. Pardon me for my... (4 Replies)
Discussion started by: daeglin
4 Replies

5. UNIX for Dummies Questions & Answers

Ok I'm a Newb, Please Help

I am wanting to download the Linux Program. When i go to download it I see several things to download. What do i download exactly? Then what do I do to install it. Also I have partitioned my hard drive to make way for Linux on the other part to play with it, will any problems arise from this? I... (3 Replies)
Discussion started by: Seeto
3 Replies

6. Shell Programming and Scripting

Newb scripting question, I get the error script not found

This is probably a really simple problem, but goes easy on me I'm still a newb. The problem I have is that a script (we'll call it script.script) I edited won't run for some reason, I get the error "ksh: script.script: not found" The location of my script is as follows: /home/users/arkitech ... (3 Replies)
Discussion started by: Arkitech
3 Replies

7. UNIX for Dummies Questions & Answers

Newb here....Someone spying on me?

Hey all. I'm brand spankin' new here to the board. I'm also a novice at Unix. I've been using it for about 1 year now but I haven't really expanded my abilities since I learned the basics. I am in school and I mainly just use Unix to submit stuff to assignment directories and use it to compile my... (3 Replies)
Discussion started by: andre2000
3 Replies

8. Shell Programming and Scripting

newb help needed

hi all, im working on a script that needs to read in a file, search for a string of text within that file, and if the string is found, do something. so i know i need to use an if-then statement, but how do i test for the existence of a string within the file? any help would be greatly appreciated. (6 Replies)
Discussion started by: mdlearnest
6 Replies

9. Shell Programming and Scripting

Help a newb with sed?

So here is my problem: I need to do a sed search and replace on the following: variable_blah_STATUS replaced with "replace string". sed 's/variable_blah_STATUS/replace string/g' works great but there is a catch. The catch is that I need to check and not replace variable_blah_STATUS... (3 Replies)
Discussion started by: phreezr
3 Replies

10. HP-UX

Newb Help, need to image one HD to another

Hello, I am totally new to Unix We have a piece of test equipment, three of them actually, that run HP-UX 9.0 from like 1994. We had backup tapes with procedures to load the OS and our test software, but the 16-track tapes are corrupt now. HP will not support it, they dont have it anymore,... (11 Replies)
Discussion started by: Newball80
11 Replies
UMODEM(4)						   BSD Kernel Interfaces Manual 						 UMODEM(4)

NAME
umodem -- USB modem support SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file: device umodem device ucom Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): umodem_load="YES" DESCRIPTION
The umodem driver provides support for USB modems in the Communication Device Class using the Abstract Control Model. These modems are basi- cally standard serial line modems, but they are accessed via USB instead. They support a regular AT command set. The commands can either be multiplexed with the data stream or handled through separate pipes. In the latter case the AT commands have to be given on a device separate from the data device. The device is accessed through the ucom(4) driver which makes it behave like a tty(4). HARDWARE
Devices supported by the umodem driver include: o 3Com 5605 o Curitel PC5740 Wireless Modem o Kyocera AH-K3001V Mobile Phone(WILLCOM) o Kyocera WX320K Mobile Phone(WILLCOM) o Metricom Ricochet GS USB wireless modem o Sierra MC5720 Wireless Modem o Yamaha Broadband Wireless Router RTW65b o ELSA MicroLink 56k USB modem o Sony Ericsson W810i phone SEE ALSO
tty(4), ucom(4), usb(4) HISTORY
The umodem driver appeared in NetBSD 1.5. This manual page was adopted from NetBSD by Tom Rhodes <trhodes@FreeBSD.org> in April 2002. BUGS
Only modems with multiplexed commands and data are supported at the moment. BSD
November 22, 2006 BSD
All times are GMT -4. The time now is 12:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy