Remove Delimeter
We can also remove delimiter using the xargs command. In this example, we are going to remove delimiter in the command using xargs command. Follow the following steps.
- Use echo command with this string text “arg1:arg2:arg3” for passing to the pipes.
- After pass to the xargs command use “-d” option for specify delimter with “-n” option.
Command:
echo "arg1:arg2:arg3" | xargs -d: -n 3 echo "Delimited command:"
Output
Running multiple commands with xargs
Xargs is a command utility in Unix and Unix-like operating systems. It is used to build and execute commands from standard input which can be the output of the other command or data files. In this article, we will see how to run multiple commands with xargs.
Table of Content
- Syntax of `xargs` multiple command in Linux
- Understanding of xargs
- Deleting files with xargs Command:
- Renaming Files with xargs
- Xargs with three arguments
- Remove Delimeter