Search Results

Search: Posts Made By: Nidhi2177
32,341
Posted By Nidhi2177
Thanks All, I have got the solution.. ...
Thanks All,

I have got the solution..


lines=`ls -l | tr -s [:space:] | cut -d ' ' -f 5 | wc -l`
lines=`expr $lines - 1`

echo "Fifth column of 'ls -l' command:::"
ls -l | tr -s [:space:]...
32,341
Posted By Nidhi2177
Thanks for this prompt reply.. But I know this......
Thanks for this prompt reply.. But I know this...

What can we use instead of 'awk' to do the same?? cut???

Regards,
Nidhi...
32,341
Posted By Nidhi2177
Can we use 'tr' command to print 5th column of output of 'ls -l'
Hi All,

I know awk command can do it, but can we use tr command to print 5th column of out put 'ls -l' command????

Regards,
Nidhi...
39,835
Posted By Nidhi2177
Thanks Vino...
Thanks Vino...
39,835
Posted By Nidhi2177
how to unset the readonly variable
Hi All,


May be this is a very simple question...

[trainee@Venus trainee]$ b=8
[trainee@Venus trainee]$ readonly b
[trainee@Venus trainee]$ echo $b
8
[trainee@Venus trainee]$ b=90
-bash:...
20,568
Posted By Nidhi2177
Hey Agent, use sed 's/$var1/$var1=$var2/g'...
Hey Agent,

use
sed 's/$var1/$var1=$var2/g' file1.x > file2.y

Regards
Nidhi
2,982
Posted By Nidhi2177
file_no's content are 34 45 56 77 55 ...
file_no's content are
34
45
56
77
55
66
54
67


tempfile=file_no
for number in `cat $tempfile`
do
number=$((number-1))
echo $number
done
9,651
Posted By Nidhi2177
Thank u all, I have got the solutions.. ...
Thank u all, I have got the solutions..
Regards,
Nidhi
9,651
Posted By Nidhi2177
How to find vowel's occurence in a string
Hi All,

I want to search the string for vowel's occurence and find the no of occurence of each vowels, Could anyone help me out? This is urgent to me...I m new to Shell programming..

Thanks and...
Showing results 1 to 9 of 9

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