cancel
Showing results for 
Search instead for 
Did you mean: 
jeesshnasree
Starfighter Starfighter
Starfighter
  • 2,486 Views

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

Jump to solution

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 Solution

Accepted Solutions
littlebigfab
Starfighter Starfighter
Starfighter
  • 2,473 Views

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.

 

View solution in original post

1 Reply
littlebigfab
Starfighter Starfighter
Starfighter
  • 2,474 Views

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.

 

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