01-17-2009
Don't know how tab spaces converted into plain text.
please tab by yourself on the If conditions for more clarity....
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I've forgotten how to use a filename parameter
using sed inside a shell script. What I want to do is
replace a string inside a file with the name of
the file being processed.
I think this should work ..
for filename do
sed -e "s/xxx/$filename/" ...
...
done
Thanks!
Ps: ... (5 Replies)
Discussion started by: eadie
5 Replies
2. UNIX for Dummies Questions & Answers
Like the topic says, does anyone know if it is possible to check to see when an FTP only user has logged in? Because the shell is /bin/false and they are only using FTP to access the system doing a "finger" or "last" it says they have never logged in.
Is there a way to see when ftp users log in... (1 Reply)
Discussion started by: LordJezo
1 Replies
3. Shell Programming and Scripting
Forgive me if this is a trivial question, but I haven't been able to find the answer to this.
Basically I've got a list of files in a particular directory that have the general form t_*.dat. (I have other files in the same directory as well).
Essentially what I want to do is obtain the name... (1 Reply)
Discussion started by: lost.identity
1 Replies
4. Shell Programming and Scripting
I have the following piece of code:
YESTER=`TZ=aaa24 date +%b"-"%d`
filelist2=$(find /export/home/gen/check/logs \( -name \*$YESTER\* ! -name \*ADM\* \) -print | tr '\n' ' ')
nawk -F':' '
$2 ~ /Reason/ && $3 !~ /(PASSTHRU|OCAP|FP Power Button|Bootloader Reset)/ {
split(FILENAME,... (2 Replies)
Discussion started by: ther2000
2 Replies
5. Shell Programming and Scripting
Hi Experts,
Please let me know how to below situation:
Looking for:
sed "${linenum}d" $filename > $filename _Without_7C
Working Command:
sed "${linenum}d" A020820122200.tis2webGMNA001_GDS_DIDOut.txt > A020820122200.tis2webGMNA001_GDS_DIDOut.txt_Without_7C
appriciate if you can... (7 Replies)
Discussion started by: rajubollas
7 Replies
6. Shell Programming and Scripting
Hi Friends,
The below shell script is written by third party to create B2k_session_id.iam trying to execute this script.When i execute below script it is calling some other scripts.How to find which scripts is calling?
. `execom commfunc.com`
echo " $PRESENTATION_MODE "
if
then
echo... (1 Reply)
Discussion started by: vadlamudy
1 Replies
7. Shell Programming and Scripting
Hi
Please describe about following condition
if ]
in shell script.
Also please provide the link related all the flags which are applicable for if condition in Shell (4 Replies)
Discussion started by: munna_dude
4 Replies
8. Shell Programming and Scripting
HI
owner date and time and size of file in a row
shell script to list filename file_path i have tried the below code
present_dir=`pwd`
dir=`dirname $0`
list=`ls -lrt | awk {'print $9,$3,$6,$7,$8'}`
size=`du -h`
path=`cd $dir;pwd;`
printf "$list"
printf "$path"
printf " $size"
... (4 Replies)
Discussion started by: abiram
4 Replies
9. Shell Programming and Scripting
originally the shellscript
#ln_file_name=`echo $ld_interface_date"_"${8}".csv"`
#ln_file_name=`echo 201202011527_HL_HLTM1_B04A.csv`
ln_file_name="*"`echo ${7}".csv"`
get_file_list_1=$log_path"tm1_file_list.gfl1"
cd ${source_path}
echo "Try to find any file exist in the... (10 Replies)
Discussion started by: feilhk
10 Replies
10. Shell Programming and Scripting
Hi
I want to fetch the latest file form the list
example
example= filename RATE_STATE_SETUPS.20151222.ccyymmdd.hhmmss.txt
File pick which have latest ccyymmdd.hhmmss
list of file in directory are
RATE_STATE_SETUPS.20151222.20151222.170101.txt... (5 Replies)
Discussion started by: MOHANP12
5 Replies
LEARN ABOUT HPUX
xmtablist
XmTabList(library call) XmTabList(library call)
NAME
XmTabList -- Data type for a tab list
SYNOPSIS
#include <Xm/Xm.h>
XmTabList
DESCRIPTION
XmTabList is the data type for a tab list. A tab list consists of tab stop list entries (XmTabs). Whenever a tab component is encountered
while an XmString is being rendered, the origin of the next X draw depends on the next XmTab. If a tab stop would cause text to overlap,
the x position for the segment is reset to follow immediately after the end of the previous segment.
Tab lists are specified in resource files with the following syntax:
resource_spec: tab WHITESPACE [, WHITESPACE tab ]*
The resource value string consists of one or more tabs separated by commas. Each tab identifies the value of the tab, the unit type, and
whether the offset is relative or absolute. For example:
tab := float [ WHITESPACE units ]
float := [ sign ] [[ DIGIT]*. ]DIGIT+
sign := +
where the presence or absence of sign indicates, respectively, a relative offset or an absolute offset. Note that negative tab values are
not allowed. units indicates the unitType to use as described in the XmConvertUnits reference page.
For example, the following specifies a tab list consisting of a one inch absolute tab followed by a one inch relative tab:
*tabList: 1in, +1in
For resources of type, dimension, or position, you can specify units as described in the XmNunitType resource of the XmGadget, XmManager,
or XmPrimitive reference page.
RELATED
Refer to the Motif Programmer's Guide for more information about tabs and tab lists. XmTabListCopy(3), XmTabListFree(3), XmTabListGet-
Tab(3), XmTabListInsertTabs(3), XmTabListRemoveTabs(3), XmTabListReplacePositions(3), and XmTabListTabCount(3).
XmTabList(library call)