Tags » Xargs

How to SCP in parallel?

Here is short script doing that, using xargs capabilities:

#!/bin/bash
SOURCE_DIR="/sourcedirectory"
TARGET_DIR="targetuser@targethost:/targetdirectory"
THREADS="8"
cd ${SOURCE_DIR}; find . -type f | xargs -n1 -P$THREADS -I% scp % ${TARGET_DIR}/%
Unix / Solaris / Linux

Remove Exif data from pictures

Exiftool can be used to strip the Exif data from jpeg images/pictures.

Install the app:

sudo apt-get install libimage-exiftool-perl

Read the current Exif tag data from an image (could also be *.jpg, etc) : 83 more words

Web Application Testing - Parsing Directory and File Listing

During web application testing, it is useful to get the directory and file listing of the root of the web application that you are testing so as to ensure complete coverage of the application. 194 more words

Burp

Recursively list files (with space in their names)

Today, I had to do a long list of files inside a folder recursively. I tried using

find <folder> | xargs ls -l

This failed miserably when the folders/files inside the search location had space character in it. 42 more words

Linux