Search Results

Search: Posts Made By: nareshkumar522
2,789
Posted By nareshkumar522
Thanks elixir.It works fine and very useful
Thanks elixir.It works fine and very useful
2,789
Posted By nareshkumar522
If i don't know the string length then what will...
If i don't know the string length then what will be the script.
2,789
Posted By nareshkumar522
No Its not homework.I have the single file where...
No Its not homework.I have the single file where I splitted into two files.For simplification I have given the above one.



cat tmp.txt
/sad/a
/sda/b
/sda/c
/sda/d
/sdb/l
/sdb/j
/sdb/k...
2,789
Posted By nareshkumar522
String concatenation
Hi,
I have two files.

cat file.txt
a
b
c
d

cat file1.txt
j
k
l
m



I need the output as

a:j
4,051
Posted By nareshkumar522
Here is the code for perl script. The perl...
Here is the code for perl script.

The perl script is inbuilt script which I am using to list pools

(LP) List Pools

Below is the code of perl



Enter the action you would like to...
4,051
Posted By nareshkumar522
ctrl-c in shell script
The below script has Perl script in it where it gives the usage details.

filer.sh


echo
echo -en "Enter filer : "
read filer
echo "test.pl -f $filer -F L"



Output
=========


...
3,664
Posted By nareshkumar522
Thanks its worked
Thanks its worked
3,664
Posted By nareshkumar522
I want to check this in single command with elif...
I want to check this in single command with elif


cat hostawk.log | grep 1 | egrep -v "G|T|K|M"
if [ $? -eq 0 ]; then


I tried using this

elif [ $# [ `(cat hostawk.log | grep 1 | egrep...
3,664
Posted By nareshkumar522
let me clearly explain you.I am checking for...
let me clearly explain you.I am checking for Stale NFS issues on Host.



This is one example of one host for Stale NFS issue


type1
==========
[root@host2 host3]# cat host3awk.log
8.9G ...
3,664
Posted By nareshkumar522
Hi Could you please help me how to correct...
Hi
Could you please help me how to correct it.
3,664
Posted By nareshkumar522
if statement issue
I am getting below error with extension of above script.




#!/bin/bash
#set -x
#
grep - hostawk.log

if [ $? -eq 0 ]; then



if [ `cat hoststale.log | wc -l` -eq 1 ];...
3,664
Posted By nareshkumar522
Thanks a lot for all .Its working Fine Now
Thanks a lot for all .Its working Fine Now
3,664
Posted By nareshkumar522
Hi Could some one please check and help me...
Hi
Could some one please check and help me what could be the correct syntax
3,664
Posted By nareshkumar522
line 40: syntax error near unexpected token `fi' ...
line 40: syntax error near unexpected token `fi'
line 40: `fi '
3,664
Posted By nareshkumar522
Error in if statement
I am working on script for stale nfs.

the file consists of



cat data01stale.log
- - - - /abcd/backup
- - ...
1,323
Posted By nareshkumar522
Thanks
Thanks
1,323
Posted By nareshkumar522
Thanks it working [root@a client]#tail...
Thanks it working


[root@a client]#tail -1 test.log | awk '{print $8}' | perl -nle 'if (/(\d{2})\/(\d{2})\/(\d{2})/) {print $3,"/",$2,"/",$1} ;'
23/09/10
[root@a client]#



But I was...
1,323
Posted By nareshkumar522
Replacing pattern
Hi,

I have a file which contains the below data. I want to change pattern to correct format.


[root@ client]# tail -1 test.log | awk '{print $8}'
10/09/23
[root@client]#




I want the...
8,165
Posted By nareshkumar522
All the three replies worked 1.sh -x...
All the three replies worked

1.sh -x stale1.sh
+ awk '$1 $2 $3 == "---" { exit 1 }' file
+ '[' 1 -ne 0 ']'
+ echo 'nfs issue'
nfs issue



2.sh -x stale2.sh
++ awk '{ print $1 }' file
+...
8,165
Posted By nareshkumar522
eval in shell scripting
I am stuck on something that should really be simple, and was looking for some help..

I am new to shell scripting.Need help on this.....

The script is to find the stale nfs.


cat file
- ...
Showing results 1 to 20 of 20

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