Ugh. First you need to use bacticks (`) instead of single quotes to enclose the date command.
Next you should use ${DATES} instead of $DATES because else the shell will look for the var $DATES0001 in your code, which is not set and hence returns nothing.
We are running a quiz and the data collected from the quiz is submitted to the database. My requirement is to write a shell script to get these submitted records.
I should be able to run this shell script at any time and the records it returns should be the ones submitted after the script was... (5 Replies)
I want to add one line to the end of my crontab using a script.
I have tried piping in the editor commands, but I can't get it to work.
crontab -e user << EX
$a
This is the text I want to add.
.
wq
EX
This doesn't work. Is there an easier way to do this? (2 Replies)
Hi
I have this code, and i want work with a ls -shalR output in .txt
What i need read to do this??
Where start?
#!/usr/bin/perl
# Allrights- A perl tool for making backups of file permissions
# Copyright (C) 2005 Norbert Klein <norbert@acodedb.com>
# This program is free... (1 Reply)
Hi
I am looking for script to modify /etc/shadow.
For example:
1-)User enters username
2-)The line of that user is found in /etc/shadow and *LK* is added infront of the second field in /etc/shadow.
How can I do this?
Thanks (7 Replies)
The script get a csv file with 2 colls for example:
123456,UNIX
963852,Microsoft
the script supose to put the number in the Description of the user in this case UNIX or Microsoft
the error i get is
does not exist.OR: UNIX
does not exist.OR: Microsoft
but the users exist so i do not... (7 Replies)
hello forum members,
I have a script which is used find the Uname and passwords and redirects into a output.txt file.I hardcoded a string "ciadev" but iwant search two more strings also "absdev" and "absprod" So modify this script please.
I am lookinmg forward from you,
please find the below... (2 Replies)
We have a business need to modify the /etc/passwd file every time a new user gets added, because the user ID begins with a zero. When you create the new user in smit, even if you put the leading zero in, it does not retain it when the entry is added.
That being said, I need to create a script... (11 Replies)
please help me to modify my script
#! /bin/bash
while read line
do
echo "$line" >>/tmp/result && mysql -ss -e "use $line; select count(*) from users where type='admin' and deleted = 0;" > /tmp/result;
done < /tmp/db_data
cat result
alan_hardwsdefs
2
bgrmods
2
claudiatdsefs
1... (2 Replies)
I'm trying to take out strings from log files and add them to a csv.
For example, in the directory now, there are 2 log files. I get the following results:
sed -e '/custodian/b' -e '/packaged by/b' -e '/package name/b' -e '/Total Data (MB) Read/b' -e '/Begin Time/b' -e d *
packaged by =... (10 Replies)
Hi All,
I have an input file like below,
6984 1225
6989 1220
6994 1214 ... (3 Replies)
Discussion started by: Indra2011
3 Replies
LEARN ABOUT OSF1
atmhosts
atmhosts(4) Kernel Interfaces Manual atmhosts(4)NAME
atmhosts - ATM host name file
DESCRIPTION
The atmhosts file is an ASCII file that contains an single-line entry for each host on the ATM network. Each entry consists of an ATM
host address, official host name, and any aliases.
Parameters are separated by spaces or tab characters. A number sign (#) indicates the beginning of a comment; characters up to the end of
the line are not interpreted by routines that search the file.
ATM host addresses are specified by an even number of hexadecimal digits. Each pair of digits represents 8 bits of address information.
An ATM address can be one of the following: An ATM End System Address (AESA) as registered with the network (19 bytes, or 38 hexadecimal
digits) A local Endpoint System Identifier (ESI) that is registered with the local switch (6 bytes, or 12 hexadecimal digits) An AESA with
selector byte, representing the address of a service on a remote machine (20 bytes, or 40 hexadecimal digits).
Note
By default, the atmhosts file contains an entry for Permanent Virtual Circuits (PVCs). The entry consists of an ATM address of 40 hexadeci-
mal zeros (0) and the host name PVC. Do not change or delete this entry.
FILES
ATM hosts file
RELATED INFORMATION
Commands: atmconfig(8), atmarp(8) delim off
atmhosts(4)