Highlighted
Flight Engineer
Flight Engineer
  • 380 Views

dos2unix file for only *.sh file or all *.txt file or any other format file

Hi All,

 

can execute dos2unix only *.sh file or any other file like *.txt or any file .

 

if execute dos2unix on other format extensions (.xml or .txt or *.cer ) file will be deployable or not .

could you please share your valuable information .

Labels (1)
0 Kudos
1 Reply
Highlighted
Flight Engineer Flight Engineer
Flight Engineer
  • 367 Views

Re: dos2unix file for only *.sh file or all *.txt file or any other format file

Hello @jeesshnasree,

Like all linux commands which can take one or several files as parameters (such as ls, cat, rm), dos2unix allows the use of a bash glob pattern like *.sh or *.txt. The shell will expand that glob pattern into the list of all actual files matching that pattern before actually calling the command.

Any text file (like xml, txt or cer) is a valid input for dos2unix.

 

Reply
Loading...
Join the discussion
You must log in to join this conversation.