Hi
I amtrying to read the lines from a file, these lines are absolute paths in the system. I want to check if these paths exists, if they doesn't I want to create that path and put a file in that location/path.
I had no trouble filtering these paths out using awk, grep, uniq etc but when it... (8 Replies)
I am an Awk newbie and cannot wrap my brain around my problem:
Given multi-line records of varying lengths separated by a blank line I need to skip the first two lines
of every record and extract every-other line in each record unless the first line of the record has the word "(CONT)" in the... (10 Replies)
Hi,
I am doing file processing line by line. while reading each line at a specified location I am searching for a particular character and then write that line to another file.
Problem is while writing to another file it was supressing the spaces, which I don't want to do.
Any help is... (1 Reply)
Hi,
I am a beginner in shell scripting. I have written the following script, which is supposed to process the while loop for each line in the sid_home.txt file. But I'm getting the 'end of file' unexpected for the last line. The file sid_home.txt gets generated as expected, but the script... (6 Replies)
I need a script to process a huge single line text file:
The sample of the text is:
"forward_inline_item": "Inline", "options_region_Australia": "Australia", "server_event_err_msg": "There was an error attempting to save", "Token": "Yes", "family": "Family","pwd_login_tab": "Enter Your... (1 Reply)
Hi,
My awk program is failing. I figured out using command
od -c filename
that the last line of the file doesnt end with a new line character.
Mine is an automated process because of this data is missing.
How do i handle this?
I want to append new line character at the end of last... (2 Replies)
Hi Sorry to multipost. I am opening the new thread because the earlier threads head was misleading to my current doubt.
and i am stuck.
list=`cat /u/Test/programs`;
psg "ServTest" | awk -v listawk=$list '{
cmd_name=($5 ~ /^/)? $9:$8
for(pgmname in listawk)
... (6 Replies)
Hi, all
I have a file containing the following data:
name: PRODUCT_1
date: 2010-01-07
really_long_name: PRODUCT_ABCDEFG
I want to get the date (it is "2010-01-07" here), I could use the following code to do that:
awk... (6 Replies)
Hi ,
I have a file like
Activate your Membership now!
Dear Cyrus Every relationship needs nurturing. Including ours.
2011-08-09T10:18:14Z
2011-08-09T10:18:14Z
tag:gmail.google.com,2004:1376659800396305843
T League
email@email.tleague.com
How to refresh a graphical display through... (3 Replies)
My file (the output of an experiment) starts off looking like this,
_____________________________________________________________
Subjects incorporated to date: 001
Data file started on machine PKSHS260-05CP
**********************************************************************
Subject 1,... (9 Replies)
Discussion started by: samonl
9 Replies
LEARN ABOUT MOJAVE
tk_internatom
Tk_InternAtom(3) Tk Library Procedures Tk_InternAtom(3)__________________________________________________________________________________________________________________________________________________NAME
Tk_InternAtom, Tk_GetAtomName - manage cache of X atoms
SYNOPSIS
#include <tk.h>
Atom
Tk_InternAtom(tkwin, name)
const char *
Tk_GetAtomName(tkwin, atom)
ARGUMENTS
Tk_Window tkwin (in) Token for window. Used to map atom or name relative to a particular display.
const char *name (in) String name for which atom is desired.
Atom atom (in) Atom for which corresponding string name is desired.
_________________________________________________________________DESCRIPTION
These procedures are similar to the Xlib procedures XInternAtom and XGetAtomName. Tk_InternAtom returns the atom identifier associated
with string given by name; the atom identifier is only valid for the display associated with tkwin. Tk_GetAtomName returns the string
associated with atom on tkwin's display. The string returned by Tk_GetAtomName is in Tk's storage: the caller need not free this space
when finished with the string, and the caller should not modify the contents of the returned string. If there is no atom atom on tkwin's
display, then Tk_GetAtomName returns the string "?bad atom?".
Tk caches the information returned by Tk_InternAtom and Tk_GetAtomName so that future calls for the same information can be serviced from
the cache without contacting the server. Thus Tk_InternAtom and Tk_GetAtomName are generally much faster than their Xlib counterparts, and
they should be used in place of the Xlib procedures.
KEYWORDS
atom, cache, display
TkTk_InternAtom(3)