10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a CSV file with hdfs directories, hive tables and hbase tables.
1. first column - hdfs directories
2. second column - hive tables
3. third column - hbase tables
I have to check the csv file and look for the first column and delete the hdfs directory from the hdfs path, now... (2 Replies)
Discussion started by: shivamayam
2. UNIX for Beginners Questions & Answers
i want to give users the ability to create write and read files in other user directory , but not to have option to delete the file after created ( sticky bit not going to work here ... ) for example :
i have user : manager with directory repository
i have user : worker1 that need to write... (4 Replies)
Discussion started by: umen
3. UNIX for Dummies Questions & Answers
I have file called "text". The contents are as below :
I want to read this file without opening and and delete the last line. How can it be done? (4 Replies)
Discussion started by: the_hunter
4. Shell Programming and Scripting
The script has to read an entry from one file and delete the set of lines form other file. Below is the format of the file. In the below example, script should read the entries from input file 2 and delete the entries from input file 1.
Input file 1
abc:... (7 Replies)
Discussion started by: Samingla
5. Shell Programming and Scripting
I have a need of script to do delete row whenever condition is true....
2.16 (3) 1 3 9999 0 (1) (0)
34.42 (4) 1 3 9999 37 (2) (3)
34.38 (4) 1 3 9999 64 (2) (3)
34.4 (4) 1 3 1 ... (13 Replies)
Discussion started by: nex_asp
6. Shell Programming and Scripting
I'm trying to write a script that will do an ls of a location, echo it into a file, and then read that file and selectively delete files/folders, so it would go something like this:
while read LINE
if LINE = $DONTDELETE
elseif LINE =... (2 Replies)
Discussion started by: MaureenT
I know how to check if any file has a unix process using a file by looking at 'lsof <fullpath/filename>' command.
I think using lsof is very expensive. Also to make it accurate we need to inlcude fullpath of the file.
Is there another command that can tell if a file has a truely active... (12 Replies)
Discussion started by: kchinnam
8. Shell Programming and Scripting
My log files stored in the date format format below(log_20080714072942):
I'm looking for a shell script which deletes all files which is older than 3 months from today.
Bhagat (3 Replies)
Discussion started by: bhagat.singh-j
9. Shell Programming and Scripting
Actually I am want to cut the three fields of "file-nr" file.
$ cat /proc/sys/fs/file-nr
638 219 52270
I want to assign these value to diffrent varibales as follow:-
I tried to use cut command for this purpose and also tried to squeeze all sapces... (6 Replies)
Discussion started by: bisla.yogender
10. UNIX for Dummies Questions & Answers
I know I saw a couple posts about this a long time ago, but could not find them with search. Please refresh my memory.
-Chuck (1 Reply)
Discussion started by: 98_1LE