10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All ,
We need one help on the below requirement.We have multiple pipe delimited .txt file(around 100 .txt files) present on one directory.We need the total record count of all the files present in that directory without header.File format as below :
... (8 Replies)
Discussion started by: STCET22
8 Replies
2. Shell Programming and Scripting
Hi ,
I want to zip files present in the directories listed under a parent directory without zipping the directory itself
my parent directory path is
/informatica/DGDMN/PowerCenter1011/server/infa_shared/SrcFiles/OTE/Final_Directory
I have the below directories named as 1,2,3,4,5 listed... (9 Replies)
Discussion started by: paul1234
9 Replies
3. UNIX for Dummies Questions & Answers
Hi Folks,
I have logs at the following location
cd /out/app/logs/
now that logs directory contain different types of logs now sometimes i need to
do disk clean up activity so i need to zipped the logs can you please advise
any command by which all the logs created in this directory are... (2 Replies)
Discussion started by: punpun66
2 Replies
4. UNIX for Dummies Questions & Answers
Hi Folks,
I have a directory in unix that is /usr/local/pos contain the folowing directoreis ..that is
dir1
dir2
dir3
now I want to delete only dir2 please advise how to remove the directory dir 2 ..that is rm command and how to use it , and second if I want to zip the dir3 please... (1 Reply)
Discussion started by: punpun66
1 Replies
5. Shell Programming and Scripting
Hello,
I have some files and i want to count how many times a string is appeared in each file.
Lets say :
#cat fileA
stringA
sdh
stringB
stringA
#cat fileB
stringB
stringA
sdb
stringB
stringB
I need the output to be something like: (2 Replies)
Discussion started by: @dagio
2 Replies
6. Shell Programming and Scripting
Hello everyone,
I am trying to make a script in KSH that will zip an entire directory but leave out one file in that directory. I then need to send that zipped directory to another UNIX box. I am new to UNIX and would appreciate a good template to study from. (3 Replies)
Discussion started by: BrutalBryan
3 Replies
7. Shell Programming and Scripting
Hi,
I am having some problem with a shell script which zip some files. For zipping I have used the following command:
find . -name "Test_*" -mtime 0 | zip Test_$(date +"%Y%m%d") -@
I have kept the script in /home/abc directory. It is creating the zip file within the same directory where i... (2 Replies)
Discussion started by: abhishek_510
2 Replies
8. UNIX for Dummies Questions & Answers
hello there
i want to creat a file that count how many files i have in the directory.
for this i use the command
find . -type f | wc -l > 1In1.myfile
the problem with this command is that it not update after i add a new file in the directory.
Anyone got any ideas how i can... (5 Replies)
Discussion started by: AntiPin
5 Replies
9. UNIX for Dummies Questions & Answers
Hi,
i have more than 300 tar files in directory and i want to zip all tar files to single file.
could anybody tell me the command since i know how to do zip for single tar file:
bash-3.00$gzip 2008_11_10.tar
bash-3.00$ pwd
/oracle1/archivebackup
in this directory i have lot files... (2 Replies)
Discussion started by: prakash.gr
2 Replies
10. Shell Programming and Scripting
How do I count number of file in a directory. Here is what I want to do.
1. find total number of file in a directory in variable total
2. ftp all the file
3. ftp_return_code=`grep -c "Transfer complete" $logfile`
if
then
exit 0
else
exit -1
fi (6 Replies)
Discussion started by: leemjesse
6 Replies