10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a specific set (all ending with .bam) of downloaded files in a directory /home/cmccabe/Desktop/NGS/API/2-15-2016. What I am trying to do is use a match to $2 in name to rename the downloaded files. To make things a more involved the date of the folder is unique and in the header of name... (1 Reply)
Discussion started by: cmccabe
1 Replies
2. UNIX for Dummies Questions & Answers
I'm afraid this is a silly question but I can't figure it out.
I have a script like so...
echo "Enter DRDL Signature Version Number"
read DRDL_Number
mv signature_output.csv SERVICE_OBJECTS_S-$DRDL_Number.csv
The resultant filename does not contain the .csv as follows.... (3 Replies)
Discussion started by: Cludgie
3 Replies
3. HP-UX
I have 2 files; one file (say, details.txt) contains the details of employees and another file (say, emp.txt) has some selected employee names. I am extracting employee details from details.txt by using emp.txt and the corresponding code is:
while read line
do
emp_name=`echo $line`
grep -e... (7 Replies)
Discussion started by: arb_1984
7 Replies
4. UNIX for Dummies Questions & Answers
Command ls -l *cpp lists all cpp program files in a directory. It shows the size of each file. Using a calculator to work out the total size of the cpp files would be very tedious.
Is there a way to get the total size from the command line? (5 Replies)
Discussion started by: resander
5 Replies
5. UNIX for Dummies Questions & Answers
unix program to which a directory name will be passed as
parameter. This directory will contain files with various
extensions. This script will create directories with the names of the
extention of the files and then put the files in the
corresponding folder. All files which do not have any... (2 Replies)
Discussion started by: Deekay.p
2 Replies
6. Shell Programming and Scripting
Hi.,
How to extract the extension of a file which are present in the directory?. In my script I tried something like:
echo abc_ss_222_54.txt | awk -F"" '{print $5}'
But I din't got .txt echoed in console. Pl. suggest a solution for this.
And also, for finding a specific... (1 Reply)
Discussion started by: IND123
1 Replies
7. Solaris
Hi Gurus,
An Application is not able to create files above 2.14gb in size in my Sol5.9 server. I have checked the file limit of the user running the Application and am attaching the same:
boiadm: ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) ... (4 Replies)
Discussion started by: Hari_Ganesh
4 Replies
8. Shell Programming and Scripting
Hi,
I have written a script which would FTP a dump file to the FTP server and log the whole activity into a file. to confirm the success of the file copy i grep for "226 file receive OK" and then send out an email saying success. Now i want to make sure the bytes of the local file and... (4 Replies)
Discussion started by: dba.admin2008
4 Replies
9. Solaris
hi all,
in my server there are some specific application files which are spread through out the server... these are spread in folders..sub-folders..chid folders...
please help me, how can i find the total size of these specific files in the server... (3 Replies)
Discussion started by: abhinov
3 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I have a .txt file and it contains some file names.I want to append .gz extension to all the file names that are present within the .txt file.
Input.
aa.bb.Mar-20-2007
aa.cc.Mar-20-2007
Output
aa.bb.Mar-20-2007.gz
aa.cc.Mar-20-2007.gz
Please help me with this command.
... (10 Replies)
Discussion started by: kumarsaravana_s
10 Replies