9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have file all_file.txt
at the end of process this file all_file.txt should be deleted only if there is no file present in dir /all_file/tmp/ or in it's sub directory.
can you please help me with the peace of code for this.
Thanks (2 Replies)
Discussion started by: kumar30213
2 Replies
2. Shell Programming and Scripting
Hi,
I am looking for a shell script which serves the below purpose.
Please find below the algorithm for the same and any help on this would be highly appreciated.
1)set of strings need to be replaced among set of files(directory may contain different types of files)
2)It should search for... (10 Replies)
Discussion started by: Amulya
10 Replies
3. Shell Programming and Scripting
Hi,
I make a sftp connection successfully.My requirement is the script shall execute only after i find a trigger file(dailyreport.OK.psv) in the remote dir. If the trigger file is not present ,the script should exit else it should continue with the rest of the scripts statements. Below code is... (13 Replies)
Discussion started by: samrat dutta
13 Replies
4. UNIX for Dummies Questions & Answers
Hi,
Test file below:
$: cat file1
DATE TIME COL1 COL2 COL3 COL4 ID
01/10/2013 0800 100 200 300 401 112
01/31/2013 1000 201 123 345 456 107
03/05/2013 1100 150 789 311 789 109
02/15/2013 1500 199 456 234 ... (3 Replies)
Discussion started by: newbie_01
3 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I am a newbie...I would like to have a function which ll check if a file contains valid strings before "=" operator. Just to give you my requirement:
assume my file has content:
hello= gsdgsd sfdsg sgdsg sgdgdg
world= gggg hhhh iiiii
xxxx= pppp ppppp pppp
my... (5 Replies)
Discussion started by: rtagarra
5 Replies
6. Shell Programming and Scripting
Hi,
Following script work fine:
#!/bin/bash
FILE=$1
if ; then
echo Yay
else
echo Boo
fi
But I would like to add another condition that if FILE... (3 Replies)
Discussion started by: nrjrasaxena
3 Replies
7. OS X (Apple)
Hi:
I'm not really a programmer, but I've created a small logout hook script to copy some specific directories to a server volume when a user logs out (10.6.4). These is a laptop user, so I'm looking find:
1) the command to check if the volume (including path to directory?) is available.
... (1 Reply)
Discussion started by: kevinmmac
1 Replies
8. Shell Programming and Scripting
My script is taking a file "input.in" as input for running the script. My worry is that i need to execute the script only if the file is present, if it's not don't perform the next commands.
Just to have a check at the beginning of the script : If "input.in" exists, then go on. If it's does not... (4 Replies)
Discussion started by: newpromo
4 Replies
9. Shell Programming and Scripting
i have textfiles that contain a series of lines that look like this:
string0 .................................................... column3a column4a
string1**384y0439 ..................................... column3b column4b... (2 Replies)
Discussion started by: Deanne
2 Replies