Search Results

Search: Posts Made By: francis_tom
5,677
Posted By francis_tom
thanks you
thanks you
5,677
Posted By francis_tom
yes, it's not empty ls -al /tmp/list ...
yes, it's not empty

ls -al /tmp/list
-rw-r--r-- 1 root system 1 Oct 13 14:32 /tmp/list

cat /tmp/list

there are a blank ( white ) line

is it possible to add a condition...
5,677
Posted By francis_tom
Hi, i realized test and i have same problem ...
Hi, i realized test and i have same problem

> cat /tmp/list

> cat test_w.sh
VALUE=5000
file=/tmp/list

#validate if file exists and is not empty file
if [ -s ${file} ]
then
for i in...
5,677
Posted By francis_tom
Hi, i test but i have same problem > cat...
Hi, i test but i have same problem

> cat /tmp/list

> cat test_w.sh
VALUE=5000
file=/tmp/list

#validate if file exists and is not empty file
if [ -s ${file} ]
then
for i in `cat...
5,677
Posted By francis_tom
sorry, i 'm not very precise if >cat...
sorry, i 'm not very precise

if
>cat /tmp/list
200O|1000

> cat test_i.sh
VALUE=5000
for i in `cat /tmp/list | awk ' FS="|" { print $2 } '`
do
if [ "${i}" -eq "${VALUE}" ]
then
echo...
5,677
Posted By francis_tom
thanks ---------- Post updated at 05:54 AM...
thanks

---------- Post updated at 05:54 AM ---------- Previous update was at 05:23 AM ----------

it's possible to analyse a non-null file, and a file with a line without character or...
5,677
Posted By francis_tom
test file empty
hi,

I test number on a file, but I have a problem when my file is empty, because the test isn't realized , do you have a idea to realize treatment when file is empty

my test script shell
...
3,093
Posted By francis_tom
check number of character
hi,

I would like to calculate number of character for a number,

for exemple : 1200 --> there are 4 characters , 120001 -> 5 characters
2,893
Posted By francis_tom
thanks, how i can do that with korn shell ?
thanks,

how i can do that with korn shell ?
2,893
Posted By francis_tom
Test Hexadecimal number
Hi,

I would like test if a number (with 2 digit, for example a9 , 0b ) is a hexadecimal number with 2 digit ?
11,883
Posted By francis_tom
Sorry, i would like know , after a division , if...
Sorry, i would like know , after a division , if result is a number integer or not,

( 300 and 301 are value)

echo 300 / 2 | bc -l
150.00000000000000000000
--> it 's ok

echo 301 / 2...
11,883
Posted By francis_tom
Test decimal number
Hi,

I would like test if a number is a decimal number or not
2,487
Posted By francis_tom
extract character + 1
Hi,

I would like extract from a file a character or pattern after ( n + 1) a specific pattern (n) . ( i supposed with awk)

how could i do ?

Thanks in advance.
5,373
Posted By francis_tom
change wc -l
Hi,

I would like realize a script that it can change " wc -l" with "wc -l | sed 's/ //g'", but my problem is that i can have
a pipe ,a variable ( many variable different) or a file after wc...
7,146
Posted By francis_tom
Era, I thank you for your helps. it 's ok :b:
Era, I thank you for your helps.

it 's ok :b:
7,146
Posted By francis_tom
Hi, thanks you for your response. Yes, i...
Hi, thanks you for your response.

Yes, i have this space on AIX, and not on HP-UX. I don't know why ?

right, with echoing , i don't have space , and with a sed too ( cat profile.ksh | wc -l |...
7,146
Posted By francis_tom
Pb with space wc -l
Hi,

i would work hp-ux script on an AIX, and i have a pb with wc -l command, on AIX this command made a space on output and hp not. And I would like use an alias or a function in order to remove...
Showing results 1 to 17 of 17

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