Search Results

Search: Posts Made By: ec01
949
Posted By ec01
Assuming you're using bash, see - String...
Assuming you're using bash, see -
String Length: Parameter expansion [Bash Hackers Wiki] (http://wiki.bash-hackers.org/syntax/pe#string_length)
and directly beneath,
Substring expansion: Parameter...
1,381
Posted By ec01
From the error it looks like you may not be in...
From the error it looks like you may not be in the correct/same directory as success.txt at that point. Also, get rid of wc -l if you're using grep -c

#!/bin/sh
today=`date +"%a %b %e"`
find...
2,223
Posted By ec01
In this context the '.' is not a literal...
In this context the '.' is not a literal dot/period, but a regex special character/metacharacter that matches (almost) any single character ( reference: Regex Tutorial - The Dot Matches (Almost) Any...
18,947
Posted By ec01
alternative solution using awk and/or nawk to...
alternative solution using awk and/or nawk to match the exact zoneName:

# cat /var/tmp/zoneadm.out.test
ID NAME STATUS PATH BRAND IP
0 global ...
8,103
Posted By ec01
The backticks in red are supposed to be single...
The backticks in red are supposed to be single quotes:
DB_ERR=`echo "$DB_TRANS" | egrep `(SP2- | ORA-)``
6,176
Posted By ec01
Earlier you said you added this to your .sh...
Earlier you said you added this to your .sh script:
If "which nwchem" returns "/opt/local/share/nwchem/nwchem", this means nwchem is in "/opt/local/share/nwchem" -- so if you want to add this...
7,378
Posted By ec01
Just guessing, but it looks like you're trying to...
Just guessing, but it looks like you're trying to determine if $1 is a full (absolute) path (and if so, echo "Wrong, full path"), or a relative path (and if so, echo 1 according to your code?)

try...
3,736
Posted By ec01
find options/syntax may be different depending on...
find options/syntax may be different depending on your OS/platform

In the directory containing the file:
$ ls -lai ### to list the inodes
$ find . -inum <inode_number_of_dot_file> -exec ls -la...
Showing results 1 to 8 of 8

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