i have this data:
GREEN LIST :
12321 34534
GREEN LIST :
45645 --- 23423
WHITE LIST :
23479 34534 75483 76924
12345 --- 12351 56778 --- 23330
GREEN LIST :
23567
the output must be:
GREEN LIST : 12321
GREEN LIST : 34534
GREEN LIST : 45645 --- 23423 (2 Replies)
Hi,
Could anyone help me in changing a tabular format output to comma seperated file pls in K-sh. Its very urgent.
E.g : username empid
------------------------
sri 123
to
username,empid
sri,123
Thanks,
Hema:confused: (2 Replies)
I have executed the following code.
#! /bin/ksh
############################
# AFI Monitor Script
############################
. /db2/uszlad48/sqllib/db2profile
export mondir=/home/bmwdev1/script/krishna/arc
export monlog=$mondir/rcbl2_`date +%Y%m%d`.log
# connect to DB
db2 connect... (2 Replies)
STMC429 (192.168.171.72)
2008-11-24 14:18:09.412 softwareupdate Loading CatalogURL http://creativesus.conair.lan:8088/index.sucatalog
No new software available.
There are no updates to install
STMC444 (3) (192.168.171.116)
2008-11-24 14:14:31.771 softwareupdate Loading CatalogURL... (4 Replies)
Good day,
I have a script on each machine on our network that will say the computer name and the number of updates needed. Then the script will send a file via scp to a network share with the title hostname.local
The contents of the file would be: hostname N (with N being the number of... (11 Replies)
HI i am writing a shell script to generate some files having data in some format.
for this i am using
awk -F":" '{printf("%-20s:%-20s:%-20s:%-20s:%-15s:%-3s:%-19s:%-2s:%-20s:%-15s:%-2s\n", $1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11)}' $DIALPBIN/temp1.txt > ${DIALPBIN}/temp2.txt
this helps in... (1 Reply)
Hii , I have a huge set of data stored in file a.dat as shown below
a.dat:
081276A BURMA
Date: 1976/ 8/12 Centroid Time: 23:26:51.8 GMT
Lat= 26.55 Lon= 97.12
Depth= 15.0 Half duration= 2.2
Centroid time minus hypocenter time: 5.6
Moment Tensor: Expo=24 7.840 -2.440... (4 Replies)
Dear All
I would like to transform data from one format to another format.
my Input:
0 0 1
0 1 0.308
0 2 0.554
0 3 0.287
output:
Z (0,0)= 1
Z (0,1)=0.308
Z (0,2)=0.554
Z (0,3)=0.287 (2 Replies)
Hi ,
i am generating some data by firing sql query with connecting to the database by my solaris box.
The below one should be the header line of my excel ,here its coming in separate row.
TO_CHAR(C. CURR_EMP_NO
---------- ---------------
LST_NM... (6 Replies)
set_color(1) fish set_color(1)NAME
set_color - set_color - set the terminal color
set_color - set the terminal color
Synopsis
set_color [-v --version] [-h --help] [-b --background COLOR] [COLOR]
Description
Change the foreground and/or background color of the terminal. COLOR is one of black, red, green, brown, yellow, blue, magenta, purple,
cyan, white and normal.
o -b, --background Set the background color
o -c, --print-colors Prints a list of all valid color names
o -h, --help Display help message and exit
o -o, --bold Set bold or extra bright mode
o -u, --underline Set underlined mode
o -v, --version Display version and exit
Calling set_color normal will set the terminal color to whatever is the default color of the terminal.
Some terminals use the --bold escape sequence to switch to a brighter color set. On such terminals, set_color white will result in a grey
font color, while set_color --bold white will result in a white font color.
Not all terminal emulators support all these features. This is not a bug in set_color but a missing feature in the terminal emulator.
set_color uses the terminfo database to look up how to change terminal colors on whatever terminal is in use. Some systems have old and
incomplete terminfo databases, and may lack color information for terminals that support it. Download and install the latest version of
ncurses and recompile fish against it in order to fix this issue.
Version 1.23.1 Sun Jan 8 2012 set_color(1)