10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I want to fetch the latest file form the list
example
example= filename RATE_STATE_SETUPS.20151222.ccyymmdd.hhmmss.txt
File pick which have latest ccyymmdd.hhmmss
list of file in directory are
RATE_STATE_SETUPS.20151222.20151222.170101.txt... (5 Replies)
Discussion started by: MOHANP12
5 Replies
2. Shell Programming and Scripting
originally the shellscript
#ln_file_name=`echo $ld_interface_date"_"${8}".csv"`
#ln_file_name=`echo 201202011527_HL_HLTM1_B04A.csv`
ln_file_name="*"`echo ${7}".csv"`
get_file_list_1=$log_path"tm1_file_list.gfl1"
cd ${source_path}
echo "Try to find any file exist in the... (10 Replies)
Discussion started by: feilhk
10 Replies
3. Shell Programming and Scripting
HI
owner date and time and size of file in a row
shell script to list filename file_path i have tried the below code
present_dir=`pwd`
dir=`dirname $0`
list=`ls -lrt | awk {'print $9,$3,$6,$7,$8'}`
size=`du -h`
path=`cd $dir;pwd;`
printf "$list"
printf "$path"
printf " $size"
... (4 Replies)
Discussion started by: abiram
4 Replies
4. Shell Programming and Scripting
Hi
Please describe about following condition
if ]
in shell script.
Also please provide the link related all the flags which are applicable for if condition in Shell (4 Replies)
Discussion started by: munna_dude
4 Replies
5. Shell Programming and Scripting
Hi Friends,
The below shell script is written by third party to create B2k_session_id.iam trying to execute this script.When i execute below script it is calling some other scripts.How to find which scripts is calling?
. `execom commfunc.com`
echo " $PRESENTATION_MODE "
if
then
echo... (1 Reply)
Discussion started by: vadlamudy
1 Replies
6. Shell Programming and Scripting
Hi Experts,
Please let me know how to below situation:
Looking for:
sed "${linenum}d" $filename > $filename _Without_7C
Working Command:
sed "${linenum}d" A020820122200.tis2webGMNA001_GDS_DIDOut.txt > A020820122200.tis2webGMNA001_GDS_DIDOut.txt_Without_7C
appriciate if you can... (7 Replies)
Discussion started by: rajubollas
7 Replies
7. Shell Programming and Scripting
I have the following piece of code:
YESTER=`TZ=aaa24 date +%b"-"%d`
filelist2=$(find /export/home/gen/check/logs \( -name \*$YESTER\* ! -name \*ADM\* \) -print | tr '\n' ' ')
nawk -F':' '
$2 ~ /Reason/ && $3 !~ /(PASSTHRU|OCAP|FP Power Button|Bootloader Reset)/ {
split(FILENAME,... (2 Replies)
Discussion started by: ther2000
2 Replies
8. Shell Programming and Scripting
Forgive me if this is a trivial question, but I haven't been able to find the answer to this.
Basically I've got a list of files in a particular directory that have the general form t_*.dat. (I have other files in the same directory as well).
Essentially what I want to do is obtain the name... (1 Reply)
Discussion started by: lost.identity
1 Replies
9. UNIX for Dummies Questions & Answers
Like the topic says, does anyone know if it is possible to check to see when an FTP only user has logged in? Because the shell is /bin/false and they are only using FTP to access the system doing a "finger" or "last" it says they have never logged in.
Is there a way to see when ftp users log in... (1 Reply)
Discussion started by: LordJezo
1 Replies
10. Shell Programming and Scripting
I've forgotten how to use a filename parameter
using sed inside a shell script. What I want to do is
replace a string inside a file with the name of
the file being processed.
I think this should work ..
for filename do
sed -e "s/xxx/$filename/" ...
...
done
Thanks!
Ps: ... (5 Replies)
Discussion started by: eadie
5 Replies