Search Results

Search: Posts Made By: priyam
2,159
Posted By priyam
Not homework
No this is not homework. Unfortunately one of the embedded system I work on doesnt support awk.Hence the requirement.


Thanks,
Priya.
2,159
Posted By priyam
Awk replacement
Hi all,

I need help in replacing awk with sed for the below.

1 ) cat list | awk -F" |," '/MATH/ {sub(/[[:alpha:]]*/,"",$3); print $3}'
Eg: file : list
Sno Subno Name
1 SUB1 ENG
...
5,017
Posted By priyam
Think you are right about the version. >awk...
Think you are right about the version.

>awk '/ENG/ {$0=$2;FS="[A-Z,]";print $(NF-1)}' ~/eg
ENG123,
Anyways , thanks for the help.
-- Priya
5,017
Posted By priyam
Thanks, but this one not working
This is not giving the 123 I needed. This is giving the o/p: ENG123,

---------- Post updated at 09:13 PM ---------- Previous update was at 09:11 PM ----------




Thanks all of above are...
5,017
Posted By priyam
Awk/sed solution for grep,cut
Hi,

From the file "example" with lines like below, I need the int value associated with ENG , i.e, 123


SUB: ENG123, GROUP 1
SUB: HIS124, GROUP 1
..
..


Normally , i do

grep ENG...
2,799
Posted By priyam
Thanks . This is working !
Thanks . This is working !
2,799
Posted By priyam
Vi search and replace help
Hi all,

I need to replace all the patterns "/bin/echo" to "echo". How can search for "/bin/echo" in vi ?

Thanks.
Priya
4,214
Posted By priyam
file-nr ?
#cat /proc/sys/fs/file-nr
5304 0 176845

its said that :
1st value is: total allocated file descriptors
2nd value: total free allocated file descriptors
3rd value: maximum number of...
3,632
Posted By priyam
reply
Core == coredumps

Well when ? I really dont knw ..

All this is happening on a machine running with embedded software with linux kernel as os.
3,632
Posted By priyam
Core create as "not a tty"
When a process aborted , it created a core like

-rw-r--r-- 1 root root 2 Mar 19 14:34 not a tty


This happens very less often, was not able to determine the exact problem.
...
47,073
Posted By priyam
Thanks
The above methods are working ... Thanks:)
47,073
Posted By priyam
but this is showing output as 6 instead of 5 ?Why...
but this is showing output as 6 instead of 5 ?Why is that so ?
47,073
Posted By priyam
Delimiter count in a string.
Hi ,

I need to get the delimiter "-" count in a particular string.

string= SYS_NAME-123-S5-2008-10-20.LOG

the delimit "-" count is 5 .

Using sed or awk can I know the count ?

I have...
2,831
Posted By priyam
What abt the timestamp ? I did the below ...
What abt the timestamp ? I did the below

$echo SYSTEM_NAME-232-S7-200810060949.LOG | cut -d"-" -f 4|cut -d"." -f1

200810060949

but wondering that if this will be applicable if there is one...
2,831
Posted By priyam
Thanks for the reply ...
Thanks for the reply ...
2,831
Posted By priyam
I tried...
I am not good at doing cut cmd .
Tried some of the below cmds !

$ echo SYSTEM_NAME-232-S7-200810060949.LOG | cut -f3 -d"-"
S7
( i need 7 only)
$echo SYSTEM_NAME-232-S7-200810060949.LOG | cut...
2,831
Posted By priyam
pattern extract
Hi

I have a pattern like :
SYSTEM_NAME-232-S7-200810060949.LOG

Here I need to extract system name and the timestamp and also the numeric number after "-S" i.e 7 here .

I am not very...
1,613
Posted By priyam
No I am not working on AIX ...
No I am not working on AIX ...
1,613
Posted By priyam
Hi mano ... your suggestion didnt work .... ...
Hi mano ... your suggestion didnt work ....
But vidyahar's suggestion worked ....

Thanks for your suggestions ..
1,613
Posted By priyam
Delete a file ...
I got a file with filename

I dont know the file -R got created !? :confused:

I dont know how to delete it ...

Change anyone tell me how to delete that file..??
50,877
Posted By priyam
Try this ...
You can also do


rm -r <directory_name>
3,134
Posted By priyam
Thank you
Thanks for the help.
Executed both the commands and each serves a different purpose.

Thank you.:)
3,134
Posted By priyam
regarding floppy
Regarding floppy drive ..

I need a command or a method by which i can detect a floppy drive is present or not ?

Thanks,
Priya.
2,577
Posted By priyam
doubt in .cshrc
what kind of information is there .cshrc ?

I want to set an alias in the form of
=>#alias setprompt 'set prompt=">>$user<<@`hostname`:${cwd}% "'

Ex. alias pr 'cd /home/username'

when I...
Showing results 1 to 24 of 24

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