Search Results

Search: Posts Made By: pankaj_tarale
6,807
Posted By pankaj_tarale
Counting lines by Awk
awk 'END { print NR }' file
13,496
Posted By pankaj_tarale
Hi , For removing CTRL ^M character you need...
Hi ,

For removing CTRL ^M character you need to user below commands

For Vi editor
%s/^M//g
By sed command
sed 's/^M//g' <filename>

Another way by tr command
tr -d '\r' <filename>
...
Forum: Fedora 05-10-2012
6,354
Posted By pankaj_tarale
For any other shell you can use the bc as below. ...
For any other shell you can use the bc as below.

ABCDJ=0.5 |bc
GHIJJ=0.75 |bc
if [[ ${ABCDJ} -le 0 || ${GHIJJ} -ge 1 ]]; then
echo hello
fi

-Pank's
Showing results 1 to 3 of 3

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