Sponsored Content
Full Discussion: Search from file and display
Top Forums Shell Programming and Scripting Search from file and display Post 302371107 by jaydeep_sadaria on Friday 13th of November 2009 11:18:29 AM
Old 11-13-2009
display fromating

Dear all

I had input file as mention below and want op as mention.

Kindly let me knw possible ways.

Regards
Jaydeep

INPUT:

RXOTX-48-1
2A 34
2B 35
RXOTX-499-2
2C 32
RXOTX-4-1
2D 23

OUTPUT:

RXOTX-48-1 2A 34 2B 35
RXOTX-499-2 2C 32
RXOTX-4-1 2D 23
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

grep/cat/more -- search in a txt file and display content from a specific "keyword"

Hi, I have a .txt file Sample: ===================== NEXT HOST ===================== AEADBAS001 ip access-list extended BLA_Incoming_Filter ip access-list extended BLA_Outgoing_Filter access-list 1 permit xxxxxxxxxxxxxx access-list 2 permit xxxxxxxxxxxxxx =====================... (4 Replies)
Discussion started by: I-1
4 Replies

2. Shell Programming and Scripting

Search for string and display those NOT found

In my script I read a input file and search all the files in a directory and it's sub-directories for that string using: find . -type f -print | xargs grep $var1 This just displays all the lines the string was found on. Too much data. What I need is to store in a file one time those... (17 Replies)
Discussion started by: John Rihn
17 Replies

3. Shell Programming and Scripting

sed search/replace and display

Hi All: I'm using sed to replace one line in a configuration file. After replacing that line I would like to display to screen that line plus 10 lines above and below the line that was changed... How would I go about doing that?? Here is my search and replace string.... sed -e... (2 Replies)
Discussion started by: jimmyc
2 Replies

4. UNIX for Dummies Questions & Answers

Search this display these...

Hi i would like to search for a pattern and then prints the 2 lines before the line where the pattern is found. I would also like to apply this in compressed files. Please help me in this. (8 Replies)
Discussion started by: khestoi
8 Replies

5. Shell Programming and Scripting

Search from file and display

Dear All I had input file as mention below. Now from that file i want to search string "FAULT CODES CLASS" and want to display contain again its. ( ie. 1B4 --4 is in next line. ). Kindly let me know the possible ways. <rxmfp:mo=RXOTX-46-5 ; ... (3 Replies)
Discussion started by: jaydeep_sadaria
3 Replies

6. Shell Programming and Scripting

Search in file and display

Dear All I had below mention requirement. Kindly sugguest me possible ways. Thanks Regards Jaydeep IN PUT FILE: CELL BROADCAST SHORT MESSAGE SERVICE MESSAGE DATA ID CODE GS UPDATE MODE LANG MCO MCL NUMPAGES 50 1000 0 13 MML 1 1 TEXT PAGE *999*1# SONGS4U@30/M- 1 (3 Replies)
Discussion started by: jaydeep_sadaria
3 Replies

7. Shell Programming and Scripting

Search name and display column from a file

Hi I have search everywhere for this but I haven't got any result. so here is my question? I am trying to ask user to enter a name and then searching that name from a file and from a specific column. If user enter something, it should only displaying that name from that specific column and If the... (3 Replies)
Discussion started by: sillyha
3 Replies

8. Shell Programming and Scripting

How to search for file and display by date

I like "ls -ltr". I would like to search for a file in a large directory recursively and and display all the candidates in reverse order. /usr/bin/find . -name \*.txt This works. How do I display the date and sort the file names by the date in reverse order for the entire directory... (1 Reply)
Discussion started by: siegfried
1 Replies

9. UNIX for Beginners Questions & Answers

Search a string and display its location on the entire string and make a text file

I want to search a small string in a large string and find the locations of the string. For this I used grep "string" -ob <file name where the large string is stored>. Now this gives me the locations of that string. Now how do I store these locations in a text file. Please use CODE tags as... (7 Replies)
Discussion started by: ANKIT ROY
7 Replies

10. Shell Programming and Scripting

Search first file line after Error and display

I have a log file which contains information like below (more than 200 ERROR sets). Here I want to find first .c file and function after "ERROR: AddressSanitizer" line. If you see here after "ERROR:" line first file - asfrecohandling.c function - ASFPotRecoHandling_Create_RecPaxSrvcComp ... (6 Replies)
Discussion started by: pushpabuzz
6 Replies
OPIEPASSWD(1)						      General Commands Manual						     OPIEPASSWD(1)

NAME
opiepasswd - Change or set a user's password for the OPIE authentication system. SYNOPSIS
opiepasswd [-v] [-h] [-c|-d] [-f] [-n initial_sequence_number ] [-s seed ] [ user_name ] DESCRIPTION
opiepasswd will initialize the system information to allow one to use OPIE to login. opiepasswd is downward compatible with the keyinit(1) program from the Bellcore S/Key Version 1 distribution. OPTIONS
-v Display the version number and compile-time options, then exit. -h Display a brief help message and exit. -c Set console mode where the user is expected to have secure access to the system. In console mode, you will be asked to input your password directly instead of having to use an OPIE calculator. If you do not have secure access to the system (i.e., you are not on the system's console), you are volunteering your password to attackers by using this mode. -d Disable OTP logins to the specified account. -f Force opiepasswd to continue, even where it normally shouldn't. This is currently used to force opiepasswd to operate in "console" mode even from terminals it believes to be insecure. It can also allow users to disclose their secret pass phrases to attackers. Use of the -f flag may be disabled by compile-time option in your particular build of OPIE. -n Manually specify the initial sequence number. The default is 499. -s Specify a non-random seed. The default is to generate a "random" seed using the first two characters of the host name and five pseudo-random digits. EXAMPLE
Using opiepasswd from the console: wintermute$ opiepasswd -c Updating kebe: Reminder - Only use this method from the console; NEVER from remote. If you are using telnet, xterm, or a dial-in, type ^C now or exit with no password. Then run opiepasswd without the -c parameter. Using MD5 to compute responses. Enter old secret pass phrase: Enter new secret pass phrase: Again new secret pass phrase: ID kebe OPIE key is 499 be93564 CITE JAN GORY BELA GET ABED wintermute$ Using opiepasswd from remote: wintermute$ opiepasswd Updating kebe: Reminder: You need the response from your OPIE calculator. Old secret password: otp-md5 482 wi93563 Response: FIRM BERN THEE DUCK MANN AWAY New secret password: otp-md5 499 wi93564 Response: SKY FAN BUG HUFF GUS BEAT ID kebe OPIE key is 499 wi93564 SKY FAN BUG HUFF GUS BEAT wintermute$ FILES
/etc/opiekeys -- database of key information for the OPIE system. SEE ALSO
passwd(1), opie(4), opiekey(1), opieinfo(1), opiesu(1), opielogin(1), opieftpd(8), opiekeys(5), opieaccess(5) AUTHOR
Bellcore's S/Key was written by Phil Karn, Neil M. Haller, and John S. Walden of Bellcore. OPIE was created at NRL by Randall Atkinson, Dan McDonald, and Craig Metz. S/Key is a trademark of Bell Communications Research (Bellcore). CONTACT
OPIE is discussed on the Bellcore "S/Key Users" mailing list. To join, send an email request to: skey-users-request@thumper.bellcore.com 7th Edition January 10, 1995 OPIEPASSWD(1)
All times are GMT -4. The time now is 03:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy