[Solved] How to create a script by combing two files?
I am trying to generate a csv file for utilization of each project directory. there are 10 filesystem and for each filesystem there are 16 directory.
i was trying to create a script so i created two file. one is filesystem and one is project. so file looks like
cat filesystems
cat project
Now, I want to create a script so that it will check du for /app1/proj1 then /app1/proj2 then /app1/proj3 and so on till /app1/proj16 and O/P will write to out.csv file
After /app1 completes then again it will start for /app2/proj1 then /app2/proj2 and so on and O/P will write to out.csv file in a new line
and finally script will run for /app10/proj1 then /app10/proj2 and so on till /app10/pro16 and O/P will write to out.csv
need yours help
Last edited by Don Cragun; 01-20-2014 at 12:20 AM..
Reason: Change ICODE tags to CODE tags; add ICODE tags
Hi list,
I have to combine two lines and adding the " - " in between.
So:
Here's sentence A
Here's Senctence B
Here's sentence A - Here's Senctence B
I know how to us SED: sed '$!N;s/\n/ /' for combining tow lines. But how do
I insert the " - " correctly?
Thanks!
Martijn
(os... (4 Replies)
Requirement:-
SQLs
select name from v$datafile;
select name from v$controlfile;
select name from v$tempfile;
select MEMBER from v$logfile;
These sqls has to run in one script and o/p of each sql has to write in seperate files.But the o/p is like if we issue
select name from... (2 Replies)
Hi
Please can you help me in writing a script to find files on a specific directory, and of extension "tap" but only of the month of september, gzip and move them to another directory.
Your help will be appreciated. (8 Replies)
I want to use my script to get any file then delete it once it transfers to my side , I manage to create below script to generate "list" file which contains all file names in "10.10.1.1" then I made "a.out" file which contains the commands that I want to run it on "10.10.1.1" to get & delete the... (2 Replies)
Hi everyone,
I have two files, namely:
file1:
file1Col1Row1;file1Col2Row1;file1Col3Row1
file1Col1Row2;file1Col2Row2;file1Col3Row2
file1Col1Row3;file1Col2Row3;file1Col3Row3file2:
file2Col1Row1;file2Col2Row1;file2Col3Row1
file2Col1Row2;file2Col2Row2;file2Col3Row2... (0 Replies)
Hi All,
I have the requirement that ,i have to write a shell script that job has to wait for a 7 touch files created by another application for 4 hours, if i get all 7 touch files ,i have to send a mail that i jobs are completed, if if it is waiting for more than 4 hours i have to send a mail... (2 Replies)
I have been digging deeper into Python and want to make my code as efficient as possible. The less line of code the better so I have been experimenting and wanted to ask the Python gurus if this is possible. So:
...
...
In : kbfileurl = re.search('<p>For more information about this... (6 Replies)
Discussion started by: metallica1973
6 Replies
LEARN ABOUT LINUX
filesystem
filesystem(7) Miscellaneous Information Manual filesystem(7)NAME
filesystem - event signalling that filesystems have been mounted
SYNOPSIS
filesystem [ENV]...
DESCRIPTION
The filesystem event is generated by the mountall(8) daemon after it has mounted all filesystems listed in fstab(5). mountall(8) emits
this event as an informational signal, services and tasks started or stopped by this event will do so in parallel with other activity.
EXAMPLE
A service that wishes to be running once filesystems are mounted might use:
start on filesystem
SEE ALSO mounting(7)mounted(7)virtual-filesystems(7)local-filesystems(7)remote-filesystems(7)all-swaps(7)mountall 2009-12-21 filesystem(7)