Hi Unix Gurus,
I have the following output from a remote sftp server
sftp> cd outgoing
sftp> ls
.
..
archive
x001_ameint_BP020F0025_00306_001.zip
x001_ameint_DV010F0060_00306_001.zip
x001_ameint_DV010F0065_00306_001.zip
x001_ameint_DV010F0065_00306_002.zip
x001_ameint_DV010F0070_00306_001.zip
x001_ameint_DV020F0040_00306_001.zip
sftp>
I'd like only the lines starting with x001 in a new file how to do that
my output should be
x001_ameint_BP020F0025_00306_001.zip
x001_ameint_DV010F0060_00306_001.zip
x001_ameint_DV010F0065_00306_001.zip
x001_ameint_DV010F0065_00306_002.zip
x001_ameint_DV010F0070_00306_001.zip
x001_ameint_DV020F0040_00306_001.zip
The output is varying a lot sometimes the output of the ls command is space delimited, sometimes tab delimited , how to format the output in a genric way.
any help appreciated.
thanks
ram