10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have an ascii file in which few columns are having hex values which i need to convert into ascii. Kindly suggest me what command can be used in unix shell scripting?
Thanks in Advance (2 Replies)
Discussion started by: HemaV
2. Shell Programming and Scripting
Hi friends ,
I am confused with << EOF
Most of the cases I found
sqlplus $db_conn_str << EOF
some sql staments
another exapmle is
echo -n 'what is the value? '
sed 's/XXX/'$value'/' <<EOF
The value is XXX
EOF (1 Reply)
Discussion started by: imipsita.rath
3. Shell Programming and Scripting
I have a file in unix with ascii values. I need to convert all the ascii values in the file to ascii characters. File contains nearly 20000 records with ascii values. (10 Replies)
Discussion started by: sandeeppvk
4. Shell Programming and Scripting
Can I write a routine that allows me to in a txt file check line by line until the end of file?
maybe it is a stupid question but I never learned shell scripts and I need this :p
thanks in advance (1 Reply)
Discussion started by: ruben.rodrigues
How can I write EOF into a file?
I tryed to do as follows:
write(fdMutexRichieste, &end_of_file, size);
But it does non work correctly,
becouse in the next cicle (using lseek(..., SEEK_END) of my code it seems to ignore my EOF and use the LAST... (5 Replies)
Discussion started by: DNAx86
6. Shell Programming and Scripting
I'm trying to connect to oracle with the following code in the script:
checksqlerror "failed to connect to oracle"
If I'm passing wrong schema name,instead of executing checksqlerror it stops and expects user... (2 Replies)
Discussion started by: BhawanaAggarwal
7. Shell Programming and Scripting
in a shell script i came accross the following bit of code
1.shift $(($OPTIND - 1))
2.if ; then
3. cat << EOF >&2
4.Usage: $0 lockfilename
6. exit 1
I am not able to understand the meaning of lines(1,3,5).
Can any one of u tell me the purpose of above said lines.... (1 Reply)
Discussion started by: ravi raj kumar
8. UNIX for Dummies Questions & Answers
I have written this code:
echo 'Now choose the file or files you want to merge your input with: \c'
for file in $filenames; do
echo "Now that you've chosen these files ($filelist), please start typing: "
until ; do
paste -... (2 Replies)
Discussion started by: fiol73
9. UNIX for Dummies Questions & Answers
how end of a file is detected in UNIX system?
does it make use of any special symbols to identify the EOF? :(
thank you all (5 Replies)
Discussion started by: compbug
10. Shell Programming and Scripting
I'd like to access a windows directory from aix with samba client.
To allow direct access (not interactive), i'm using EOF like:
smbclient \\\\winserver\\windir 'passwd' -U usersmb << EOF
The access is correct but does somebody know how to trap errors... (1 Reply)
Discussion started by: jo_aze