08-04-2008
Really need to see a section of the log file
From what you gave, it would be difficult to write commands. For instace, does all of that information exist on one line or in some kind of 'block'? And, what is the desired output format?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I need to select only those records having a non zero record in the first column of a comma delimited file.
Suppose my input file is having data like:
"0","01/08/2005 07:11:15",1,1,"Created",,"01/08/2005"
"0","01/08/2005 07:12:40",1,1,"Created",,"01/08/2005"... (2 Replies)
Discussion started by: shashi_kiran_v
2 Replies
2. Shell Programming and Scripting
I'll try explain this as best I can. Let me know if it is not clear.
I have large text files that contain data as such:
143593502 09-08-20 09:02:13 xxxxxxxxxxx xxxxxxxxxxx 09-08-20 09:02:11 N line 1 test
line 2 test
line 3 test
143593503 09-08-20 09:02:13... (3 Replies)
Discussion started by: jesse
3 Replies
3. Shell Programming and Scripting
Hi all!
A bit of background: I am trying to create a script that formats SQL statements. I have gotten so far as to add new lines based on certain match criteria like commas, keywords etc. In the process, I end up adding newlines where I don't want.
For example: substr(colName, 1, 10)... (3 Replies)
Discussion started by: jayarkay
3 Replies
4. Shell Programming and Scripting
Guys,
I manages to get awk to search and print the files that I want to delete. However I am stuck on the delete portion.
Here is the command that I am using to fins these files.
find /usr/local/apache/conf/vhosts/ -type f | awk '/e$/'
The output is perfect. The files look like so:
... (4 Replies)
Discussion started by: jaysunn
4 Replies
5. Shell Programming and Scripting
I have a huge file (about 2 millions records) contains data separated by “,” (comma). As part of the requirement, I can't change the format. The objective is to remove some of the records with the following condition. If the 23rd field on each line start with 302 , I need to remove that from the... (4 Replies)
Discussion started by: jaygamini
4 Replies
6. Shell Programming and Scripting
Hi All,
I have following input file. I wish to retain those lines which match multiple search criteria. The search criteria is stored in a variable seperated from each other by comma(,).
SEARCH_CRITERIA = "REJECT, DUPLICATE"
Input File:
ERROR,MYFILE_20130214_11387,9,37.75... (3 Replies)
Discussion started by: angshuman
3 Replies
7. Shell Programming and Scripting
Hello
I'm using cygwin and wouldlike extract information from an xml file according specific values, but don't know how.
Let's say in a file content looks like this:
<tab>
SURNAME=Mustermann
NAME=Max
CUSTOMER SINCE= 18.01.2000
ADDRESS=Birmingham
... (2 Replies)
Discussion started by: witchblade
2 Replies
8. Shell Programming and Scripting
Hi Guru's,
I am new to unix scripting. I have a huge file with user details in it(file2) and I have another file with a list of users(file1). Script has to search a user from file1 and get all the associated lines from file2.
Example:
fiel1:
cn=abc
cn=DEF
cn=xyx
File 2:
dn:... (10 Replies)
Discussion started by: Samingla
10 Replies
9. Shell Programming and Scripting
Hello All,
I have to write a script which will search for diffrent patterns like "Struck" "Out of Memory" , etc from a log file in Linux box's.
Now I will be executing a cron job to find out the results by executing the script once in every 30 minutes.
suppose time is
14-04-29:05:31:09
So I... (3 Replies)
Discussion started by: Shubhasis Mathr
3 Replies
10. UNIX for Dummies Questions & Answers
Hi All,
I have an issue which I'm trying to understand a way of doing, I have several nodes which contain syslog events which I want to force trigger an email initially (eventually leading to another method of alerting but to start with an email).
Basically the syslog file will have hours worth... (6 Replies)
Discussion started by: mutley2202
6 Replies
LEARN ABOUT OPENSOLARIS
c1541
c1541(1) General Commands Manual c1541(1)
NAME
c1541 - a stand alone disk image maintenance program
SYNOPSIS
c1541 [options] [image]
DESCRIPTION
c1541 is a stand alone program that can be used for D64, D71, D81, X64 and G64 disk image file maintenance. It is part of the VICE emula-
tor.
c1541 can be used both in interactive and batch mode. It will start in interactive mode if no images and no options are specified or if
one image is specified; when started in interactive mode, command line editing and command history are available.
Each command line option for use in batch mode has an interactive mode counterpart, that is shown in parenthesis.
-attach image (attach image)
attach image for use. All consequent commands in interactive mode will refer to this image.
-detach image (detach image)
detach image from c1541.
-format image (format image 'name,id')
format the disk image image with the specified label. image is created if it does not exist.
-delete image files... (delete files...)
delete files from image
-list image (list)
list directory of image.
-validate image (validate)
validate mage.
-copy image oldname1 [oldname2...] newname (copy oldname1 [oldname2...] newname)
concatenate oldname1, oldname2... into newname on image (can be used to copy files).
-create image dump ['descr'] (create image dump ['descr']
build image from raw dump file dump (i.e. convert from D64 to X64 file).
-tape image tapeimage [files...] (tape image tapeimage [files...])
transfer files from tapeimage to image (default is all files).
-read image 1541name [fsname] (read 1541name [fsname])
extract 1541name from the disk image into fsname (1541name by default) from image.
-extract image (extract).
extract all files from image.
-write image fsname [1541name] (write fsname [1541name])
write fsname to image as 1541name (fsname by default). (works with P00 files as well).
-block [drive:] [track] [sector] [disp] (block [drive:] [track] [sector] [disp])
show disk blocks in hex format.
-info image ['descr'] (info ['descr'])
show version information about image.
When more than one command is specified in batch mode, all of them are executed in the same order they have on the command line.
If you use - as a file name, it stands for stdin or stdout.
SEE ALSO
VICE(1), petcat(1)
AUTHORS
Teemu Rantanen <tvr@cs.hut.fi>
Ettore Perazzoli <ettore@comm2000.it>
Andreas Boose <boose@linux.rz.fh-hannover.de>
Jouko Valta <jopi@stekt.oulu.fi>
with improvements by
Olaf Seibert <rhialto@mbfys.kun.nl>
Gerhard Wesp <gwesp@cosy.sbg.ac.at>
VICE
January 1999 c1541(1)