10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am trying to read a file character by character,
#!/bin/bash
while read -n1 char; do
echo -e "$char\c"
done < /home/shak/testprogram/words
Newyork is a very good city.
Newyorkisaverygoodcityforliving
I need to preserve the spaces as thats an... (3 Replies)
Discussion started by: Kingcobra
3 Replies
2. Shell Programming and Scripting
Hi friend,
i have the following problem:
when i am writting the below command on the command prompt , its working.
while read -n 1 ch; do echo "$ch" ; echo "$ch" ; done<file_name.out.
but when i am executing it after saving it in a ksh file, its not working.
Please helppppppppp .. thankss... (18 Replies)
Discussion started by: neelmani
18 Replies
3. Shell Programming and Scripting
Hi Guys,
I have a big file like this. It has cache group line ( the bold lines ) and then followed by 10 status lines showing either Compelte or Failed. This pattern repeats several time. We can assume all the status lines have either Complete or Failed status for that Cache Group line.
I... (13 Replies)
Discussion started by: MKNENI
13 Replies
4. UNIX for Dummies Questions & Answers
Hello every one and thanks in advance for the time you will take to think about my problem.
I would like to know if it's possible (in BASH) to read a text file character after character.
Exactly this is what I would like to do :
Txt file : ATGCAGTTCATTGCCAAA...... (~2.5 millions... (3 Replies)
Discussion started by: sluvah
3 Replies
5. Shell Programming and Scripting
Hi,
I have a test.txt and would like to put in a different file but while putting in the other file, blank spaces are missing.
$ indicates blank spaces
filename: test.txt:
USA$$$840$$$$
Desired output
USA$$$840$$$$
Current output as per the following code.
while read j;
do... (3 Replies)
Discussion started by: techmoris
3 Replies
6. Shell Programming and Scripting
hi all,
I am using HP-UX
I want to show password with * instead of space on screen while i entered password through keyboard. can you tell me that shell script code?
i used following code
stty -echo
read pass
stty echo
echo $pass
but this time it wont show anything on... (5 Replies)
Discussion started by: hari_uctech
5 Replies
7. HP-UX
hi all,
I am using HP-UX system.
I want echoing * characters while reading password through keyboard instead of blank space.
can u help me for that code?
Thanks (1 Reply)
Discussion started by: hari_uctech
1 Replies
8. UNIX for Dummies Questions & Answers
hi,
I have a for loop where in I write some file name to another file.
I want to write all the filenames to another without any newlines. how can i avoid getting new lines with echo?
Thanks,
Srilaxmi (2 Replies)
Discussion started by: srilaxmi
2 Replies
9. UNIX for Dummies Questions & Answers
Hi All,
Appreciate if anyone can help. I've a script where it does echo function like this
while
do
FILE_ARG="cu0${w}_${FILE}_${DT}.av"
ORACLE_ERROR=`grep "ORA-" ${FILE_ARG}`
if ]; then
Func_Log_Writer "Fail! ${FILE_ARG}\n"
Func_Log_Writer "Error message:... (2 Replies)
Discussion started by: agathaeleanor
2 Replies
10. Shell Programming and Scripting
Hi all,
I tried searching for similar threads. Couldn't get any for Expect scripting.
I am trying automate a task which requires login to a machine. The user
would be prompted for the password. Now, I want this input to be hidden
from being displayed on the screen.
Is there... (1 Reply)
Discussion started by: sudhir_onweb
1 Replies