Does anyone know how to get these two output lines into one colon ':' separated line with some unix command? Maybe nawk. I've tried to read the nawk and awk man pages but I don't get it right. Are these commands the one to use?
Output from find command:
#
/sw/tools/matlab/7.0.1/man... (2 Replies)
I want to know how to delimit a colon in a file name while scp ing from one host to other host. I used forward slash(\) but that is not working. (1 Reply)
Hi guys,
This is my input
2735:<7001> 34 789 701 2
2774:<7001> 34 789 701 2
How to delete characters after colon :
Including colon : too ?
My output should... (3 Replies)
Can some one please explain why do we use colon in a grep statement .
for eg:
ORACLE_SID=$(grep :$(echo $JOBNAME |cut -c1-3): ${SWENV_TAB}|awk -F: '{print $1}')
Thanks in advance
Sri (5 Replies)
I'm using AIX 5.3 and running a awk replace to modify data as follows:
echo 1234: 1234 123 123 444 555 666 7777 | awk '/^:/{split($2,N);n=N} {n=$1} {sub(n,n+10000000)}1'
10001234 1234 123 123 444 555 666 7777
dumb question.. how do I get the colon back in, so it outputs
10001234: 1234... (4 Replies)
Although i tried multiple option i couldn't find a way to get the rigt ouput.
Say i have the following data
cat file.txt
C request
C response
C request
C response
The output should look like (9 Replies)
Hello All,
I was wondering if someone might know how to do this. I have a word list that is format like the example below. I need to take away the :number after that... is there some kind of command I could use to remove them?
123456:5562
password:1507
123456789:989
qwerty:877... (7 Replies)
I have a file that contains timestamp in some of the rows in the file and the field separator is colon and some of the rows have numerical values, timestamp and characters with colon as the field separator
We are looking to change colon in HH:MI:SS for the timestamp to hyphen “-“ leaving the field... (1 Reply)
I have entries like below in a file
11.22.33.44:80
22.33.44.55:81
:::587
:::465
What I need is to take out the part after colon ( : )
Output should be as follows.
80
81
587
465
I used cut -d: -f 2 but its not working as dedired. (2 Replies)
Hi
How do I print character after colon":"
below is input file
BUC1 : 33157147, BUC1 COUNT : 478455,BUC1 : 9930334.18
BUC2 : 1203100,BUC2 COUNT : 318678,BUC2 GIVEN : 3493491.59
BUC3 : 234567.99 expected output
33157147 478455 9930334.18
12031002 318678 3493491.59
234567.99 (10 Replies)
Discussion started by: scriptor
10 Replies
LEARN ABOUT OSF1
moderators
MODERATORS(5) File Formats Manual MODERATORS(5)NAME
moderators - mail addresses for moderated Usenet newsgroups
DESCRIPTION
The GetModeratorAddress(3) routine reads the file /etc/news/moderators to determine how to reach the moderator of a newsgroup. This is
used by inews(1) when an unapproved local posting is made to a moderated newsgroup.
The file is read until a match is found. Blank lines and lines starting with a number sign (``#'') are ignored. All other lines should
consist of two fields separated by a colon.
The first field is a wildmat(3)-style pattern. If it matches the name of the newsgroup, then the second field is taken to be a format
string for sprintf(3). This string should have at most one %s parameter, which will be given the name of the newsgroup with periods
transliterated to dashes.
Here is a sample file:
foo.important:announce-request@foo.com
foo.*:%s@mailer.foo.com
gnu.*:%s@prep.ai.mit.edu
*:%s@uunet.uu.net
Using the above file, postings to the moderated newsgroup in the left column will be sent to the address shown in the right column:
foo.important announce-request@foo.com
foo.x.announce foo-x-announce@mailer.foo.com
gnu.emacs.sources gnu-emacs-sources@prep.ai.mit.edu
comp.sources.unix comp-sources-unix@uunet.uu.net
HISTORY
Written by Rich $alz <rsalz@uunet.uu.net> for InterNetNews. This is revision 1.15, dated 1996/09/06.
SEE ALSO inews(1), inn.conf(5), libinn(3), wildmat(3).
MODERATORS(5)