Sponsored Content
Top Forums Shell Programming and Scripting Extract some characters with SED or AWK Post 302229029 by climber on Tuesday 26th of August 2008 05:06:30 AM
Old 08-26-2008
Thanks for your really quick answers :-)

climber
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk/sed with special characters

i have this script that searches for a pattern. However it fails if the pattern includes some special characters. So far, it fails with the following strings: 1. -Cr 2. $Mj 3. H'412 would a sed or awk be more effective? i don't want the users to put the (\) during the search (they... (5 Replies)
Discussion started by: apalex
5 Replies

2. Shell Programming and Scripting

SED to extract characters

Hi, Please let me know how do we write a piece of code to extract characters from a line using SED. (2 Replies)
Discussion started by: Shilpi
2 Replies

3. Shell Programming and Scripting

SED to extract characters

Hi, Please let me know how do we write a piece of code to extract characters from a line using SED. (1 Reply)
Discussion started by: Shilpi
1 Replies

4. Shell Programming and Scripting

extract using sed/awk - need help? Please!!

Need help..not sure how to use with awk or sed I want to take data from the notification.$$ file and assign the data to variable "group". Not sure how to do it. The data I want to extract from the notification.$$ is on the first line of the file ..right after the (notice): NetWorker... (5 Replies)
Discussion started by: gzs553
5 Replies

5. Shell Programming and Scripting

Sed and awk backslash characters

Hi, I have a variable read from user input: PROFILESROOTDIR="\\194.185.82.188\CMSRepository\EncodingProfiles" awk -F"=" -v gr=$PROFILESROOTDIR '/ProfilesRootDirectoryFromXOEMachine/{$2=gr;}1' OFS="=" $CFGFILE > "${CFGFILE}_new" For this awk to work properly I need to replace in the... (7 Replies)
Discussion started by: potro
7 Replies

6. Shell Programming and Scripting

Awk , Sed Print last 4 numeric characters

Hello All, I have been searching and trying this for a bit now. Can use some assistance. Large 5000 line flat file. bash, rhel5 Input File Sinppet: Fri Oct 30 09:24:02 EDT 2009 -- 1030 Fri Oct 30 09:26:01 EDT 2009 -- 73 Fri Oct 30 09:28:01 EDT 2009 -- 1220 Fri Oct 30 09:30:01 EDT... (9 Replies)
Discussion started by: abacus
9 Replies

7. Shell Programming and Scripting

awk and sed, how to exclude certain characters

Hello everyone: I have ran into this a few times now where my skills are just not up to snuff when it comes to Unix. So, I came here to find some beard stroking Unix wizard to help me. Basically, I am using OS X 10.5 in large scale at work and sometimes I have to run some custom reports. ... (5 Replies)
Discussion started by: tlarkin
5 Replies

8. Shell Programming and Scripting

Awk to extract lines with a defined number of characters

This is my problem, my file (file A) contains the following information: Now, I would like to create a file (file B) containing only the lines with 10 or more characters but less than 20 with their corresponding ID: Then, I need to compare the entries and determine their frequency. Thus, I... (7 Replies)
Discussion started by: Xterra
7 Replies

9. Shell Programming and Scripting

Deleting characters with sed,perl,awk

Input: :: gstreamer :: xine-lib :: xine-lib-extras Output should be: gstreamer xine-lib xine-lib-extras How can it be done with sed or perl? (12 Replies)
Discussion started by: cola
12 Replies

10. Shell Programming and Scripting

sed or awk grep, that will only get the line with more characters.

Is there a command for sed and awk that will only sort the line with more characters? #cat file 123 12345 12 asdgjljhhho bac ss Output: asdgjljhhho #cat file2 11.2 12345.00 21.222 12345678.10 (2 Replies)
Discussion started by: invinzin21
2 Replies
XWORD(1)						      General Commands Manual							  XWORD(1)

NAME
xword - do crossword puzzles in the Across Lite format SYNOPSIS
xword [puzzlefile.puz]... DESCRIPTION
Xword is a GTK program for doing crossword puzzles. It can read and write puzzles in the Across Lite file format. Consequently, it works well for doing puzzles from The New York Times. As well as a clock, it supports printing. It also auto-saves puzzles as you solve them so that you can return to partially completed puzzles. USAGE
First, locate a puzzle on the web. The best place to go is the web site of The New York Times. However, it costs money to access these puz- zles. Free puzzles are available from The Houston Chronicle. After you have found a puzzle, click on it in your web browser. Xword will open the puzzle and you can start solving. You can also choose to save the puzzle on your hard disk. Then you can open the puzzle using Xword later. After you have worked on a puzzle for a while, you may want to save your work. There are two ways to save. The easiest way is to close Xword without any further action. The next time you open the same puzzle (either by opening the .puz file or by clicking the same link on the web), you will be asked whether you want to continue where you left off. If you choose to continue, all your correct and incorrect answers will be saved, as well as the time on the clock. However, this technique only works for opening the puzzle on the same computer. If you need to open the saved puzzle on a different com- puter, then you can choose "Save" from the "File" menu. The saved file can be opened with Xword on any computer. However, incorrect answers and the time on the clock will not be saved. To print a puzzle, select "Print" from the "File" menu. You can see what the printed puzzle will look like by clicking "Print Preview". You can select the paper size and orientation by clicking on the "Paper" tab (puzzles are usually easier to read in landscape mode). Sometimes a puzzle will be locked so that the answers are unavailable. Unfortunately, Xword's support for locked puzzles is somewhat flaky. When using a locked puzzle, you should not click on the "Check" or "Solve" buttons, since they will give incorrect information. How- ever, you can still use Xword to enter answers for a locked puzzle. Later, when an unlocked version of the puzzle is released (usually the next day), open it using Xword. When asked, choose to continue where you left off. Now you can use the "Check" and "Solve" buttons to see how well you did. Sometimes crosswords will come with a four-digit code to unlock a locked puzzle file. This code is not needed by Xword ... For more information, see the project home page at <https://alioth.debian.org/projects/xword/>. AUTHOR
xword was originally written by Bill McCloskey <bill.mccloskey@gmail.com>. This manual page was written by John Sullivan <johns@debian.org>, for the Debian project (but may be used by others). BUGS
Please report bugs to <https://alioth.debian.org/tracker/?atid=413106&group_id=100419&func=browse>. December 3, 2007 XWORD(1)
All times are GMT -4. The time now is 03:07 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy