archive_file_to_path_and_prepare_for_edit
Differences
This shows you the differences between two versions of the page.
| archive_file_to_path_and_prepare_for_edit [2009/06/04 15:12] – created k2patel | archive_file_to_path_and_prepare_for_edit [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== archive file to path and prepare for edit==== | ||
| - | <code bash | archive.sh> | ||
| - | #!/bin/bash | ||
| - | # jt powered | ||
| - | |||
| - | cmd=$(basename $0) | ||
| - | dt=$(/ | ||
| - | int=" | ||
| - | archdir=" | ||
| - | |||
| - | if [ $# -lt 1 ]; then | ||
| - | cmd=$(basename $0) | ||
| - | echo " | ||
| - | exit 1 | ||
| - | fi | ||
| - | |||
| - | if cp -p " | ||
| - | then | ||
| - | ls -l " | ||
| - | read -p "Press enter to begin edit" | ||
| - | vim " | ||
| - | else | ||
| - | echo "$cmd quitting: can't make backup?" | ||
| - | fi | ||
| - | </ | ||
archive_file_to_path_and_prepare_for_edit.1244128355.txt.gz · Last modified: 2020/08/10 02:28 (external edit)
