Search Results

Search: Posts Made By: arindamlive
2,662
Posted By Corona688
That's not precisely what I suggested. You left...
That's not precisely what I suggested. You left out some characters as well as leaving out two important steps.

You never said x was a variable, either. I'll have to change it for that.

awk...
1,837
Posted By itkamaraj
using cut grep -n -i -w "linux from the...
using cut


grep -n -i -w "linux from the text" unix.txt | cut -d":" -f1 > newfile.txt
1,837
Posted By Jairaj
Try this : grep -n -i -w "linux from the...
Try this :

grep -n -i -w "linux from the text" unix.txt | awk -F ":" '{print $1}' > newfile.txt
1,837
Posted By danmero
awk -vVar="linux from the text"...
awk -vVar="linux from the text" 'tolower($0)~Var{print NR}' file > new.file
3,246
Posted By itkamaraj
put the below lines in the .profile or .bashrc...
put the below lines in the .profile or .bashrc file ( under your home directory )


echo "Hello $LOGNAME"
echo "Welcome to $HOSTNAME"
1,649
Posted By yazu
x=`echo "hello123" | tr -dc '[0-9]' | wc -c` ...
x=`echo "hello123" | tr -dc '[0-9]' | wc -c`
And don't put spaces around the equal sign.
Showing results 1 to 6 of 6

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