KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Given the script below, I would like to avoid the execution of the pipeline if a file does not exist. How may I exit the script straight away if the text file is not found? ls */*.txt | grep ab1 | awk '{print $1, $1}' | sed "s/\"/\"\"/g" | xargs -L1 mv
Tags (comma-separated)
Save Edits
Cancel