10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello Unix experts:
I have dir where few files are there, i want to sort these files and write the output to some other file but i need filenames with filepath too
i have filenames like
so i want to sort my files on first 5 fields of... (2 Replies)
Discussion started by: gnnsprapa
2. UNIX for Dummies Questions & Answers
I have requirement of parsing file names from given directory based on the pattern ( pattern will be parameter to script and can be any ).
for example, user enterred 2 params :
directory name : /dirname/
filename_pattern : *.dat_????
and there are 2 files in the directory as... (1 Reply)
Discussion started by: freakabhi
3. UNIX for Dummies Questions & Answers
I have 7 files with 7 different names coming into a specified folder on weekly basis, i need to pick a file one after another and load into oracle table using sql loader. I am using ksh to do this. So in the process if the file has error records and if sql loader fails to load into oracle tables,... (0 Replies)
Discussion started by: vpv0002
4. Shell Programming and Scripting
I need to pull out the name of the file from the path.
See, here is my loop that gets the files:
for dsxfile in $dsxdir/*.dsx;
dsxlog $reverb --info --module="$module" "$dsxfile"
$dsximp $norule $oprange --dsn=$dsn --dbname=$dbname... (6 Replies)
Discussion started by: ladyAnne
5. Shell Programming and Scripting
I have this file generated by me... i want to create some HTML output from it.
The problem is that i am really confused about how do I go about reading the file.
The file is in the following format:
TID1 Name1 ATime=xx AResult=yyy AExpected=yyy BTime=xx BResult=yyy... (8 Replies)
Discussion started by: umar.shaikh
6. Shell Programming and Scripting
I tried using the following options to parse the *.sh files in a dir
(the name can contain spaces). But each of them breaks:
echo "$FILESSH" | while read FILE ; do --- do something --; done
This does not break for any whitespaces in filenames
for FILE in... (1 Reply)
Discussion started by: amicon007
7. UNIX for Dummies Questions & Answers
How can I loose a part of the filename
I want to drop the “_<Number>.sql”
Below I have a listing of file names in a file
CREDIT_DEL_033333.sql I want it to be CREDIT_DEL
ATM_DEBIT_CARD_0999999.sql I want it to be ... (3 Replies)
Discussion started by: jville
8. UNIX for Dummies Questions & Answers
Using a small script, I automatically generated some text logs. The files ended being undownloadable, unopenable and undeletable. Upon further investigation, the files ended up looking like this:
I've tried a few different things, including double slashing before the... (6 Replies)
Discussion started by: shepherdsflock
9. Shell Programming and Scripting
#! /usr/local/bin/perl -w
$ip = "$ARGV";
$rw = "$ARGV";
$snmpg = "/usr/local/bin/snmpbulkget -v2c -Cn1 -Cn2 -Os -c $rw";
$snmpw = "/usr/local/bin/snmpwalk -Os -c $rw";
$syst=`$snmpg $ip system sysName sysObjectID`;
sysDescr.0 = STRING: Cisco Internetwork Operating System Software... (1 Reply)
Discussion started by: popeye
10. Shell Programming and Scripting
I have a list of files in a directory.I need to store them in a file with the prefix of @ by using a command..
any idea pls.
RRK (2 Replies)
Discussion started by: ravi raj kumar