Search Results

Search: Posts Made By: babusek
19,780
Posted By babusek
Thaks @scott The First Command giving the...
Thaks @scott

The First Command giving the lines along with the start_pattern and end_pattern.:eek:
can u please tell me the exact command to output the lines only between the pattern's.
19,780
Posted By babusek
HI Can u please tell if i pass the , start...
HI Can u please tell if i pass the ,

start and end patterns as arguments i mean

nawk '/$end_Pattern/{print;exit} /$start_Pattern/{p=1}p' infile > another.file

where end_Pattern=bye
...
1,953
Posted By babusek
Difference between two files
HI Folks,
sorry if it is a naive question.

i have two files . "file1.txt" & "file2.txt"
contents in files:
file1.txt file2.txt
...
4,407
Posted By babusek
Sorry dude above one is not working ...
Sorry dude above one is not working

-bash-3.00$ grep -w \/opt tr.txt
output :/opt
/opt/share
/opt/vind

what do u say ?
4,407
Posted By babusek
cat test | grep -w "\/opt" i think it...
cat test | grep -w "\/opt"


i think it will also do
7,408
Posted By babusek
Thanks buddy, ya input.txt has lines , and u r...
Thanks buddy,
ya input.txt has lines , and u r code working fine ..
Thanks a lot guys .. keep the spirit
7,408
Posted By babusek
Thanks dude. check this my shell is bash ...
Thanks dude.
check this

my shell is bash

echo $SHELL
/bin/bash


so iam using bash shell , and u said i changed the permissions to the file as a+x , still the output not showing...
7,408
Posted By babusek
hii Palse, sorry the variable values are not...
hii Palse,
sorry the variable values are not updating , let me post the code which i have written ( as u said)
#!/bin/bash
count=0
i=0

while read line
do
i=`expr "$i" + 1`
...
7,408
Posted By babusek
Hi Palse, Thanks For u r reply , i tried the...
Hi Palse,
Thanks For u r reply , i tried the same but the variables are not updated.
i value = 0
count value = 0

and iam using the bash shell
7,408
Posted By babusek
How to get the modified value of variable outside the while loop reading from a file
Hi Friends ,
Sorry if this is a repeated question ,



The input file contains 5 lines , so the the values of the variables i and count should b
i=5;
count=15

but the variables are not...
Showing results 1 to 10 of 10

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