I need a better way to read the first character of each line in a file and check if it equals the special character ¤. This character tells me where there is a break in the reports. The file has over 500,000 lines. Currently, this is my code -
if ]
I am using Korn Shell as a scripting... (7 Replies)
Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/
Thanks! (1 Reply)
Hello All,
We are getting files from sftp server through file transmission protocol & after transmission we are removing all the control M
(^M) characters from them.we are expecting various kind of special characters in the files.
we are tried removing '^M' characters through 'dos2unix' command... (2 Replies)
Hi,
How read character by character from a file .
and i need replace '.' with null if it comes as a 5 character
i am beginner ...please help me (1 Reply)
hello all
i request you to give the solution for the following problem..
I want read the text file.and print the contents character by character..like if the text file contains google means..i want to print
g
go
goo
goog
googl
google
like this Using unix Shell scripting...
without using... (1 Reply)
Hello,
The last character is a comma ,
I have tried the following:
sed -e 's/\,$//' filename-to-read
however - there are still commas at the end of each line...:confused: (5 Replies)
Hi,
Maybe this iscorrect forum for my question...
I should read one character at a fixed position from each line of the file. So how ??? should be substituted in the code below:
while read line ; do
single_char=`???`
echo "$single_char"
done < $input_file
OK...I did get an... (0 Replies)
performing this code to read from file and print each character in separate line
works well with ASCII encoded text
void
preprocess_file (FILE *fp)
{
int cc;
for (;;)
{ cc = getc (fp);
if (cc == EOF)
break;
printf ("%c\n", cc);
}
}
int
main(int... (1 Reply)
Discussion started by: khaled79
1 Replies
LEARN ABOUT DEBIAN
gammu-smsd-inject
GAMMU-SMSD-INJECT(1) Gammu GAMMU-SMSD-INJECT(1)NAME
gammu-smsd-inject - Inject messages into queue of SMS daemon for Gammu
SYNOPSIS
gammu-smsd-inject [OPTION]... MESSAGETYPE RECIPIENT [MESSAGE_PARAMETER]...
DESCRIPTION
This manual page documents briefly the gammu-smsd-inject command.
gammu-smsd-inject is a program that enqueues message in Gammu SMS Daemon, which will be later sent by the daemon using connected GSM modem.
Support for this program depends on features available in currently used SMSD service backend, however currently it is supported by all of
them.
Program accepts following options (please note that long options might be not accepted on some platforms):
-h, --help
Shows help.
-v, --version
Shows version information and compiled in features.
-c, --config=file
Configuration file to use, default is /etc/gammu-smsdrc, on Windows there is no default and configuration file path has to be always
specified.
-l, --use-log
Use logging as configured in config file.
-L, --no-use-log
Do not use logging as configured in config file (default).
For description of message types and their parameters, please check documentation for gammu savesms.
EXAMPLES
To check it out, you need to have configuration file for SMSD, see gammu-smsdrc for more details about it.
Inject text message up to standard 160 chars:
echo "All your base are belong to us" | gammu-smsd-inject TEXT 123456
or
gammu-smsd-inject TEXT 123456 -text "All your base are belong to us"
Inject long text message:
echo "All your base are belong to us" | gammu-smsd-inject TEXT 123456 -len 400
or
gammu-smsd-inject TEXT 123456 -len 400 -text "All your base are belong to us"
or
gammu-smsd-inject EMS 123456 -text "All your base are belong to us"
Inject some funky message with predefined sound and animation from 2 bitmaps:
gammu-smsd-inject EMS 123456 -text "Greetings" -defsound 1 -text "from Gammu" -tone10 axelf.txt -animation 2 file1.bmp file2.bmp
Inject protected message with ringtone:
gammu-smsd-inject EMS 123456 -protected 2 -variablebitmaplong ala.bmp -toneSElong axelf.txt -toneSE ring.txt
AUTHOR
Michal iha <michal@cihar.com>
COPYRIGHT
2009-2012, Michal iha <michal@cihar.com>
1.31.90 February 24, 2012 GAMMU-SMSD-INJECT(1)