9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi ! all I am just trying to check range in my datafile
pls tell me why its resulting wrong
admin@IEEE:~/Desktop$ cat test.txt
0 28.4
5 28.4
10 28.4
15 28.5
20 28.5
25 28.6
30 28.6
35 28.7
40 28.7
45 28.7
50 28.8
55 28.8
60 28.8
65 28.1... (2 Replies)
Discussion started by: Akshay Hegde
2 Replies
2. Shell Programming and Scripting
# cat ./xx.sh
#!/bin/sh
cat <<EOF >> /tmp/111
#!/bin/sh
for eth_device in \`ifconfig |awk '/eth/{print $1}'\`
do
dhclient \$eth_device
done
EOF
# ./xx.sh
./xx.sh: line 8: warning: here-document at... (3 Replies)
Discussion started by: yanglei_fage
3 Replies
3. Shell Programming and Scripting
Hi Team,
I am trying to add timestamp to SQLs by taking the timestamp in variable through shell script.I started like this.
cat << EOF > $MYDIR
CONNECT TO $MYDB USER $MYUSR USING $MYPWD;
T=`db2 -x "select CURRENT_TIMESTAMP from sysibm.sysdummy1 "`;
DECLARE RECCUR CURSOR FOR... (3 Replies)
Discussion started by: rocking77
3 Replies
4. Shell Programming and Scripting
Hello attempting to redirect out to create a startup script in solaris. The steps are working but the $1 entry is being left out. syntax below and content of output file below.
cat > S99build << EOF
> #!/bin/bash
> case $1 in
> 'start')
> /usr/os-buildsol.sh
>
> ;;
> esac
> exit 0
>... (3 Replies)
Discussion started by: juanb25
3 Replies
5. Shell Programming and Scripting
Hi friends ,
I am confused with << EOF
EOF
Most of the cases I found
sqlplus $db_conn_str << EOF
some sql staments
EOF
another exapmle is
#!/bin/sh
echo -n 'what is the value? '
read value
sed 's/XXX/'$value'/' <<EOF
The value is XXX
EOF (1 Reply)
Discussion started by: imipsita.rath
1 Replies
6. Shell Programming and Scripting
Hello,
So I sorted my file as I was supposed to:
sort -n -r -k 2 -k 1 file1 | uniq > file2
and when I wrote
> cat file2
in the command line, I got what I was expecting, but in the script itself
...
sort -n -r -k 2 -k 1 averages | uniq > temp
cat file2
It wrote a whole... (21 Replies)
Discussion started by: shira
21 Replies
7. UNIX for Dummies Questions & Answers
Hi
Can anybody tell the difference between Difference between cat , cat > , cat >> and touch command in UNIX?
Thanks (6 Replies)
Discussion started by: skyineyes
6 Replies
8. Programming
How can I write EOF into a file?
I tryed to do as follows:
size=sizeof(EOF);
end_of_file=EOF;
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
5 Replies
9. UNIX for Dummies Questions & Answers
Hi,
Can anyone explain me what this function is doing
cat << EOF > HELPFILE
/$1/ { print "SENT" }
EOF
Thanks in Advance
Suggestions welcome (1 Reply)
Discussion started by: trichyselva
1 Replies