4
1
COMP_ID=` echo $SRC | sed -e 's/.*COMP_ID=//' -e 's/:.*$//'`
SRC_TYP=` echo $SRC | sed -e 's/.*SRC_TYP=//' -e 's/:.*$//'`
DOC_TYP=` echo $SRC | sed -e 's/.*DOC_TYP=//' -e 's/:.*$//'`
SRC_ID=` echo $SRC | sed -e 's/.*SRC_ID=//' -e 's/:.*$//'`
ACC=` echo $SRC | sed -e 's/.*ACC=//' -e 's/:.*$//'`
PASS=` echo $SRC | sed -e 's/.*PASS=//' -e 's/:.*$//'`
POP=` echo $SRC | sed -e 's/.*POP=//' -e 's/:.*$//'`
REMOTE_HOST=` echo $SRC | sed -e 's/.*REMOTE_HOST=//' -e 's/:.*$//'`
REMOTE_PATH=` echo $SRC | sed -e 's/.*REMOTE_PATH=//' -e 's/:.*$//'`
ARCHIVE_PATH=` echo $SRC | sed -e 's/.*ARCHIVE_PATH=//' -e 's/:.*$//'`
Using vim (or vi) I want to align the sections with -e 's/:.*$//'
to the same column number. What's the easiest and fastest way to do this? (ignore the ugly echo ..| sed ..
bits for now)
Did you consider using a plugin like Align or Tabular?
– romainl – 2014-06-20T06:44:47.197