12-07-2005
awk should do it...
If your input file is 'test' you can do it without vi'ing it - which has to be easier. Try this:
awk -F',' '{ print $1",Thu,Fri,Sat,Sun,"$3","$4","$5","$6 }' test > test1
where test1 is an output file - which looks like this:
12/01/05,Thu,Fri,Sat,Sun,tsmpc2,86,2,2
12/02/05,Thu,Fri,Sat,Sun,tsmpc2,94,5,1
HTH,
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hey all,
i am trying to connect my mac to my sony DVD changer so that i can control one aspect of it with any kind of shell script or program.
the DVD player allows you to plug in a PS/2 keyboard to navigate it's on screen menu. what i want to do is use my mac to navigate my own menus, then... (0 Replies)
Discussion started by: drzoomn
0 Replies
2. UNIX for Dummies Questions & Answers
A long time ago, I frequently used a small X11 utility that allows you to manage multiple systems at the same time.
It worked by opening a small window that had a button you used to "Add" X Clients to it. These would be xterms on different systems for example.
You would then type inside that... (5 Replies)
Discussion started by: Alon.Albert
5 Replies
3. Shell Programming and Scripting
Hello,
I have a ksh which can be run interactively with read etc waiting for input and so forth.
Do you have an idea how can I invoke the ksh and supply a sequence of keystrokes that will feed the executable flow so that it will automatically run as if someone actually walked through one prompt... (7 Replies)
Discussion started by: gio001
7 Replies
4. OS X (Apple)
I'm trying to find a good keylogger that doesn't come with any viruses. It happens to me several times that my browser crashes when I am in article writing or some other thing, very annoying. Thus, I need a keylogger to keep all my keystroke recorded. I 'v tried some, like the Aobo Mac Keylogger,... (1 Reply)
Discussion started by: Bluerosen
1 Replies
5. Programming
I'm writing a command shell, and I want to be able to detect when the user presses an arrow key (otherwise it just prints [[A, [[B, etc.). I know it's relatively easy (although somewhat more time-consuming) to detect keystrokes in noncanonical mode, but I've noticed that the bash shell detects... (4 Replies)
Discussion started by: Ultrix
4 Replies
6. UNIX for Advanced & Expert Users
The third-party ERP system used by our company has no idle-out facility and we sometimes have issues because users simply walk away from their computers and leave sessions logged in for hours or even go home without logging out. (We are in a factory environment so it is hard to raise the care... (7 Replies)
Discussion started by: Wayne Ivory
7 Replies
7. Shell Programming and Scripting
We have a FORTRAN program that creates a report for our client. The client makes a number of selections as to what will appear on the report. However, the client has to repeat this everytime the report is run. I am trying to find a way to record what they've selected (their keystrokes) in UNIX and... (22 Replies)
Discussion started by: KathyB148
22 Replies
8. UNIX for Advanced & Expert Users
The last few weeks I've had a problem with Comcast in San Francisco (anyone else sharing the same issue ? Please share !)
During the late afternoon throughout early morning hours I see a high amount of dropped packets and increased latency when pinging my favorite destinations, like 8.8.8.8.
... (1 Reply)
Discussion started by: SandmanCL
1 Replies
9. Shell Programming and Scripting
Hello,
Need help using egrep
file format:
test.gz
Date, time, , number 1, number 2, counter...
20130618,912154, ,009912345678,911111111111,10000, , ,abc
20130618,982148, ,009101373810,034028791952294,8999, , ,gh
Want to extract number1 OR number2 records in files based on a two or... (8 Replies)
Discussion started by: vegasluxor
8 Replies
LEARN ABOUT DEBIAN
rzxtool
rzxtool(1) Emulators rzxtool(1)
NAME
rzxtool - Modify Sinclair ZX Spectrum input recording files
SYNOPSIS
rzxtool [-dblock number] [-eblock number,filename] [-iblock number,filename] [-u] rzxfile [outfile]
DESCRIPTION
rzxtool allows some simple modifications to be made to Sinclair ZX Spectrum input recording files: blocks can be removed, snapshot data can
be extracted or snapshots can be inserted into the file. The file can also be uncompressed.
OPTIONS
-dblock number
The block number specified will be deleted from the file. Block numbers start at zero and ignore any "creator information" blocks in
the file. The modified file will be written to outfile.
-eblock number,filename
The snapshot in the specified block number will be written to the specified filename. All snapshot formats supported by libspec-
trum(3) are available.
-iblock number,filename
The snapshot specified in filename will be added to the file at the position specified by block number.
-u
When outputting an RZX file, this option causes the input recording data to be output uncompressed; if this option is not given, the
data will be compressed using zlib(3).
rzxfile
specifies an input recording file whose contents are to be modified.
outfile
specifies where the modified input file should be written.
BUGS
None known
SEE ALSO
fuse(1), fuse-utils(1), rzxcheck(1), rzxdump(1), zlib(3)
The comp.sys.sinclair Spectrum FAQ, at
http://www.worldofspectrum.org/faq/index.html.
AUTHOR
Philip Kendall (philip-fuse@shadowmagic.org.uk).
Version 1.0.0 16th December, 2010 rzxtool(1)