Sponsored Content
Top Forums UNIX for Advanced & Expert Users how to fetch part of a line and display Post 302573928 by rampriya.s on Wednesday 16th of November 2011 05:15:37 AM
Old 11-16-2011
Hi ygemici

I got the output with "n" prefix with every start of line

Code:
nStudent: Hari Roll No: 24777 Phone No: 122334 nStudent: Sudha Roll No: 247911 Phone No: 34552111 nStudent: Lata Roll No: 247790 Phone No: 7675656554
nStudent: Kutty Roll No: 24677 Phone No: 12442334 nStudent: Sudhar Roll No: 247411 Phone No: 3455244111

Moderator's Comments:
Mod Comment Please use code tags!

Last edited by zaxxon; 11-17-2011 at 04:28 AM.. Reason: code tags, see PM
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

display full unix path as part of the command line

Hi all, Does anyone know how to ammend the .cshrc file in $HOME for your session to display the path as part of the command line? So that I dont need to keep on typing pwd to see where I am? thanks Ocelot (3 Replies)
Discussion started by: ocelot
3 Replies

2. Shell Programming and Scripting

How to fetch a value from a single line

i have the following line: </PRE></TD></TR><TR><TD><B>Events in</B></TD><TD>95</TD></TR><TR><TD><B>Events/sec</B></TD><TD>0</TD></TR><TR><TD><B>Messages out</B></TD><TD>95</TD></TR><TR><TD><B>Messages/sec i want get the value of Messages out which has value 95 exists in same row. can... (1 Reply)
Discussion started by: Aditya.Gurgaon
1 Replies

3. Shell Programming and Scripting

How to fetch a specific line from file

Hi, I have text file in the following strucher . The files contain hondreds of lines. value1;value2;value3;value4 I would like to get back the line with lowest date (values4 field). In this case its line number 3. groupa;Listener;1;20110120162018 groupb;Database;0;20110201122641... (4 Replies)
Discussion started by: yoavbe
4 Replies

4. Shell Programming and Scripting

fetch last line no form file which is match with specific pattern by grep command

Hi i have a file which have a pattern like this Nov 10 session closed Nov 10 Nov 9 08:14:27 EST5EDT 2010 on tty . Nov 10 Oct 19 02:14:21 EST5EDT 2010 on pts/tk . Nov 10 afrtetryytr Nov 10 session closed Nov 10 Nov 10 03:21:04 EST5EDT 2010 Dec 8 Nov 10 05:03:02 EST5EDT 2010 ... (13 Replies)
Discussion started by: Himanshu_soni
13 Replies

5. Shell Programming and Scripting

To display the selected part in text file of unix

0400903071220312 20120322 20:21 1TRANTELSTRAFLEXCAB22032012CMP201323930000812201108875802100A003485363 12122011AUS 182644 000C2 8122011 0000 000 1TRANTELSTRAFLEXCAB22032012CMP201323930000812201108875802100A003485363 12122011AUS ... (6 Replies)
Discussion started by: rammm
6 Replies

6. Shell Programming and Scripting

[Solved] Printing a part of the last line of the specific part of a file

Hi, I have 80 large files, from which I want to get a specific value to run a Bash script. Firstly, I want to get the part of a file which contains this: Name =A xxxxxx yyyyyy zzzzzz aaaaaa bbbbbb Value = 57 This is necessary because in a file there are written more lines which... (6 Replies)
Discussion started by: wenclu
6 Replies

7. Shell Programming and Scripting

Reading text file, comparing a value in a line, and placing only part of the line in a variable?

I need some help. I would like to read in a text file. Take a variable such as ROW-D-01, compare it to what's in one line in the text file such as PROD/VM/ROW-D-01 and only input PROD/VM into a variable without the /ROW-D-01. Is this possible? any help is appreciated. (2 Replies)
Discussion started by: xChristopher
2 Replies

8. Shell Programming and Scripting

How to fetch values from a line in a file to variables in UNIX?

Hi, I need to assign values from a lines in a file into variables in unix, i am using Korn shell. I tried the below script from posts but i am unable to fetch every value in a variable. #! /usr/bin/ksh #for file in test.txt; do IFS=$'\|' I=1 while read -a val do echo... (15 Replies)
Discussion started by: karthikram
15 Replies

9. UNIX for Dummies Questions & Answers

To find and display the middle line in a file using single line command.

Hi all, How can i display the middle line of a file using a single line command? (6 Replies)
Discussion started by: Lakme Pemmaiah
6 Replies

10. Shell Programming and Scripting

Display the last part of a number list

Hi , i have a file wich have 50+ of numbers like : 0.014544106 0.005464263 0.014526045 0.005484374 0.014539412 0.005467600 0.014558349 0.005452185 i would like to display the list from the 6th bit to the end for example 0.005452185 (should become) 2185. I've tried with ... (4 Replies)
Discussion started by: Board27
4 Replies
UMODEM(4)						   BSD Kernel Interfaces Manual 						 UMODEM(4)

NAME
umodem -- USB modem support SYNOPSIS
To compile this driver into the kernel, place the following lines in your kernel configuration file: device umodem device ucom Alternatively, to load the driver as a module at boot time, place the following line in loader.conf(5): umodem_load="YES" DESCRIPTION
The umodem driver provides support for USB modems in the Communication Device Class using the Abstract Control Model. These modems are basi- cally standard serial line modems, but they are accessed via USB instead. They support a regular AT command set. The commands can either be multiplexed with the data stream or handled through separate pipes. In the latter case the AT commands have to be given on a device separate from the data device. The device is accessed through the ucom(4) driver which makes it behave like a tty(4). HARDWARE
Devices supported by the umodem driver include: o 3Com 5605 o Curitel PC5740 Wireless Modem o Kyocera AH-K3001V Mobile Phone(WILLCOM) o Kyocera WX320K Mobile Phone(WILLCOM) o Metricom Ricochet GS USB wireless modem o Sierra MC5720 Wireless Modem o Yamaha Broadband Wireless Router RTW65b o ELSA MicroLink 56k USB modem o Sony Ericsson W810i phone SEE ALSO
tty(4), ucom(4), usb(4) HISTORY
The umodem driver appeared in NetBSD 1.5. This manual page was adopted from NetBSD by Tom Rhodes <trhodes@FreeBSD.org> in April 2002. BUGS
Only modems with multiplexed commands and data are supported at the moment. BSD
November 22, 2006 BSD
All times are GMT -4. The time now is 01:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy