Search Results

Search: Posts Made By: vmachava
8,585
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?
8,585
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?
865
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...
10,361
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 ...
10,361
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...
16,682
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,472
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,472
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,530
Posted By vmachava
about mv
yes it is working.:b:

i tried with mv *.txt info\ it is working
1,530
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
...
1,267
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.
15,066
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

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