in reply to perl file permissions
newpl () { [[ -z $1 ]] && { echo "usage: newpl FILENAME" return } [[ -d $1 ]] || [[ ! -e $1 ]] && vim $1; [[ -e $1 ]] && { chmod 0755 $1 /bin/ls -al $1 } || { echo "File $1 was not saved" } }
(those ^M are made inside of vim with CTRL-v, CTRL-m)ab bbb #!/bin/bash ab ppp #!/usr/bin/perl ^M^Muse strict;^Muse warnings;^M^M
|
---|