Desired output.txt for reading txt file using awk?
Dear all,
I have a huge txt file (DATA.txt) with the following content [1]. From this txt file, I want the following output [2] using some shell script.
Any help is greatly appreciated.
Greetings,
emily
[1] DATA.txt (snippet of the huge text file)
[2] Output
Hello,
I am new to shell scripting, and I am trying to create a script that reads an input like the following
firstname:lastname:age
firstname:lastname:age
firstname:lastname:age
in a text file. I have a 2 part question. First how do I open the file in a shell script. And then how can... (7 Replies)
Hi all,
Iam trying to sort the contents of the file based on the position of the file.
Example:
$cat sample.txt
0101020060731 ## Header record
1c1 Berger Awc ANP20070201301 4000.50
1c2 Bose W G ANP20070201609 6000.70
1c2 Andy CK ANP20070201230 28000.00... (3 Replies)
hi to all
im having some 20,000 files in that im having some contents say the tabulation of biophysics lab readings ... and i want read tat file and look into tat wether a number say -18.90 is there r not .. and if there print tat no wit file name beside
thank you:D (1 Reply)
Hi,
I have already read a lot of posts on sending attachments in unix...but none of them were of help for my problem...so here goes..
i wanna attach a text file and send to a mail id..used the following code :
uuencode "$File1" "$File1" ;|mail -s "$Mail_sub" abc@abc.com
it works... (2 Replies)
HI guys,
I have created a script to read 1 column in a csv file and then place it in text file.
However, when i checked out the text file, it is not in a column format...
Example:
CSV file contains
name,age
aa,11
bb,22
cc,33
After using awk to get first column
TXT file... (1 Reply)
Hi,
I have a .txt file which contains the x, y and z co-ordinates of particles which I am trying to cast for a particular compound. The no. of particles present is of the order of 2 billion and hence the size of the text file is of the order of a few Gigabytes. The particles have been casted layer... (5 Replies)
This is appending a column.
My question is fairly simple. I have a program generating data in a form like so:
1 20
2 22
3 23
4 12
5 43
For ever iteration I'm generating this data. I have the basic idea with cut -f 2 fileA.txt | paste -d >> FileB.txt ???? I want FileB.txt to grow, and... (4 Replies)
Dear Shell scripters,
I have a small code which copy the txt files from some destination to file name OutPutFile.
I want to modify this script to introduce several constant.
The string it is reading is like
... (2 Replies)
I want to add/append the info in the following format to my.txt file.
20130702|abcd20130702.txt FN|SN|DOB
I tried the below script but it throws me some exceptions.
<#!/bin/sh
dt = date '+%y%m%d'members;
echo $dt+|+members+$dt;
/usr/bin/awk -f
BEGIN { FS="|"; OFS="|"; } { print... (6 Replies)
Hi dears
i have text file like this:
INPUT.txt
001_1_173 j nuh ]az
001_1_174 j ]esma. nuh ]/.xori
.
.
. and have another text
like this
TABLE.txt
j j
nuh word1... (6 Replies)
Discussion started by: alii
6 Replies
LEARN ABOUT DEBIAN
madwimax
madwimax(8)madwimax(8)NAME
madwimax - driver for mobile WiMAX equipment based on Samsung CMC-730
SYNOPSIS
madwimax [OPTIONS]
DESCRIPTION
madwimax is an experimental reverse-engineered linux driver for mobile WiMAX (802.16e) devices based on Samsung CMC-730 chip. These devices
are currently supported:
o Samsung SWC-U200
o Samsung SWC-E100
o Samsung SWM-S10R (it is built in Samsung NC-10 netbook)
The driver is completely user-space. It requires libusb-1.0 and TUN/TAP driver to work.
OPTIONS -d, --daemonize
Daemonize after startup.
--device=VID:PID
Specify the USB device by VID:PID combination.
-e FILE, --event-script=FILE
Specify path to the event script.
--exact-device=BUS/DEVICE
Specify the exact USB BUS/DEVICE (use with care!).
-f, --detach-dvd
Detach pseudo-DVD kernel driver on startup.
-h, --help
Display help.
-l FILE, --log-file=FILE
Write log to the specified FILE instead of the other methods.
-o, --diode-off
Turn off the diode (diode is turned on by default).
-q, --quiet
Switch off logging.
-V, --version
Print the program version number.
-v, --verbose
Increase the log level.
--ssid=SSID
Specify service set identifier, or SSID, which is a friendly name that identifies a particular 802.16e wireless network.
EXIT STATUS
0 Success
1 Failure (syntax or usage error; hardware error; underlying software error; unexpected error).
BUGS
See the madwimax issue tracker: <http://code.google.com/p/madwimax/issues/list>
AUTHOR
Written by Alexander Gordeev, <mailto:lasaine@lvk.cs.msu.su>
RESOURCES
Main web site: <http://code.google.com/p/madwimax/>
COPYING
Copyright (C) 2008-2009 Alexander Gordeev. Free use of this software is granted under the terms of the GNU General Public License (GPL).
27 September 2009 madwimax(8)