im having trouble doing this:
i have a variable with 2 characters repeating e.g. aababbbaaaababaabbaabbba
is there a way i can search the variable for a's and b's and then change a's to b's and b's to a's?
im guessing its like getting the 1's compliment of the string
im doing this in... (2 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)
Hi,
I've made a script to grep a file
for i in `cat filename.txt`
do
strings ./binfile | grep "$i" 2>&1 > /dev/null
done
this works fine as long as in filename.txt i don't have any entries with spaces. But in my case i want to grep something with spaces like "lala tata"
and... (3 Replies)
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)
Hi all,
Greetings,
I have the following scenario, The contents of main file are like :
Unix|||||forum|||||||||||||||is||||||the||best
so||||||be|||||on||||||||||||||||||||||||||||||||||||||||||||it
And i need the output in the following form:
Unix=forum=is=the=best
so=be=on=it
... (3 Replies)
I have a bash loop that waits for a single key press, then does $something depending on what $key is pressed before refreshing the screen with updated data. The problem I have is that the script will store additional key presses and chain them together causing the screen to redraw and the script... (1 Reply)
Hi friend,
I have one file , and i want to read that file character by character.
I need this script in ksh.
while using read option with -n1 am getting error.
while read -n1 c read has bad option
And if i am using below script, then if in a line has space like this ( Pallvi mahajan)... (10 Replies)
Hello everybody,
I am using Windows 10 and cygwin/bash.
I need to write a script in bash which simulates opening of a program and then press some keys such as F5, ENTER and ALT+F4.
I have written a VBScript which does the job
Set WshShell = WScript.CreateObject("WScript.Shell")... (9 Replies)
I have a csv dataset like this :
C,rs18768
G,rs13785
GA,rs1065
G,rs1801279
T,rs9274407
A,rs730012
I'm thinking of use like awk, sed to covert the dataset to this format: (if it's two character, then keep the same)
CC,rs18768
GG,rs13785
GA,rs1065
GG,rs1801279
TT,rs9274407... (7 Replies)
Discussion started by: nengcheng
7 Replies
LEARN ABOUT HPUX
profile
profile(4) Kernel Interfaces Manual profile(4)NAME
profile - set up user's environment at login time
DESCRIPTION
If the file exists, it is executed by the shell for every user who logs in. The file should be set up to do only those things that are
desirable for every user on the system, or to set reasonable defaults. If a user's login (home) directory contains a file named that file
is executed (via the shell's before the session begins. files are useful for setting various environment parameters, setting terminal
modes, or overriding some or all of the results of executing
EXAMPLES
The following example is typical (except for the comments):
# Make some environment variables global
export MAIL PATH TERM
# Set file creation mask
umask 22
# Tell me when new mail comes in
MAIL=/var/mail/myname
# Add my /bin directory to the shell search sequence
PATH=$PATH:$HOME/bin
# Set terminal type
echo "terminal: c"
read TERM
case $TERM in
300) stty cr2 nl0 tabs; tabs;;
300s) stty cr2 nl0 tabs; tabs;;
450) stty cr2 nl0 tabs; tabs;;
hp) stty cr0 nl0 tabs; tabs;;
745|735) stty cr1 nl] -tabs; TERM=745;;
43) stty cr1 nl0 -tabs;;
*) echo "$TERM unknown";;
esac
A more complete model can be found in
FILES SEE ALSO env(1), login(1), mail(1), sh(1), stty(1), su(1), environ(5), term(5).
profile(4)