can any one suggest some one liner such that when executed will display df -h output of the mount points that are 90% or more that it.. and not the remaining..
the ouput of this one liner has gone little out of format..
see the below normal output of df -h which has the even spacing..
is there anyway i can get the output in the same format ?
i figured out one way.. but i feel there would a better and cleaner way
please help me out..
---------- Post updated 12-09-11 at 04:13 AM ---------- Previous update was 12-08-11 at 10:18 AM ----------
The previous code printed the heading 'Mounted' followed by the mount point names.. that is the reason it was throwing error. Now the above pasted code works fine
But would be eager to know if there is another way for this
Dear Awk Experts,
I can write oneliner some time but find difficulty writing like a flow of a program in multiple lines,
could you please help how to write awk program , like long awk programs, any help to start with,
For example,
How to write this in multiple line:
ls -l | awk... (6 Replies)
Hello,
I was trying to split a string to characters by perl oneliner.
echo "The quick brown fox jumps over the lazy dog" | perl -e 'split // ' But did not work as with bash script pipe:
echo "The quick brown fox jumps over the lazy dog" | fold -w1 | sort | uniq -ic 8
1 T
1... (6 Replies)
Hi,
I need to replace the ip 1.1.1.1 with the name test.sol.box . I have tried and come up with following code.
do we have any other way of doing this with nawk??
Data:
#This is a test setup.Please enter your values and corresponding port number here
##########################
Server Host... (5 Replies)
for example, i have a file with below content:
123413
866688
816866
818818
i want the output as:
This is header
123413
866688
816866
818818
This is trailer
i am able to achieve it using a bash script. (2 Replies)
Hi
I have a file say text.txt and has data as below.
text.txt
-------
/abc/def/tom/hanks
/abc/def/al/pacino
/def/dgg/matt/damon
Now I have to cut the field 3 and field 4 treating / as delimiter and save in the same file. Below is the how the output should be in the same file.
I... (1 Reply)
I am trying to take first 3 columns in a file which matches the word "abc", but i am getting the below error,
<error>
Global symbol "@F" requires explicit package name at ./new.pl
</error>
whereas when i give the below,grep abc /home/test/file.txt|perl -lane 'print \"$F $F $F\" in unix prompt... (4 Replies)
is this possible a one liner sed command.
I have a text file ex.
from :
xxx yyy ZZZ /test/devl/aasdasd.log1
xxx yyy ZZZ /test/devl/aasdasd.log2
to :
xxx yyy ZZZ /test/prod/aasdasd.log1
xxx yyy ZZZ /test/prod/aasdasd.log2
and I want to sed only the fourth column
sed 's/devl/prod/g' ... (8 Replies)