02-01-2011
Have to learn sed and awk commands in kSH?
Links Please???
10 More Discussions You Might Find Interesting
1. Solaris
HEllo guys,
If somebody knowing the url or a document then please reply me i am in need of most useful solaris commands its really urgent... (1 Reply)
Discussion started by: lokeshpashine
1 Replies
2. Shell Programming and Scripting
Can I use my own variables within awk and sed for example:
I've written a while loop with a counter $i and I want to use the value of $i within sed and awk to edit certain lines of text within a data file.
I want to use :
sed '1s/$/texthere/g' data.csv
Like this:
sed '$is/$/$age/g' data.csv... (5 Replies)
Discussion started by: mustaine85
5 Replies
3. Linux
Hello,
I am a newbie to linux and struggling to find a better way to append a column in a text file.
Here is the file i want to modify: It has 8 columns (and thousands of rows). I want to append the first column by adding "chr" infront of the numbers. Some rows have a string in the first... (4 Replies)
Discussion started by: bjorngill
4 Replies
4. Shell Programming and Scripting
please reflect... since I am beginner and dont know what to do
---------- Post updated at 04:25 AM ---------- Previous update was at 04:19 AM ----------
I am aware that awk is programming language and sed is just a tool (however people created some games with it). thanks (2 Replies)
Discussion started by: c_lady
2 Replies
5. Shell Programming and Scripting
Hi Gurus,
I am working with a korn shell script. I should replace in a very great file the character ";" with a space.
Example:
2750;~
2734;~
2778;~
2751;~
2751;~
2752;~
what the fastest method is? Sed? Awk?
Speed is dead main point, Seen the dimensions of the files
Thanks (6 Replies)
Discussion started by: GERMANICO
6 Replies
6. Shell Programming and Scripting
I am using SED to edit a file (called file)
the file contains the word "ERROR"
and I want to use SED to:
1. Search for text "ERROR"
If found,
2. Append new line with text "hoi"
I tried:
sed 's/ERROR/ a\hoi' file
sed 's/ERROR/ a\ hoi' file
I get all the time the error
sed:... (7 Replies)
Discussion started by: Alex400
7 Replies
7. Shell Programming and Scripting
Hello I am hoping you may help.
I am not sure how to go about this exactly, I know the tools but not sure how to make them work together.
I have two SED commands that I would like to run in a shell script. I would like to take
the manual input of a user (types in when prompted) to be used... (4 Replies)
Discussion started by: lostincashe
4 Replies
8. Shell Programming and Scripting
Say i have:
g_gateway domain="abc.com" to="123.123.123.123" relay="false"
how do i use awk or sed or any method to get the result below:
abc.com 123.123.123.123 (3 Replies)
Discussion started by: timmywong
3 Replies
9. Shell Programming and Scripting
Hi i have a control file which i need to read. It is ',' separated. the 3rd parameter will be ';' separated.
I have 2 files:
/home/orig.txt
/home/join.txt
I need a O/P file name based on firstparameter_1.txt and it should have the content of /home/orig.txt
and appended content from... (2 Replies)
Discussion started by: Ravindra Swan
2 Replies
10. Shell Programming and Scripting
solaris 5.10 Generic_138888-03 sun4v sparc SUNW,Sun-Fire-T200
I need a sed command that tests true when presented with lines that contain either forward and backslash.
input file:
c:/myFile.txt
c:\yourFile.txt
It doesn't appear that sed (in my environment anyway) supports... (4 Replies)
Discussion started by: msutfin
4 Replies
LEARN ABOUT DEBIAN
tv_grab_na_icons
TV_GRAB_NA_ICONS(1p) User Contributed Perl Documentation TV_GRAB_NA_ICONS(1p)
NAME
tv_grab_na_icons - Grab channel icon images or links from zap2it.com
SYNOPSIS
tv_grab_na_icons [--debug] [--links] [--share dir]
tv_grab_na_icons --help
tv_grab_na_icons --version
DESCRIPTIONS
This script goes to the zap2it web site and downloads icon links or images to the share/icons directory.
It was designed to allow icons to be added by tv_grab_na_dd, but there is no reason it can't be used for other purposes.
To minimize the load on zap2it.com, downloaded icons are recommended. Links are available for those applications that need it.
Also to reduce the load on zap2it.com, this script should be run sparingly. There is really no need to run it frequently, new networks or
icons don't show up that often. To emphasize that point, there is no --configure mode, the questions need to be answered each run.
OPTIONS
--links
Store imge URLs in *.url files instead of downloading images.
--share SHAREDIR
Icons are stored in SHAREDIR/icons. The share directory is set at install time, but there may be times when it needs to be specified.
(for example: no write access to the default share directory)
--debug
Turns on debugging mode. The grabber will be more verbose, and saves some extra debugging data with the icons.
--version
Show the version of the grabber.
--help
Print a help message and exit.
SEE ALSO
xmltv.
AUTHOR
Robert Eden
perl v5.14.2 2012-06-30 TV_GRAB_NA_ICONS(1p)