Search Results

Search: Posts Made By: Manabhanjan
3,354
Posted By Manabhanjan
Thanks vgersh99 for the code nawk...
Thanks vgersh99 for the code
nawk 'FNR==NR{u[$1];next}$1 in u {$7="/bin/sh"}{l[FNR]=$0}END {close(FILENAME);for(;++i in l;) print l[i]>FILENAME}' FS=: OFS=: usr.txt passwd.txt
But in my OS nawk is...
3,354
Posted By Manabhanjan
search and edit in the same file using awk
Hi,
I am having a user.txt contains the name of users and passwd.txt file contains as passwd.txt
$cat usr.txt
root
bin
daemon
cap

$cat passwd.txt
root:x:0:0:root:/root:/usr/bin/ksh...
34
78,313
Posted By Manabhanjan
hey buddy its very good post :cool: Can any...
hey buddy its very good post :cool:
Can any body tell me how to define a function and use it.
8,724
Posted By Manabhanjan
try this unzip -l file.zip |grep pattern
try this
unzip -l file.zip |grep pattern
28,829
Posted By Manabhanjan
Could you explain how internally it works and i...
Could you explain how internally it works and i am surprised it's giving same result if replace the number 1 with any number.
8,509
Posted By Manabhanjan
you can try this sed '/pattern/{x;p;x}'...
you can try this

sed '/pattern/{x;p;x}' file.txt:)
14,047
Posted By Manabhanjan
In gvim you can :%s/\d\+/(&)/g
In gvim you can

:%s/\d\+/(&)/g
4,481
Posted By Manabhanjan
Nice post by Dj Could it is possible that...
Nice post by Dj

Could it is possible that if we give pattern2 which is not available in file then it's going for whole file search & result is coming in that format.

If i give Feb 04 rather...
42,110
Posted By Manabhanjan
U can also mention the mode of search history . ...
U can also mention the mode of search history .
I mean
:history c or : #for command line history
:history s or / #for search string
:history e or = # for expression register...
14,281
Posted By Manabhanjan
Split your file with the two file . I mean aa...
Split your file with the two file . I mean
aa bb cc dd
ee ff gg hh
jj kk ll mm
to a file
and
a
b
c
d
e
to another file.
With the help of tr command you just try to put a new line in...
2,712
Posted By Manabhanjan
uniq command will work if the file is sorted one ...
uniq command will work if the file is sorted one
so use sort command before using uniq command.
17,888
Posted By Manabhanjan
copy file using a variables
i am having a file name hello.txt i want to move it to some where in the destination folder suppose name is accnt
i have done this things but not working , can't we assign a path to a variable
...
2,041
Posted By Manabhanjan
Rename a file
i am having a file i want to rename the same file mean add another extension to the file .
suppose i am having a file temp.txt
i want temp.txt.today_date as the extension

if i go for

mv a...
2,648
Posted By Manabhanjan
@ kcoder24 i got your point , But i need is...
@ kcoder24

i got your point , But i need is there any regular expression to do both the number or space search at the first character of the line.
2,648
Posted By Manabhanjan
Delete the line started with nondigit or newline character
i want to delete the line which is not started with numeric in vim.

vim temp.txt

Volume in drive D is DATA
Volume Serial Number is 8C52-2055

Directory of D:\data\notes

02/16/2010 ...
1,863
Posted By Manabhanjan
rev command
Check out the command
$rev file.txt
which is going to reverse the line.
26,594
Posted By Manabhanjan
Sum of a columns in vi/vim
Hi,

i want to find out the sum of a column in vi/vim not by using any other editor or filter like sed/awk. Is there any function available to do the sum of a column.

let
cat>number.txt
one ...
1,725
Posted By Manabhanjan
Thanks tytalus vey much. great............ ...
Thanks tytalus vey much.

great............

i just typed wrongly pfizer to pfizet

regards,
mana

---------- Post updated at 03:02 PM ---------- Previous update was at 02:53 PM ----------...
1,725
Posted By Manabhanjan
how to deleting except the patern in a file
Hello respected members,

I have a file wich has several fields separated by space. I want to remove all the fields which are not the client_name.
I mean the field which are not "pfizer","csx" and...
3,685
Posted By Manabhanjan
you are telling this is your out put but i am...
you are telling this is your out put but i am confused by seeing some records of your output


SIG 2007 3 24 4 35 45.80 5.2600 94.3100 58 0 5.20 0 0.00 5.00 0.00 0 0.00 5.20 0
...
Forum: Programming 07-18-2008
5,604
Posted By Manabhanjan
core dump
how to view core dumped file using gdb and how to extract information from the coredumped file.can we get similar information from the other utilites like strace or ptrace.
Showing results 1 to 21 of 21

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