Search Results

Search: Posts Made By: karthikkasarla
10,256
Posted By jayan_jay
getopt - Linux Command - Unix Command...
getopt - Linux Command - Unix Command (http://linux.about.com/library/cmd/blcmdl1_getopt.htm)
10,256
Posted By divya bandipotu
Hi, Plesae check the below simple code for...
Hi,

Plesae check the below simple code for IF and CASE. Out put for the both are same...

Using IF

clear
echo -e "1.Morning\n2.Afternoon\n3.Evening\n4.Night"
echo -n "Please select from...
10,256
Posted By ygemici
Actually you can use for controlling your code...
Actually you can use for controlling your code with both of them..but usually you must use `case` instead of multiple if..elif statements for specially when all conditions depend just single...
1,053
Posted By sk1418
put the two lines together in a file, then it...
put the two lines together in a file, then it could be single script.:D

grep -l "abc" **/*.txt|sed 's/$/ found/'
grep -vl "abc" **/*.txt|sed 's/$/ not found/'
1,053
Posted By itkamaraj
I want to check in all the directories if there...
I want to check in all the directories if there is a pattern match for xyz. If there

you need to use find command

or grep -R
1,053
Posted By sk1418
is this ok? grep -l "abc" *.txt|sed 's/$/...
is this ok?
grep -l "abc" *.txt|sed 's/$/ found/'
will print "filename found"

grep -vl "abc" *.txt|sed 's/$/ not found/'
will print "filename not found"
2,492
Posted By itkamaraj
bash-3.00$ !sed sed -n 's/^.*=\(.\)/\1/p' test ...
bash-3.00$ !sed
sed -n 's/^.*=\(.\)/\1/p' test
1
2
3
214
bash-3.00$ cat test
aasaasas=1
bsasasasasa=2
sawqas=3
abc=214



your command gives the correct ouput.


bash-3.00$ sed...
Showing results 1 to 7 of 7

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