Unix gurus,
I have a file as below, which is basically the result set obtained from a sql query on an Oracle database.
ID PROG_NAME USER_PROG_NAME
-------- --------------- ----------------------------------------
33045 INCOIN Import Items
42690 ... (3 Replies)
Hi
Following is an example line.
echo "192.22.22.22 \"33dffwef\" 200 300 dsdsd" | sed "s:\(\ *\ \):\1:"
I want it's output to be
200
However this is not the case. Can you tell me how to do it? I don't want to use AWK for this. Secondly, how can i fetch just 300? Should I use "\2"... (3 Replies)
This seems to be a stupid basic question, but I cant get the space to stick in the awk variable.
I do use this command to grep a time range of the log file.
cat /var/log/daemon.log | awk '$0>=from&&$0<=to' from="$(date +%b" "%e" "%H:%M:%S -d -24hour)" to="$(date +%b" "%e" "%H:%M:%S)"
I now... (9 Replies)
I am trying to change the date format for the following:
YESTER=`TZ=aaa24 date +%b" "%d | sed 's/0/ /'`
TraceList=$(ls -ltR /pdt/logs | grep "$YESTER" | awk '{print $9}')
CMD2=$(find /disk/dan/dansFiles/pass/logs/$TList -name cmd\* -prune)
what I am trying to do in the above... (1 Reply)
Hello,
I wondering how I can echo a string without having the trailing whitespace removed.
For example I have a string str="TESTING123 " that I need to hash using sha1. I get the correct answer when I run the line below from the terminal
$ echo -n "TESTING123 " | openssl sha1... (3 Replies)
Hi again
I have an xml file and want to remove the leading white space as it causes me issues later in my script
I see sed is possible but cant seem to get it to work
I tried
sed 's/^ *//' file.xml
output
<xn:VsDataContainer id="1U104799" modifier="update">
... (10 Replies)
I'm trying to do something pretty simple but its appears more complicated than expected... I've lines in a text file, separated by the comma and that I want to output to another file, without the first field.
Input file:
file1,item, 12345678
file2,item, 12345678
file2,item, ... (8 Replies)
Is there a reliable way to deal with whitespace in array indicies?
I am trying to annotate fails in a database using a table of known fails.
In a begin block I have code like this:
# Read in Known Fail List
getline < "'"$failListFile"'"; getline < "'"$failListFile"'"; getline <... (6 Replies)
The awk below executes and update the desired field in my first awk. However, the white space between
nonsynonymous SNV in $9 is being split into tabs and my attempt to correct this does not update the field
unless it is removed. I am not sure what I am doing wrong? Thank you :).
file1
... (4 Replies)
Hello is it possible with awk or sed to replace any white space with the previous line characters in the same position?
I am asking this because the file I have doesn't always follow a pattern.
For example the file I have is the result of a command to obtain windows ACLs:
icacls C:\ /t... (5 Replies)
Discussion started by: nakaedu
5 Replies
LEARN ABOUT DEBIAN
rep
REP(1)REP(1)NAME
rep - Read, Eval, Print Interpreter
SYNOPSIS
rep [ FILE ] [ --batch ] [ --interp ] [ -f, --call FUNCTION ] [ -l, --load FUNCTION ] [ -s, --scheme FILE ] [ --version ] [
--no-rc ] [ -q, --quit ]
DESCRIPTION
rep `librep' is a dialect of Lisp, designed to be used both as an extension language for applications and as a general purpose programming
language. It was originally written to be mostly-compatible with Emacs Lisp, but has subsequently diverged markedly. Its aim is to combine
the best features of Scheme and Common Lisp and provide an environment that is comfortable for implementing both small and large scale sys-
tems. It tries to be a "pragmatic" programming language.
OPTIONS
FILE load the Lisp file FILE (from the cwd if possible, implies --batch mode)
--batch
Batch mode: process options and exit.
--interp
Interpreted mode: don't load compile Lisp files.
-f FUNCTION --call FUNCTION
Call the Lisp function FUNCTION.
-l FILE --load FILE
Load the file of Lisp forms called FILE.
-s FILE --scheme FILE
Load the file of Scheme forms called FILE (implies --batch mode).
--version
Print version details.
--no-rc
Don't load rc or site-init files.
-q --quit
Terminate the interpreter process.
SEE ALSO
The programs are documented fully by John Harper available via the Info system.
AUTHOR
This manual page was written by Christian Marillat <marillat@debian.org> for the Debian GNU/Linux system (but may be used by others).
04 avril 2003 REP(1)