Dear community,
maybe I'm asking the moon , but I'm scratching my head to find a solution for it.
I have a file called query.out (coming from Oracle query), the file is like this:
What I would like to do is remove unneeded rows and chars (like CRLF) and have the following output to simplify my post analysis:
So, in the final output file I would like to have two lines reported in one row and other rows deleted (like --------------).
I have a '|' delimited file and want to remove all the records from the file if the date is greater than a year from sysdate. The layout of the file is as below -
xxxxxxxxxxxxxx|yyyyyy|zzzzzz|2009-12-27-00:00| 000000000|N
xxxxxxxxxxxxxx|yyyyyy|zzzzzz|2010-01-03-00:00| 000000000|N... (4 Replies)
I have a file like below and want to use awk to solve this problem. The record separator is ">". I want to look at each record section enclosed within ">". Find the row with the 2nd and 3rd columns being 0, such as
10 0 0
I need to take the first number which in this case is 10. Then... (15 Replies)
Hi,
I am not sure if this has already been asked (I tried the search but the search was too broad). Basically I want to remove rows based on another file.
So file1 looks like this (tab seperated):
HHN 3 5 5
HUJ 2 2 1
JJJ 3 1 1
JUN 2 1 3
I have another file (file2)... (2 Replies)
Sorry I made a mistake in my last post (output is suppose to be the opposite). Here is a revised post.
Hi,
I am not sure if this has already been asked (I tried the search but the search was too broad). Basically I want to remove rows based on another file.
So file1 looks like this (tab... (3 Replies)
Hi I need a way of removing rows from a txt file that are older than 30 days from today, going by the date in column 2, below is an example from my file. I have tried awk but don't have enough knowledge. I would really appreciate some help.
41982,15/07/2010,H833AB/0,JZ,288... (6 Replies)
I'm trying to move a large folder to an external drive but some files have these weird chars that the external drive won't accept.
Does anyone know any command of any bash script that will look through a given folder and remove any weird chars? (4 Replies)
Hello Everyone,
I am trying to find a way to take a .csv file with 7 columns and a ton of rows (over 600,000) and remove the entire row if the cell in forth column is blank.
Just to give you a little background on why I am doing this (just in case there is an easier way), I am pulling... (3 Replies)
Running SunOs 5.6. Solaris.
I've been able to remove all special characters from a fixed length file which appear in the first column but as a result all subsequent columns have shifted to the left by the amount of characters deleted.
It is a space separated file. Line 1 in input file is... (6 Replies)
Hi,
I have a requirement where I need to delete given number of top and bottom rows in a flat file which has new line as its delimiter.
For ex: if top_rows=2 & bottom_rows=1
Then in a given file which looks like:
New York
DC
LA
London
Tokyo
Prague
Paris
Bombay
Sydney... (7 Replies)
Discussion started by: calredd
7 Replies
LEARN ABOUT LINUX
socket-event
socket-event(8) System Manager's Manual socket-event(8)NAME
socket - event signalling that a socket connection has been made
SYNOPSIS
socket PROTO=PROTO PORT=PORT ADDR=ADDR
socket PROTO=PROTO PATH=PATH
DESCRIPTION
The socket event is generated by the upstart-socket-bridge(8) daemon when a socket connection is made whose details match the socket event
condition and environment specified in a jobs start on or stop on stanza.
When an incoming connection is detected, the file descriptor representing the socket is passed to the job in question to allow it to
accept(2) the connection. Additionally, the environment variable UPSTART_JOB will contain the name of the event ("socket") and the environ-
ment variable UPSTART_FDS will contain the number of the file descriptor corresponding to the listening socket.
EXAMPLES
Internet socket
Start web server when first client connects from localhost:
start on socket PROTO=inet PORT=80 ADDR=127.0.0.1
Local socket
start on socket PROTO=unix PATH=/var/run/.s.pgsql.1234
Abstract socket
start on socket PROTO=unix PATH=@/at/upstart/example
AUTHOR
Written by Scott James Remnant <scott@netsplit.com>
Manual page written by James Hunt <james.hunt@ubuntu.com>
BUGS
Report bugs at <https://launchpad.net/upstart/+bugs>
COPYRIGHT
Copyright (C) 2011 Canonical Ltd.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO init(5)init(8)socket(2)socket(7)upstart-socket-bridge(8)upstart 2011-03-08 socket-event(8)