Search Results

Search: Posts Made By: flash80
13,919
Posted By flash80
I am getting the same output. What is the...
I am getting the same output. What is the diffrence between file size and disk usage?
alioune@baccus ~/bashtuto/uip $ ls -lh | awk '{print $9, $5}'

access.log.0 450M
access.log.1 99M...
13,919
Posted By flash80
For a more readable output you can use. du -hs...
For a more readable output you can use.
du -hs * |awk '{print $2 "\t" $1}'

alioune@baccus ~/bashtuto/uip $ du -hs * |awk '{print $2 "\t" $1}'
access.log.0 450M
access.log.1 99M...
10,125
Posted By flash80
Retun yesterday's date on HP-UX
I would like to know how to get previous day date on HP-UP.

On linux i proceed the follwoing way.

alioune@baccus ~/bashtuto/uip $ date +%Y-%m-%d -d "1 day ago"
2011-03-27
alioune@baccus...
5,644
Posted By flash80
Tested and working. Thx again. your help is much...
Tested and working. Thx again. your help is much aprciated..
5,644
Posted By flash80
GPStoPic apply to multiple files
Chulber_XL, thx for thi sversion. I tried it but all the information is not printed on the pictures. the black frame is too shorl also.

New Script - 2n version
http://i51.tinypic.com/207m9t3.jpg...
5,644
Posted By flash80
thx, I tested it, but the frame txt is not...
thx, I tested it, but the frame txt is not complete.
alioune@baccus ~/GPStagtoPic $ chmod u+x GPStagtoPic.sh
alioune@baccus ~/GPStagtoPic $ ./
-bash: ./: is a directory
alioune@baccus...
5,644
Posted By flash80
thx again Chuble_XL it is working very well the...
thx again Chuble_XL it is working very well the black frame is perfect.

The script is working for a specific jpg. I would like it work for any jpg, using the following form.

GPStoPic file1.jpg ...
5,644
Posted By flash80
Here is the Jhead output. but I only need th gps...
Here is the Jhead output. but I only need th gps part.

alioune@baccus ~/GPStagtoPic $ jhead ML.jpg
File name : ML.jpg
File size : 583257 bytes
File date : 2010:12:28 16:45:05
Camera...
5,644
Posted By flash80
print metadata to jpg
Hi all,

I would like to write a scipt that gets gps informatoin from a jpg and print 's it on the lower left corner, In order to get the gps data I have found a tool called jhead. In know that...
4,684
Posted By flash80
Segment a big file into smaller ones
Greeting to all.

I have big text file that I would like to segment into many smaller files. Each file should be maximum 10 000 lines.

The file is called time.txt. after the execution of the...
1,665
Posted By flash80
file modified case $2 in "+" ) echo "`expr...
file modified
case $2 in "+" )
echo "`expr $1 + $3`" ;;
"-" )
echo "`expr $1 - $3`" ;;
"*" )
echo "`expr $1 \* $3`" ;;
"/" )
echo "`expr $1 / $3`" ;;
esac



test
...
1,665
Posted By flash80
Just tested but it returns an error ...
Just tested but it returns an error

alioune@baccus ~/bashtuto/bashExercise $ ./q4.sh 2 \* 2
expr: syntax error

alioune@baccus ~/bashtuto/bashExercise $
1,665
Posted By flash80
case construction for basic Arithmetics calculation
the scrip (q4.sh) should perform the following calcuation (+, -, / and *) it should be used like this:
q4.sh number1 operation number2

I wrote it already but the "*" does not work.
#!/bin/bash...
3,159
Posted By flash80
Thanx to all I have reviewed all you solutions. I...
Thanx to all I have reviewed all you solutions. I learned a great deal.

@Chubler_XL

What is this test for. and why do you send to /dev/null?


BR.

---------- Post updated at 03:58 AM...
3,159
Posted By flash80
3 numbers and return the maximum
Hello,
I am doing bash and for that doing excersices. The folowing one asks for 3 numbers and is suppose to return the maximum. An error should be returned if on of the numbers is missing. I managed...
Showing results 1 to 15 of 15

 
All times are GMT -4. The time now is 05:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy