That's two backspaces, with a space between them. I don't think you can print a delete and get anything sensible. I can't see your computer from here, please post your code.
I meant I would print "\b \b", but I just want to give the user the option of deleting characters with backspace or delete.
So I was messing around with implementing backspace and also reading it into into an array today and think I've got it working fairly well. Correct me if I'm wrong, but getchar() turns the input into a unique integer right? Well I want to display the password that was entered just to check, but if everything has been converted into integers, how do I display it?
And I'll narrow my earlier question changing the colors into something that is answerable. Basically I want to do something along these lines:
I guess this is kinda similar to my first question, this time comparing something that has been turned into an integer to an input. I commented on the lines I am referring to.
Is it possible for a internal LAN to mask a IP e.g. i have a server ip running the intranet ip being 192.168.0.8 and i want to make that like www.intranet.com is this possible on a internal network ? (1 Reply)
Hello,
I need to know that whether a content of a string can be hidden or masked inside a shell script.
My Sample Code is given below
<Code>
#!/usr/bin/ksh
Userid=test
DB=temp
Passwd=`java Decryption test`
# The Above command will get the encryped password for "test" user id and store... (2 Replies)
I have a pipe delimited file that I need to 'mask' to before loading to keep some data confidential. I need to maintain the first 4 bytes of certain columns and replace the remaining bytes with an 'x'. I would like to maintain spaces but it's not a requirement.
Example, need to mask columns 2... (2 Replies)
Hi,
I currently have a UNIX script with a function that uses a username and password to connect to the database, retrieve some information and then exit.
At the moment, am getting the username and password from a hidden plain text file and permission set to -r--------, i.e. read only to who... (1 Reply)
Hi I am facing an issue with the below script which has the below line
each field being separated with a tab.
I need to mask the 8 and 7th field based on following conditions
1. 8th field is 16 in length and is numerics
i will mask the middle 6 digits except the first 6 and last 4.
input... (2 Replies)
Is there a way to mask the password inside of a script to minimize the impact of a comprimised server? So
ssh -o "PasswordAuthentication no" -o "HostbasedAuthentication yes" -l testuser 192.168.3.1 "mysqldump --opt --all-databases -u root -pPassword| gzip" > $backup_dir/mysqldump.gz
a... (2 Replies)
I have a requirement of masking few specific fields in the UNIX file. The details are as following-
File is fixed length file with each record of 250 charater length.
2 fields needs to be masked – the positions are 21:30 and 110:120
The character by character making needs to be done which... (5 Replies)
My file "test.dat" data as below
Requirement is to mask(replace) all english characters with "X" EXCEPT first 7 characters of every line.
my command
awk '{gsub("]","X")}1' test.dat
looks not working properly, Appreciate any suggestion... (6 Replies)
Discussion started by: JSKOBS
6 Replies
LEARN ABOUT PLAN9
twig
TWIG(1) General Commands Manual TWIG(1)NAME
twig - tree-manipulation language
SYNOPSIS
twig [ -sASC ] [ -w suffix ] file.mt
DESCRIPTION
Twig converts a tree-specification scheme consisting of pattern-action rules with associated costs into C functions that can be called to
manipulate input trees. The C functions first find a minimum-cost covering of an input tree using a dynamic programming algorithm and then
execute the actions associated with the patterns used in the covering. The tree-specification scheme may allow several coverings for an
input tree, but the dynamic programming algorithm resolves any ambiguities by selecting a cheapest covering.
The input file containing the tree-specification scheme must have the suffix Twig produces two output files: walker.c, which becomes the
source file for the tree matcher, and symbols.h, which contains the definitions for the node and label symbols used in the source file.
To build walker.c, twig uses an internal template file, by default one appropriate for use with fprintf(2).
The options are
-A Use a template file for ANSI/POSIX source files.
-C Use a template file for files that use libc's print(2) routines.
-S Use a template file for files that use fprintf(2).
-s Do not produce a symbols.h file.
-w suffix Use the template file /sys/lib/twig/walker.suffix.
FILES
/sys/lib/twig
System area for template files.
SOURCE
/sys/src/cmd/twig
SEE ALSO yacc(1)
S. W. K. Tjiang, ``The Twig Reference Manual'', Computing Science Technical Report No. 120, AT&T Bell Laboratories, Murray Hill, N.J.
A. V. Aho, M. Ganapathi, and S. W. K. Tjiang, ``Code generation using tree matching and dynamic programming.''
BUGS
When tree matching fails, the debugging output is cryptic.
TWIG(1)