Search Results

Search: Posts Made By: vls1210
23,116
Posted By vls1210
grep for unique value
If i want to grep for a value in a file but display only unique value then which option can i use.
ex: Values in the file
IP <1.2.3.4> value <2>
IP <1.2.3.4> value <2>
IP <1.2.3.4> value <3>
IP...
55,440
Posted By vls1210
Thanks to all filepath=`pwd` worked
Thanks to all

filepath=`pwd` worked
55,440
Posted By vls1210
how to assign a pwd value to a variable
Hi,

I want to assign a pwd value to a variable


filepath=$pwd


Thx in advance
3,514
Posted By vls1210
[: too many arguments
hi

I am getting too many arguments error for the below line

[code]
if [ $(grep -c ERROR Device.log) -o $(grep -c ERROR DeviceGen.log) -o $(grep -c ERROR Driver.log) -neq 0 ]; then
[\code]
...
3,912
Posted By vls1210
directory change in shell script
Hi,

I am trying to change the directory in my script, & want to check if the directory is present or not .

Ex:
cd /home/xyz/temp/logs

if the logs directory is not present i want to show the...
1,454
Posted By vls1210
it worked
thx a lot the logic worked.
1,454
Posted By vls1210
Else part is not working in my script
if [ $(grep -c ERROR Device.log) -o $(grep -c ERROR device gen.log) -o $(grep -c ERROR Driver.log) -gt 0 ]; then
echo "Below are the Error Displayed log for the Run Number [$1]" >>...
Showing results 1 to 7 of 7

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