Hello
Can anyone can help me to understand the first question of the exercise 25,21 of Elmasri-Navath 4th edition?
We have a distributed database system:
3 bookstores S1,S2,S3 and the books are distributed in this way
S1: B1 B4
S2: B1 B2
S3: B1 B2 B3 B4
where BOOKS
B1 : 0<price <20
B2 ...
Hello
I want to put into a struct three numbers from a text file
in which each number is in different line. I tested fgets to read line by line, but i cant think an efficient way to read three integers each time
For example
struct nums
{ int x,y,z; }
nums1={1,2,3} nums2={4,5,6}
text file...
Hello guys
I am using this , it will print all the files which the final character in each name is e right?
It will also contain files with .e extension?
find . -name '*[a-zA-Z0-9][e]' -print
Look my test
./ddd.sh.save
./c1.exe
./.gconf/desktop/gnome
./.gconfd/saved_state
it didn't...
Hello again
I cant understand why this is working fine
#!/bin/bash
#line counter
declare -i total=0
for file in $(find $PWD/*.txt -print)
do
total=$(($total + $(awk 'END { print NR}' $file )))
done
echo $total
and this not for: sh script.sh *.txt
#!/bin/bash
#line counter
declare -i...
Hello
I am new in unix . I would be grateful if you could help me , i want to manage lines of a text file for example i want to do [grep sth] for the first file(first line) of the text file.
i use this code
ls -lR | awk ' BEGIN {print "LIST OF ALL FILES"} /[-]rw*/ {print $9} END {print "...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.