Using UNIX sed, how can I delete any line in a file, that repeats on the following line and is followed by a slash.
For example:
/n_srsq delete
/n_srsq/create delete
/n_srsq/create/ddl
/n_srsq/data delete
/n_srsq/data/BnJavaTest.class
/n_srsq/data/BnJavaTest.java
/n_srsq/data/DBA_PART_LIST.donot.delete
/n_srsq/data/DBA_PART_TST_LIST.del
/n_srsq/data/LOGS delete
/n_srsq/data/LOGS/all_data_files.bad
/n_srsq/data/LOGS/all_data_files.dat
/n_srsq/data/LOGS/all_data_files_sftp.log
/n_srsq/data/LOGS/chk_env.logs
/n_srsq/data/LOGS/do_not_delete delete
/n_srsq/data/LOGS/do_not_delete/BN_SQLPLUS_ORA_CHECKS.DAT