01-26-2011
tabbing is too far, i need to put only 4-5 spaces
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi Again Guys ,
Please i installed linux RH 6.1 on Toshiba , 10G , RAM=128 , 600 MHZ .
After i installed linux i got many error messages , seems it was not installed correctly , also when i finished installation it did not ask me for the 2nd installation CD , and when i logged as root , i... (5 Replies)
Discussion started by: tamemi
5 Replies
2. Shell Programming and Scripting
Hi all,
My simple AWK code does C = A - B
If C can be a negative number, how awk printf formating handles it using string format specifier.
Thanks in advance
Kanu
:confused: (9 Replies)
Discussion started by: kanu_pathak
9 Replies
3. Shell Programming and Scripting
Hi all,
my syslog.txt is a file like this:
Jan 20 10:55:19 cerbero | process1: process1.--: |Info |xyxyxyxyxyxyxx |
Jan 20 10:59:45 cerbero | processlong2 : threadlong1.0 : |Info |ughxueeughxueeuxexuexueuxexuexue |
I need a .sh script to print to screen something like this.
Jan... (3 Replies)
Discussion started by: ric79
3 Replies
4. Shell Programming and Scripting
Hi I'm having a problem with converting a file:
ID X
1 7
1 8
1 3
2 5
2 7
2 2
To something like this:
ID X1 X2 X3
1 7 8 3
2 5 7 2
I've tried the following loop:
for i in `cat tst.csv| awk -F "," '{print $1}'| uniq`;do grep -h $i... (4 Replies)
Discussion started by: flotsam
4 Replies
5. Shell Programming and Scripting
Hi,
I need to insert a line at a particular line number. I am using the below code:
sed $REV_LINO_NO" i\\
# $CURRENT_DATE $NAME Changed pwd for cindy\'s id" file > file1
This code works, but the formatting is not as I expected. For example, I get lines as shown below... (2 Replies)
Discussion started by: sugan
2 Replies
6. Shell Programming and Scripting
Hi Friends,
I am trying to insert lines of the below format in a file:
# x3a4914 Joe 2010/04/07
# seh Lane 2010/04/07
# IN01379 Larry 2010/04/07
I am formatting the strings as follows using awk printf:
awk 'printf "# %s %9s %18s\n", $2,$3,$4}'
... (2 Replies)
Discussion started by: sugan
2 Replies
7. Shell Programming and Scripting
hi,
i am relatively new to unix. i have a doubt
i have a string in the format "2010-10-27 15:03:56"
i need to format that to "10/27/2010 15:03:56" this format
how to do that in unix script ?
any help is appreciated.. (7 Replies)
Discussion started by: mssajith
7 Replies
8. Shell Programming and Scripting
I need to format a txt file and convert it in CSV.
Any "future" column is separated by a newline.
FROM:
XS1
1.43294
0.0
XS2
1.21824
0.0
TO:
XS1,XS2 (2 Replies)
Discussion started by: alfreale
2 Replies
9. Shell Programming and Scripting
continuing from my previous post, whose link is given below as a reference
https://www.unix.com/shell-programming-scripting/171076-shell-scripting.html#post302573569
consider there is create table commands in a file for eg:
CREATE TABLE `Blahblahblah` (
`id` int(11) NOT NULL... (2 Replies)
Discussion started by: vivek d r
2 Replies
10. Shell Programming and Scripting
here is what i want to achieve... consider a file contains below contents. the file size is large about 60mb
cat dump.sql
INSERT INTO `table1` (`id`, `action`, `date`, `descrip`, `lastModified`) VALUES (1,'Change','2011-05-05 00:00:00','Account Updated','2012-02-10... (10 Replies)
Discussion started by: vivek d r
10 Replies
LEARN ABOUT SUNOS
putnext
putnext(9F) Kernel Functions for Drivers putnext(9F)
NAME
putnext - send a message to the next queue
SYNOPSIS
#include <sys/stream.h>
#include <sys/ddi.h>
void putnext(queue_t *q, mblk_t *mp);
INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI).
PARAMETERS
q Pointer to the queue from which the message mp will be sent.
mp Message to be passed.
DESCRIPTION
putnext() is used to pass a message to the put(9E) routine of the next queue in the stream.
RETURN VALUES
None.
CONTEXT
putnext() can be called from user or interrupt context.
EXAMPLES
See allocb(9F) for an example of using putnext().
SEE ALSO
put(9E), allocb(9F), put(9F), qprocson(9F)
Writing Device Drivers
STREAMS Programming Guide
NOTES
The put() and putnext() functions should be called only after qprocson() is finished.
SunOS 5.10 18 Feb 1998 putnext(9F)