Search Results

Search: Posts Made By: vmachava
7,520
Posted By vmachava
so what you are saying is grep -E is useful while...
so what you are saying is grep -E is useful while we are using extended regular expressions.right?
7,520
Posted By vmachava
grep vs egrep vs grep -E
i am confusing in grep Vs egrep vs grep -E.could any body explains very clearly?
686
Posted By vmachava
replace a string
i have very small doubt .I ran the below command

echo "abc this is abc" | sed 's/abc/changed'

i am getting the below output

changed this is abc

but i am expecting

changed i am changed...
6,879
Posted By vmachava
remove the header and footer using sed
yes it is working fine. could you explain difference between your's executed command and mine?

dear ctsgnb,

could you explain the difference between
sed s/#*// file1.txt>file2.txt

and ...
6,879
Posted By vmachava
remove the header and footer using sed
I want to delete the header and footer in the file by using sed for that i ran the below script and my text file looks like

emp.txt

# This file contain employee
# information

abc 12300 34...
9,279
Posted By vmachava
find command in for loop
i have executed the following command in terminal

find /Users/vasu -name "*.txt" -print

and i am getting the result

/Users/vasu/file1.txt
/Users/vasu/file2.txt
/Users/vasu/file3.txtbut...
1,245
Posted By vmachava
about rm
so my understanding about rm is correct?is it deletes only references?are we call references in unix as links?
1,245
Posted By vmachava
about rm
i read in one of the article like if we use rm utility to delete the file it will delete only the link.By reading this i understood that it will delete the reference to that file in memory not the...
1,157
Posted By vmachava
about mv
yes it is working.:b:

i tried with mv *.txt info\ it is working
1,157
Posted By vmachava
about mv
Directory contains following files
file1.txt
file1.sh
file2.txt
file2.sh
file3.txt
file3.sh
info(directory)
i want to move all the text files to info directory.So i executed below command
...
826
Posted By vmachava
about dates, comparing and calculation
Hi,

can we do date comparisons in unix? like if i give the two dates find which date is old one and which is new one and difference between the two dates in terms of hours,minutes,days and months.
12,474
Posted By vmachava
word count with grep
Hi,

It is very interesting to learn the unix, i just struck with a doubt like i have below content in my file
xyz
xyz xyz
xyz

i just want know the word count by using grep -wc 'xyz'...
Showing results 1 to 12 of 12

 

Featured Tech Videos

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