Say I write something like the following:
var1=1
var2=2
for int in 1 2
do
echo "\$var$int"
done
I want the output to be:
1
2
Instead I get something like:
$var1
$var2 (2 Replies)
hi guys
Kindly see the below script
#!/bin/bash
if
then
# check to see if file notrouter exits or not
if ! ls -l notrouter /root/joy/ >/dev/null
then
touch /root/joy/notrouter
else
echo "Entries already exist"
fi
else
echo "Entries does not exist"
fi
here... (1 Reply)
I want to gzip a file and append the creation date to the end of the file. How can I accomplish this task. Basically they are log files which need a creation date stamp appended to make sure they do not overwrite other log files.
-jack (3 Replies)
Hi,
I am quite new to Perl scripting and i need to create a .TXT file using perl, with fields (A,B,C,D,E), and this text file should be named with current file creation date "XYZ_CCYYMMDD.TXT" (i.e.XYZ_2011042514:33 PM).
Can anyone who has done this, please share their expertise on this... (5 Replies)
Hi
I need to write a file with value value from Paramer which is passed from datastage. It should overwrite the file if already exists.
Can anybody provide command for this? (1 Reply)
Hi
I am looking for a unix command or a small shell script which can takes one parameter and then searches for the passed in the parameter in any or all files under say /home/dev/
Can anyone please help me on this? (3 Replies)
hi all,
i have a parameter file of following format, i want a method which can get the value of specific parameter.
parameter file format:
<Parameter Name="FileLocationWindows">
<Description>
The directory location of the logger file.
... (1 Reply)
Hello Folks,
I have an requirement, where i need to get total count of the file based on creation date with there filename selected pattern.
Filename: MobileProtocol.20171228T154200.157115.udr
I want to get the count of files created on each day based on a pattern find.
find . -type... (7 Replies)
Discussion started by: sadique.manzar
7 Replies
LEARN ABOUT DEBIAN
dl
DL(3) Library Functions Manual DL(3)NAME
DL - generate logging messages in C and C++ using a debugger
SYNOPSIS
#include <DL.h>
DL(format,...)
DLG(guard,format,...)
DLH(handler,format,...)
DLP(param,format,...)
DLGH(guard,handler,format,...)
DLHP(handler,param,format,...)
DLGHP(guard,handler,param,format,...)
DESCRIPTION
The DL macro is used to print logging or debugging messages using a debugger. The nana(1) command generates a set of debugger commands
which are then sourced into gdb(1) to implement the logging. If you don't run the executable under gdb(1) then no tracing will occur. The
arguments are:
format,... - a printf(3) style argument list containing the message
guard - print only if the guard is true.
handler - the code that does the printing. Default: fprintf
param - a parameter to be passed off to the handler. Default: stdout
See nana.info for details on configuring the behaviour.
SEE ALSO nana-clg(1), nana(1), nana(3), I(3), DI(3), L(3), DL(3), Q(3) and nana.info.
The nana.info file is the primary documentation for this library.
AUTHOR
Phil Maker <pjm@gnu.org>
DL(3)