Search Results

Search: Posts Made By: dips_ag
7,675
Posted By Don Cragun
The first character in the bracket expression...
The first character in the bracket expression ([![:alnum:] .,;:\'\"/\(\)_+=~@&*-]) is ! so this is a NON-matching bracket expression. This bracket expression matches any single character that is NOT...
2,411
Posted By Walter Misar
Just doing something like grep "\(Thread\|SESSION...
Just doing something like grep "\(Thread\|SESSION DESCRIPTION\)" test.xml may help, then dealing with a simpler stream containing only those lines.
28,574
Posted By porter
You should just be able to do ftp...
You should just be able to do

ftp server-name

where server-name is exactly the same string as in $HOME/.netrc

Yes the attributes of $HOME/.netrc look right.

When it fails, is it printing...
1,938
Posted By balajesuri
[ $(echo "<static file prefix>.<store...
[ $(echo "<static file prefix>.<store cd>_<YYYYMMDD>.<ext>" | grep -o '\.' | wc -l) -eq 2 ] && echo "file1 has 2 dots"
4,639
Posted By vbe
UNIX servers usually have default network TIMEOUT...
UNIX servers usually have default network TIMEOUT set to values that were from the times of 10Mb networks... In other words the times when you could unplug and move around cables without taking too...
4,639
Posted By vbe
You should have one in <batchfile>
You should have one in <batchfile>
18,868
Posted By ahamed101
Have the options first and host at the end ...
Have the options first and host at the end

sftp -b batchfile -oPort=22 -oServerAliveInterval=60 -oServerAliveCountMax=5 -oTCPKeepAlive=yes 192.168.1.2

--ahamed
2,491
Posted By vgersh99
you have to assume a minimum length of numbers to...
you have to assume a minimum length of numbers to determine if it's a date or not. As your dates may differ in length, I assumed the minimum length of 8 -\{8,\}. Notice the trailing comma in the...
2,491
Posted By vgersh99
I assumed the 'YYYYMMDD' was actually a mnemonic...
I assumed the 'YYYYMMDD' was actually a mnemonic for the date/time numeric spec.
If you want to take 'YYYYMMDD' literally - that's even easier...:

sed 's#YYYY[^_.]*#*#' myFile
3,696
Posted By DoxieLvr
I am confused. if the tarball contained the file...
I am confused. if the tarball contained the file "remote_file.txt" then
tar -C /local/server/destination/path/un-tar -zxvf /local/server/source/path/remote_file.txt.tar.gz stage_file.txtshould not...
Forum: Tips and Tutorials 12-28-2006
756,016
Posted By Perderabo
find command -mtime -ctime -atime
The find command uses arguments like:
-mtime -2
-mtime +2
-mtime 2

There are -ctime and -atime options as well. Since we now understand the differences among mtime, ctime, and atime, by...
1,127
Posted By pludi
From what you've posted, it's just a matter of...
From what you've posted, it's just a matter of correct quoting:
$ list_of_subdir="This
> is
> a
> Test"
$ echo $list_of_subdir
This is a Test
$ echo "$list_of_subdir"
This
is
a
Test
$
...
7,129
Posted By ctsgnb
use awk instead, but the rest of the syntax...
use awk instead, but the rest of the syntax should be similar.

# cat tst
<TRANSFIELD DATATYPE ="double" DEFAULTVALUE ="" DESCRIPTION ="" FIELD ="EMP_KEY" PICTURETEXT ="" PORTTYPE ="OUT" PRECISION...
7,129
Posted By mirni
you can pass a variable to awk with -v switch: ...
you can pass a variable to awk with -v switch:

awk -v "myVar=$frm_inst" '{if($0~myVar){for(i=1;i<=NF;i++){if($i~"PRECISION|SCALE") { print gensub(/[^0-9]/,"","g",$(i+1)); } } } }'Or just plug in...
11,502
Posted By ctsgnb
$var is supposed to hold a list of values that...
$var is supposed to hold a list of values that you will scan with the for loop.

If you want to scan more than 1 list (so if you want $var to hold differents lists of values) you should make it...
4,699
Posted By anurag.singh
post #3: (by myself) Set field separator to...
post #3: (by myself)
Set field separator to pipe character i.e. |
If current file read is "from_file", store each record ($0) in array a indexed as 1dt field in that record, and move to next line...
4,997
Posted By Scrutinizer
Try /<INPUT.*NAME ="FACT_TABLE"/ instead of /NAME...
Try /<INPUT.*NAME ="FACT_TABLE"/ instead of /NAME ="FACT_TABLE"/
2,703
Posted By Franklin52
Try this: sed 's/.* NAME...
Try this:
sed 's/.* NAME ="\([^"]*\)".*/\1/'
1,744
Posted By cabrao
awk -F\" '/^ *=/{print $2}' RS=LENGTH file
awk -F\" '/^ *=/{print $2}' RS=LENGTH file
3,621
Posted By jim mcnamara
Per POSIX: The plus sign is obsolescent and was...
Per POSIX:
The plus sign is obsolescent and was supported only for wide character applications.

You have a newer kernel, along with a newer version of GNU coreutils, it is interpreting the +2 as...
Showing results 1 to 20 of 20

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