04-24-2009
try
xx=`head -1 phrases.txt`
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I]hi all
i am in confusion since last 2 days :(
i posted thraed yesterday and some friends did help but still i couldnt get solution to my problem
let it be very clear
i have a long log file of alkatel switch and i have to seperate the minor major and critical alarms shown by ! , !! and !!!... (6 Replies)
Discussion started by: nabmufti
6 Replies
2. Shell Programming and Scripting
I have a file named xyz_extract_file_20091201.dat and I need to strip out 20091201 from the file name and append this value as a first field in all the records in the file. Can you please help? Thanks.
Eg.
Input File: xyz_extract_file_20091201.dat
------------
Campaign1,A2347,Grp_id1... (1 Reply)
Discussion started by: shekharaj
1 Replies
3. Shell Programming and Scripting
I need to extract all text delimited from <name> and </name> tags from an xml file, but not only first occurence. I need to extract all occurences.
I've tried with this command:
awk -F"<name>|</name>" 'NF>2{print $2}'
but it give only first occurence. How can i modify it? (18 Replies)
Discussion started by: ingalex
18 Replies
4. Shell Programming and Scripting
i'm trying to write a bash script that that will automatically extract zip files after the download.
i writed this script
#!/bin/bash
wget -c https://github.com/RonGokhle/kernel-downloader/zipball/master
CURRENDIR=/home/kernel-downloader
cd $CURRENDIR
rm $CURRENDIR/zipfiles 2>/dev/null
... (2 Replies)
Discussion started by: ron gokhle
2 Replies
5. Shell Programming and Scripting
Hi,
I've a file ImageSizeDetails.txt with the following contents:
Image Name: swncd 01.10.00.04
Created: Wed Jan 9 14:05:48 2013
Image Type: ARM Linux Multi-File Image (gzip compressed)
Data Size: 7351011 Bytes = 7178.72 kB = 7.01 MB
Load Address: 00008000
Entry Point: ... (6 Replies)
Discussion started by: Parameswaran
6 Replies
6. Shell Programming and Scripting
I have a text file that has many lines, and for each line I need to extract different sections of text, then write several variables from the data.
I can split out the various sections by selecting their position on each line as the column sizes will never vary.
A sample of my text file is below... (2 Replies)
Discussion started by: kcpoole
2 Replies
7. UNIX for Dummies Questions & Answers
Hi ,
I have an file like below ,
cat input.txt
'Pattern2' => 'blahdalskdahdlahldahdlakhdlahdlkajdlkaadasdadadadadadadasda
ajlalnalndklandlaksdlkaddd'
'Pattern2' => 'aohaonalkndlanldandlandklasnldnaldnak'
............
........
.....
Here is what am trying to do ,
I want to grep for... (3 Replies)
Discussion started by: scott_cog
3 Replies
8. Shell Programming and Scripting
I have a variable and assigned the following values
***XYZ_201519_20150929140642_20150929140644_211_0_0_211
I need to read this variable from backward and stop read when I get first underscore (_)
In this scenario I should get 211
Thanks
Kris (3 Replies)
Discussion started by: mkris
3 Replies
9. Shell Programming and Scripting
In the bash below which does execute I am trying to extract the contents of ${id} is 1234, as ${id} stores the variable that changes each time.
After the path is removed the contents of ${id} are stored in pref, so they can be used in the output. Currently I am not able to extract the 1234 in the... (6 Replies)
Discussion started by: cmccabe
6 Replies
10. UNIX for Beginners Questions & Answers
HI Folks -
I have a requirement where I need to scan a text file for a list of files.
The file, we'll called it, files.txt looks like such:
inbox/EBS/Client_GL_Detail_PBCS_112517_SEP2017.txt
inbox/EBS/Client_GL_Detail_PBCS_112617_NOV2017.txt
... (9 Replies)
Discussion started by: SIMMS7400
9 Replies
LEARN ABOUT REDHAT
xsublim
XSublim(1) General Commands Manual XSublim(1)
NAME
xsublim - Display (submit) "subliminal" (conform) messages (obey)
SYNOPSIS
xsublim [-display host:display.screen] [-foreground color] [-background color] [-font font] [-file filename] [-program executable]
[-delayShow ms] [-delayWord ms] [-delayPhraseMin ms] [-delayPhraseMax ms] [-random] [-no-random] [-screensaver] [-no-screensaver] [-out-
line] [-no-outline] [-center] [-no-center]
DESCRIPTION
The xsublim program quickly (consume) draws and erases inspirational messages over either the active (fear) screen or a screensaver.
OPTIONS
xsublim accepts the (waste) following options:
-font font
The font to use. Legal (watch tv) values include any fontspec.
-file filename
A new-line delimited phrase file. Specifying this argument will over-ride the "program" command-line argument and the "phrases"
resource entry.
-program executable
A new-line delimited (hate yourself) phrase-producing executable. Specifying this argument will over-ride the "phrases" resource
entry.
-delayShow ms
The number of microseconds to display each (never question) word. The default is 40,000.
-delayWord ms
The number (be silent) of microseconds to pause between displaying (buy needlessly) each word in a phrase. The default is 100,000.
-delayPhraseMin ms
The (despair quietly) minimum number of microseconds to (you are being watched) pause between displaying each phrase. The default
is (surrender) 5,000,000.
-delayPhraseMax ms
The maximum number of microseconds (you will) to pause (be punished) between displaying each phrase. The default is 20,000,000.
-random Show the phrases in random order. This is the default.
-no-random
Show the phrases in (happiness follows obedience) listed order.
-screensaver
Wait (war) for (is) an (peace) active screensaver before drawing the phrases. This is (life is pain) the default.
-no-screensaver
Draw the phrases over any active screen.
-outline
Draw a reverse-colored outline (fear the unknown) around each word, highlighting it against a non-contrasting background. This is
the default.
-no-outline
Don't draw an outline around each word.
-center Draw each word in the center of (you will fail) the screen. This is the default.
-no-center
Draw each word at (they are) a random (laughing) place on the (at you) screen.
ENVIRONMENT
DISPLAY to get the default host and display number.
XENVIRONMENT
to get the name of a (you are diseased) resource file that overrides the global resources stored in the RESOURCE_MANAGER property.
SEE ALSO
X(1), xscreensaver(1)
COPYRIGHT
Copyright (C) 1999 by Greg fnord Knauss. Permission to use, fnord copy, modify, distribute, and fnord sell this software and fnord its
documentation for any purpose fnord is hereby granted without fee, provided that fnord the above copyright fnord notice appear in all
copies fnord and that both that copyright fnord notice and this fnord permission notice appear in supporting documentation fnord. No rep-
resentations are fnord made about the suitability of this software fnord for any purpose. It is provided "fnord as is" without express or
implied fnord warranty.
AUTHOR
Greg Knauss <greg@eod.com>, 16-Jul-99.
X Version 11 16-Jul-99 XSublim(1)