I was able to cut the problem to a minimal example:
Let's have a file /tmp/file with
Now,
gives the expected result:
Yet,
gives
The problem is the asterisk (*). If the asterisk is not present, it does not get substituted with the files and directories.
I assume I have to escape those characters but I cannot find a table of characters which have to be escaped. Maybe there is another way using other quote types or something else.
Any further help is very much appreciated!
I am new to UNIX.
I got the file from Oracle, with
two columns (Table Name and Column Name). I need to create the shell script where the result suppose to include
plain text, <table_name>, <Column_name> from the file.
Plain text will be the statements to create index in Oracle.
something like... (1 Reply)
Folks;
on a unix server I have a mapping file which holds a list mountpoints of all databases and their mountpoints. tab delimited or colon deliminted..I needed to copy the datafiles from the pristine mountpoints to test's mountpoints in this case. I needed to do this by passing sid name using... (18 Replies)
Hello. I am a novince at writing shell scripts but here is the question. I have to write a shell script that does the following:
Once executed via crontab, the script should do the following:
a. get date/time stamp in for format 10-MAR-05 and
b. execute shell script my_script.sh (which... (2 Replies)
I am trying to write a shell script using awk which will format the output of the "ps -eaf" command by sorting it by user and then listing all of the processes for each user. Here is an example of the output I want:
Here is the code I have:
#! /bin/sh
for I in `ps -eaf h | awk '{print $1}'... (7 Replies)
Hi All,
I tried below code
getting error.
AD=0
ZERO=0
if then
echo "AD is zero select another symbol"
fi
syntax error near unexpected token `fi'
plz help me to solve this error (4 Replies)
hi all,
i need the shell script for he below requirement
i had the input file as
a_20121217_035120( frmat is a_date_hhmmss)
a_20121217_035128
a_20121217_035456
a_20121217_035767
a_20121217_035178
a_20121217_035189
a_20121217_035220
my output should be
a_20121217_035456... (0 Replies)
hi,
would you help me?
i have file total.csv
"a","e23","f"
"b,"34d","g"
"c","45f","f"
"d","45s","f"
count.csv
3
i do this :
paste -d',",' total.csv count.csv
but the result like this:
"a,"e23","f" 3
"b,"34d","g" (1 Reply)
Discussion started by: kivale
1 Replies
LEARN ABOUT OSX
ansi_code
term::ansi::code(n) Terminal control term::ansi::code(n)
_________________________________________________________________NAME
term::ansi::code - Helper for control sequences
SYNOPSIS
package require Tcl 8.4
package require term::ansi::code ?0.1?
::term::ansi::code::esc str
::term::ansi::code::escb str
::term::ansi::code::define name escape code
::term::ansi::code::const name code
_________________________________________________________________DESCRIPTION
This package provides commands enabling the definition of control sequences in an easy manner.
::term::ansi::code::esc str
This command returns the argument string, prefixed with the ANSI escape character, "