Hi,
I have already read a lot of posts on sending attachments in unix...but none of them were of help for my problem...so here goes..
i wanna attach a text file and send to a mail id..used the following code :
uuencode "$File1" "$File1" ;|mail -s "$Mail_sub" abc@abc.com
it works... (2 Replies)
HI guys,
I have created a script to read 1 column in a csv file and then place it in text file.
However, when i checked out the text file, it is not in a column format...
Example:
CSV file contains
name,age
aa,11
bb,22
cc,33
After using awk to get first column
TXT file... (1 Reply)
Hi expersts,
in my directory i have *.txt and *.TXT and *.TXT.log, *.txt.log
I want list only .txt and .TXT files in one command...
how to ??
//purple (1 Reply)
This is appending a column.
My question is fairly simple. I have a program generating data in a form like so:
1 20
2 22
3 23
4 12
5 43
For ever iteration I'm generating this data. I have the basic idea with cut -f 2 fileA.txt | paste -d >> FileB.txt ???? I want FileB.txt to grow, and... (4 Replies)
Hi ...programmers...
I need a shell script to perform some specific task..
my txt file looks like this
netcdf new {
dimensions:
XAX1_11 = 11 ;
variables:
double XAX1_11(XAX1_11) ;
XAX1_11:point_spacing = "even" ;
XAX1_11:axis = "X" ;
float DEPTH(XAX1_11) ;... (19 Replies)
I want to add/append the info in the following format to my.txt file.
20130702|abcd20130702.txt FN|SN|DOB
I tried the below script but it throws me some exceptions.
<#!/bin/sh
dt = date '+%y%m%d'members;
echo $dt+|+members+$dt;
/usr/bin/awk -f
BEGIN { FS="|"; OFS="|"; } { print... (6 Replies)
so...
Lets assume I have a text file.
The text file contains multiple "#" symbols.
I want to replace all thos "#"s with a STRING using DOS/Batch
I want to add a certain TEXT to the end of each line.
How can I do this WITHOUT aid of sed, grep or anything linux related ? (1 Reply)
Dear all,
I have a huge txt file (DATA.txt) with the following content . From this txt file, I want the following output using some shell script.
Any help is greatly appreciated.
Greetings,
emily
DATA.txt (snippet of the huge text file)
407202849... (2 Replies)
Hi All
Is there a way to export every line into new txt file where by the title of each txt output are same as the line ?
I have this txt files containing names:
Kandra Vanhooser
Rhona Menefee
Reynaldo Hutt
Houston Rafferty
Charmaine Lord
Albertine Poucher
Juana Maes
Mitch Lobel... (2 Replies)
Hello everyone,
Since my python knowledge is limimted, I've challenged myself to learn as much as possible to help me with my carrere. I'm currently trying to convert a shell script to python, just to give myself a task. There is one section of the script that I'm having issues converting and... (2 Replies)
Discussion started by: da1
2 Replies
LEARN ABOUT DEBIAN
libcaca-ruby-api
libcaca-ruby-api(3caca) libcaca libcaca-ruby-api(3caca)NAME
libcaca-ruby-api - Libcaca Ruby API
Classes
The classes available for libcaca are :
o Caca::Canvas : functions that have a caca_canvas_t* as first argument
o Caca::Dither : functions that have a caca_dither_t* as first argument
o Caca::Font : functions that have a caca_font_t* as first argument (The constructor can currently only accept the name of a builtin font)
o Caca::Display
o Caca::Event
o Caca::Event::Key
o Caca::Event::Key::Press
o Caca::Event::Key::Release
o Caca::Event::Mouse
o Caca::Event::Mouse::Press
o Caca::Event::Mouse::Release
o Caca::Event::Mouse::Motion
o Caca::Event::Resize
o Caca::Event::Quit
The character set conversion functions are not available yet in the binding.
$ irb -rcaca
irb(main):001:0> class Object
irb(main):002:1> def Object.my_instance_methods
irb(main):003:2> instance_methods.sort - ancestors[1].instance_methods
irb(main):004:2> end
irb(main):005:1> def Object.my_methods
irb(main):006:2> methods.sort - ancestors[1].methods
irb(main):007:2> end
irb(main):008:1> end
irb(main):009:0> Caca.constants
=> ['BROWN', 'BOLD', 'GREEN', 'LIGHTMAGENTA', 'LIGHTBLUE', 'BLINK',
irb(main):010:0> Caca.my_methods
=> ['version']
irb(main):011:0> Caca::Canvas.my_methods
=> ['export_list', 'import_list']
irb(main):012:0> Caca::Canvas.my_instance_methods
=> ['attr=', 'blit', 'clear', 'create_frame',
irb(main):013:0> Caca::Font.my_methods
=> ['list']
irb(main):014:0> Caca::Font.my_instance_methods
=> ['blocks', 'height', 'width']
irb(main):015:0> Caca::Dither.my_instance_methods
=> ['algorithm=', 'algorithm_list', 'antialias=', 'antialias_list',
irb(main):010:0> Caca::Display.my_instance_methods
=> ['canvas', 'get_event', 'height', 'mouse=', 'mouse_x', 'mouse_y', 'refresh',
irb(main):011:0> Caca::Event.constants
=> ['Key', 'Quit', 'TYPE', 'Mouse', 'Resize']
irb(main):012:0> Caca::Event.my_instance_methods
=> ['quit?']
irb(main):013:0> Caca::Event::Key.my_instance_methods
=> ['ch', 'utf32', 'utf8']
irb(main):014:0> Caca::Event::Mouse.my_instance_methods
=> ['button', 'x', 'y']
irb(main):015:0> Caca::Event::Resize.my_instance_methods
=> ['w', 'h']
Samples
$ ruby -rcaca -e 'c=Caca::Canvas.new(6, 3).fill_box(0,0,2,2,'#'[0]);
c2=Caca::Canvas.new(1,1).put_str(0,0,'x'); c.blit(1,1,c2); puts
c.export_to_memory('irc')'
###
#x#
###
$ ruby -e 'puts Caca::Canvas.new(6,3).draw_thin_polyline([[0,0], [0,2],
[5,2],[0,0]]).export_to_memory('irc')'
-.
| `.
----`-
$ ruby -rcaca -e 'p Caca::Canvas.export_list'
[['caca', 'native libcaca format'], ['ansi', 'ANSI'], ['utf8', 'UTF-8
withANSI escape codes'], ['utf8cr', 'UTF-8 with ANSI escape codes and
MS-DOS
'], ['html', 'HTML'], ['html3', 'backwards-compatible HTML'],
['irc', 'IRC with mIRC colours'], ['ps', 'PostScript document'], ['svg',
$ ruby -rcaca -e 'p Caca::Font.list'
['Monospace9', 'Monospace Bold 12']
require 'caca'
c = Caca::Canvas.new(20,10)
c.put_str(2,3, 'plop!')
c.draw_thin_polyline([[0,0],[0,2], [5,2], [0,0]])
d = Caca::Display.new(c)
d.title= 'Test !'
d.refresh
#Redefine Event::Key#quit? so that q, Q, and Esc become exit keys
module Caca
class Event::Key
def quit?
'qQ^['.split('').member?(@ch.chr)
end
end
end
while((e= d.get_event(Caca::Event, -1)) && ! e.quit?)
p e
d.refresh
end
Version 0.99.beta18 Fri Apr 6 2012 libcaca-ruby-api(3caca)