Search Results

Search: Posts Made By: chipcmc
2,576
Posted By chipcmc
it's the same case: rc=system("test -d...
it's the same case:
rc=system("test -d AP_cubedata/cube_date/"$1"/"a[n])

rc=system("test -d "AP_cubedata"/"cube_date"/"$1"/"a[n])
18,827
Posted By chipcmc
is not version ksh problem: man echo: ...
is not version ksh problem:


man echo:

ECHO(1) FSF ECHO(1)

NAME
echo - display a line of text

SYNOPSIS
echo...
5,526
Posted By chipcmc
[quote=glev2005;302363081]I am getting a "line...
[quote=glev2005;302363081]I am getting a "line 47: syntax error: unexpected end of file", why?


#!/bin/bash

# Script to Create a userChrome.css, lock down network prefs, and remove...
3,542
Posted By chipcmc
hi, maybe you can use the -A an d -B option of...
hi, maybe you can use the -A an d -B option of grep, i put and example :
texto= is a file for example, has 6lines
man grep:
-A NUM, --after-context=NUM
Print NUM lines of ...
4,648
Posted By chipcmc
this code is only and example for using "-f"...
this code is only and example for using "-f" option whith grep, to make te example i generate one file call list and other call text.
The file list is only a file of patterns and file text is where...
4,648
Posted By chipcmc
You can use the "-f" option on grep, then you...
You can use the "-f" option on grep, then you only need to generate a file
with the list-pattern.
Example:

$more list
no
1
3
$more text
line1
no line
the 3 line
the 4 line
$grep -f list...
2,241
Posted By chipcmc
# stop the concurrent manager ...
# stop the concurrent manager
$COMMON_TOP/admin/scripts/$CONTEXT_NAME/adstpall.sh $DB_USER/$DB_PSWD
# check if the processes are alive
SPOOL_FILE="$APPLTMP/stop_cm_$TWO_TASK.tmp"
while : ; do
...
5,677
Posted By chipcmc
VALUE=5000 file=/tmp/list #validate if...
VALUE=5000
file=/tmp/list

#validate if file exists and is not empty file
if [ -s ${file} ]
then
echo "IF"
awk ' FS="|" { print $2 }' $file | while read i
do
if [ !...
5,677
Posted By chipcmc
are you sure the size of file is 0,can you paste...
are you sure the size of file is 0,can you paste the exit of:

ls -l /tmp/list
5,677
Posted By chipcmc
hope this help you: VALUE=5000 ...
hope this help you:


VALUE=5000
file=/tmp/list

#validate if file exists and is not empty file
if [ -s ${file} ]
then
for i in `cat ${file}| awk ' FS="|" { print $2 } '`
do
if [...
5,677
Posted By chipcmc
i'm not sure understand you ...
i'm not sure understand you


name_file="the_nameOfFile"

if [ -f ${name_file} ]
then
echo "${name_file}: exist"
if [ -s ${name_file} ]
then
echo...
5,677
Posted By chipcmc
VALUE=5000 if [ -s /tmp/list ] then ...
VALUE=5000
if [ -s /tmp/list ]
then
for i in `cat /tmp/list | awk ' FS="|" { print $2 } '`
do
if [ "${i}" -eq "${VALUE}" ]
then
echo titi
else...
48,236
Posted By chipcmc
export a=2;sed "${a}d" file
export a=2;sed "${a}d" file
10,880
Posted By chipcmc
when the line of the file only contains new line...
when the line of the file only contains new line the variable strin length is 0


while read line; do
case $line in
# '\n' ) continue;;
'#'* ) continue;;
'['*']' ...
6,114
Posted By chipcmc
$ls -l total 12 -rwxr-x--- 1 co01387r...
$ls -l
total 12
-rwxr-x--- 1 co01387r spweb 52 sep 28 13:19 sh1.sh
-rwxr-x--- 1 co01387r spweb 65 sep 28 13:22 sh2.sh

$more sh1.sh
k=("my" "vector" "other" "colum")
...
2,239
Posted By chipcmc
Thank you cfajohnson, the list of files does not...
Thank you cfajohnson, the list of files does not contain blanks.
Normally I use :

while read line
do
....
done < file_list

i doesn't know UUOC's meaning, I it have looked in google and...
2,239
Posted By chipcmc
thanks for answer you option is so better than...
thanks for answer you option is so better than my.
my solution was to make a subshell inside my shell principal and execute:
something like this:

cat file_env >new_shell.sh
for fich_include in...
2,239
Posted By chipcmc
Shell variables problems
hi, i need some help, the situation is this

1-file of variable enviroments
DIR1=/tmp
DIR2=otherdir/mydir

2-file of list of files (all the names references whic...
2,974
Posted By chipcmc
can you copy/paste the content of your file? ...
can you copy/paste the content of your file?
look in man page for command sort in your system:

man sort


the command in my enviorement work's,

$cat /etc/issue; echo $SHELL
Red Hat...
2,974
Posted By chipcmc
for you example: $more kk2.txt i don't...
for you example:

$more kk2.txt
i don't know how.
i don't know this.
i don't know other
i don't know one more
$sort -t" " -k3,3 -u kk2.txt
i don't know how.
2,165
Posted By chipcmc
sorry in my execution i don't obtain the 'n'...
sorry in my execution i don't obtain the 'n' character.
maybe your data-source file is diferent at the text you put ?


$more kk.txt
Account_Id Date Id Balance
44 9 1000.00 30 15-10-2173 10...
2,165
Posted By chipcmc
cat you_file | sed "s/\.00/.00\n/" |awk '{ ...
cat you_file | sed "s/\.00/.00\n/" |awk '{
if (NF > 4 )
{
conta=1;
for (word=1;word <=NF; word++)
{
if...
3,103
Posted By chipcmc
In your file the first column is the name of...
In your file the first column is the name of file? in this case:


awk '{ print $1}' | du -s
14,314
Posted By chipcmc
To modifique dinamy the title you need to send...
To modifique dinamy the title you need to send escape characters:
\033]0; -> refers to title bar

In terminal you can probe:

PROMPT_COMMAND='echo -ne "\033]0;New Title\007"'


Other example...
2,040
Posted By chipcmc
$more file cp -p /var/adm/ /tmp1/tmp1.log cp...
$more file
cp -p /var/adm/ /tmp1/tmp1.log
cp -p /var/adm/ /tmp1/tmp2.log
cp -p /var/adm/ /tmp1/tmp3.log
cp -p /var/adm/ /tmp1/tmp4.log

$awk '{ split($4, array, "/"); print $1 " " $2 " " $3...
Showing results 1 to 25 of 95

 
All times are GMT -4. The time now is 02:45 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy